@@ -15,40 +15,6 @@ Let AI agents (Claude Code, Cursor, etc.) **see, interact with, and verify** bro
1515
1616** [ 简体中文] ( ./README_zh.md ) ** | English
1717
18- ## Features
19-
20- - ** Zero Config** — Drop-in Vite plugin, works with any Vite project (Vue, React, vanilla JS, etc.)
21- - ** Standalone Server** — ` npx pilot server ` works without Vite, connects to any webpage
22- - ** Compact Snapshot** — Page state serialized into ~ 80 lines of text, optimized for LLM context windows
23- - ** Multi-Instance** — Each browser tab is independently tracked, switch freely with ` instance:xxx ` (supports prefix matching) or ` PILOT_INSTANCE `
24- - ** Instance Persistence** — Page refreshes reuse the same instance ID, no stale instance buildup
25- - ** Auto Reload** — Browser auto-refreshes when dev server restarts
26- - ** Vue/React Aware** — ` typeByPlaceholder ` dispatches input events for v-model compatibility
27- - ** Element Inspector** — Alt+Click any element to generate a prompt with full context for AI agents
28- - ** Tampermonkey Support** — Install userscript to run on any page automatically
29- - ** Channel Server** — Push prompts directly to Claude Code session via hook-based integration
30-
31- ## Why Not Chrome DevTools MCP?
32-
33- | | vite-plugin-pilot | Chrome DevTools MCP |
34- | ---| ---| ---|
35- | ** Connects via** | Dev server injection (SSE + HTTP API) | Chrome DevTools Protocol (CDP) |
36- | ** Requires CDP port** | No | Yes (` --remote-debugging-port ` ) |
37- | ** WPS Add-ins** | Yes | No (no CDP access) |
38- | ** Electron / embedded browsers** | Yes | Maybe (needs CDP enabled) |
39- | ** Remote debugging** | Yes (browser on any device) | Limited (same network, CDP exposed) |
40- | ** Framework awareness** | Vue/React v-model, scheduler | DOM-only |
41- | ** Zero external deps** | Pure Dev Server injection | Needs Puppeteer/CDP client |
42- | ** Production sites** | Yes (standalone server + bridge.js) | Needs CDP exposed |
43-
44- ## Installation
45-
46- ``` bash
47- pnpm add -D vite-plugin-pilot
48- # or
49- npm install -D vite-plugin-pilot
50- ```
51-
5218## Quick Start
5319
5420### Option 1: Vite Plugin Mode
@@ -77,6 +43,32 @@ npx pilot page # View page snapshot
7743npx pilot status # List connected instances
7844```
7945
46+ ## Features
47+
48+ - ** Zero Config** — Drop-in Vite plugin, works with any Vite project (Vue, React, vanilla JS, etc.)
49+ - ** Standalone Server** — ` npx pilot server ` works without Vite, connects to any webpage
50+ - ** Compact Snapshot** — Page state serialized into ~ 80 lines of text, optimized for LLM context windows
51+ - ** Multi-Instance** — Each browser tab is independently tracked, switch freely with ` instance:xxx ` (supports prefix matching) or ` PILOT_INSTANCE `
52+ - ** Instance Persistence** — Page refreshes reuse the same instance ID, no stale instance buildup
53+ - ** Auto Reload** — Browser auto-refreshes when dev server restarts
54+ - ** Vue/React Aware** — ` typeByPlaceholder ` dispatches input events for v-model compatibility
55+ - ** Element Inspector** — Alt+Click any element to generate a prompt with full context for AI agents
56+ - ** Tampermonkey Support** — Install userscript to run on any page automatically
57+ - ** Channel Server** — Push prompts directly to Claude Code session via hook-based integration
58+
59+ ## Why Not Chrome DevTools MCP?
60+
61+ | | vite-plugin-pilot | Chrome DevTools MCP |
62+ | ---| ---| ---|
63+ | ** Connects via** | Dev server injection (SSE + HTTP API) | Chrome DevTools Protocol (CDP) |
64+ | ** Requires CDP port** | No | Yes (` --remote-debugging-port ` ) |
65+ | ** WPS Add-ins** | Yes | No (no CDP access) |
66+ | ** Electron / embedded browsers** | Yes | Maybe (needs CDP enabled) |
67+ | ** Remote debugging** | Yes (browser on any device) | Limited (same network, CDP exposed) |
68+ | ** Framework awareness** | Vue/React v-model, scheduler | DOM-only |
69+ | ** Zero external deps** | Pure Dev Server injection | Needs Puppeteer/CDP client |
70+ | ** Production sites** | Yes (standalone server + bridge.js) | Needs CDP exposed |
71+
8072## Browser-to-Claude Code (Channel Server)
8173
8274Push prompts directly from the browser to your running Claude Code session — no copy-paste needed.
0 commit comments