Skip to content

feat: agent support - #611

Open
webfansplz wants to merge 1 commit into
mainfrom
feat/agent
Open

webfansplz wants to merge 1 commit into
mainfrom
feat/agent

Conversation

@webfansplz

@webfansplz webfansplz commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

This PR adds @vitejs/devtools-agent, an optional integration that gives coding agents access to Vite development activity and recorded Rolldown builds through MCP.

It supports two main workflows:

  • Vite inspection: explore module dependencies, inspect recorded code transformations, and investigate plugin timings.
  • Rolldown analysis: inspect bundle composition, identify duplicate packages, trace dependency inclusion, and compare builds.

The tools reuse existing inspection data and build readers, with filtering, pagination, bounded code responses, and explicit build-session selection. This lets agents start with an overview and progressively query the evidence needed to investigate a problem.

Now that Devframe provides agent-friendly RPC and MCP support, this implementation builds directly on that foundation. Tools are defined through defineRpcFunction with validated arguments and agent-facing descriptions, exposed through the existing host MCP endpoint, and accessed using devframe connect.

This supersedes #455, reusing Devframe’s connection and tool-exposure infrastructure while keeping Vite DevTools focused on its domain-specific inspection capabilities.

Copilot AI balanced review requested due to automatic review settings October 15, 2026 06:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@webfansplz webfansplz changed the title Feat/agent feat: agent support Oct 15, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools-agent

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-agent@611

@vitejs/devtools

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools@611

@vitejs/devtools-kit

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-kit@611

@vitejs/devtools-oxc

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-oxc@611

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-rolldown@611

@vitejs/devtools-vite

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-vite@611

@vitejs/devtools-vitest

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-vitest@611

commit: 2d32c1e

@webfansplz
webfansplz force-pushed the feat/agent branch 2 times, most recently from 0a82b0e to 3ff7621 Compare October 16, 2026 02:51
@webfansplz
webfansplz requested a review from antfu October 16, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants