Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Drop a pin on any UI element, write what to change, and your AI coding agent edits the source. In-browser visual annotation for Claude Code, Cursor, and any MCP agent — web + Electron.
Fetched from the repository for this visit.
Drop a pin on any UI, write what to change — your AI coding agent edits the source.
In-browser visual annotation → local inbox → your agent picks it up and applies the change.
No screenshots, no copy-paste, no describing which element. Works on any Chromium page —
a web dev server or an Electron renderer — with React component + file:line detection.
watch_annotations tool.Works with Claude Code out of the box; Codex, Cursor, and Antigravity
via vibepin init --agent <name> or the MCP tools — any MCP-capable agent, really.
🌐 Live demo (press ⌥A right on the page): https://yiwang3.github.io/vibepin · ▶ watch the demo 📖 Chinese quickstart: GETTING_STARTED.md
git clone https://github.com/YIWANG3/vibepin
cd vibepin/examples/react-vite # or web-vite / electron
npm install
npm run dev # opens a dev server (Electron: a window) with the overlay
npx vibepin init # adds the /vpin slash command
/vpin. It watches the inbox and
edits the right file every time you Send — React annotations even carry the component
name + file:line.npm i -D vibepinvite.config.js:
import vibepin from 'vibepin/vite';
export default defineConfig({ plugins: [vibepin()] }); // after react()
withVibepin(nextConfig) + a dev-only <Script> — see adapters/nextjs.md.npx vibepin daemon, then add
<script src="http://127.0.0.1:7331/annotate.js"></script> to your dev HTML.npx vibepin init (once), then restart Claude Code..vibepin/ to your .gitignore./vpin, then annotate in the browser.Below: architecture & reference.
flowchart LR
O["Overlay on any page<br/>⌥A · click / drag · note"] -- POST --> D["daemon :7331"]
D --> I[".vibepin/inbox.jsonl"]
I --> P{"your agent<br/>picks it up"}
P -- MCP --> M["watch_annotations<br/>long-poll → edit → loop"]
P -- file --> F["watch.js → claim.js<br/>edit → re-arm → loop"]
The agent gets the annotation in one of two interchangeable ways — an MCP
watch_annotations long-poll, or a zero-dep file watcher (watch.js → claim.js).
The architecture constraint this respects: an MCP server / browser extension can
never push an agent turn — the agent (client) must initiate. So the wake is
always agent-side: either it parks in watch_annotations (MCP long-poll, same
pattern as vibe-annotations) or in a background watch.js that exits on change
and lets the harness re-invoke the agent. Same loop, two transports.
| Target | How to inject the overlay |
|---|---|
| Owned web project (Vite) | devDependency → import vibepin from 'vibepin/vite' — auto-spawns daemon + injects script in dev |
| Next.js | withVibepin(nextConfig) + a dev-only <Script> in your layout — see adapters/nextjs.md |
| Electron app | dev-only executeJavaScript loader + optional pixel-perfect capture — see adapters/electron.md |
| Any page / not yours | <script src="http://127.0.0.1:7331/annotate.js">, a bookmarklet, or a thin browser extension that injects the same line |
The overlay (core/annotate.js) is one file, identical everywhere. Only the
injection vector differs.
npx vibepin daemon # serves overlay + demo + collects annotations
open http://127.0.0.1:7331/ # demo page; press ⌥A, click, type, Send
npm install && npm run dev.npm install && npm run dev.withVibepin auto-starts the
daemon, overlay injected via a dev <Script>. npm install && npm run dev.capturePage for pixel-perfect crops. npm install && npm run dev.component + source (from the fiber's _debugSource,
or a data-source attribute fallback for React 19 / inspector plugins).rect and the
elements (with components) inside it. For "this whole row is cramped" feedback
that isn't a single node.Shortcuts: ⌥A / Alt+A toggle · Esc exit.
/vpin command/vpin is a Claude Code slash command — it lives in Claude Code's config, not in
node_modules, so npm can't install it. A CLI does:
npx vibepin init # writes ~/.claude/commands/vpin.md — then restart Claude Code
Then in any project, run /vpin. It parks a background file watcher and hands
control back to you; each time you Send annotations it wakes, edits the right files,
and re-arms. Zero idle token cost — the waiting happens in a shell process, not
the model — and you can keep typing other requests in the same window.
Under the hood it loops vibepin watch (blocks until the inbox grows) → vibepin claim
(drains + archives as JSON) → edit → re-arm.
Register the daemon's /mcp and tell Claude Code “start watching vibepin”:
claude mcp add --transport http vibepin http://127.0.0.1:7331/mcp
Tools: watch_annotations (long-poll), list_annotations, resolve_annotation.
Note: the agent polls, so it keeps spending tokens while idle — fine for
hands-free, worse for cost. Needs npm install (pulls @modelcontextprotocol/sdk).
Both modes read the same .vibepin/inbox.jsonl.
The loop is agent-agnostic — only the wiring differs. init writes that agent's
/vpin command/prompt (the token-cheap file-watcher loop) and prints its MCP
snippet as the alternative:
npx vibepin init --agent codex # ~/.codex/prompts/vpin.md
npx vibepin init --agent cursor # .cursor/commands/vpin.md (run in your project)
npx vibepin init --agent antigravity # MCP-only — prints the snippet to register
npx vibepin init --agent all # all of the above + Claude Code
Per-agent details: adapters/codex.md ·
adapters/cursor.md · adapters/antigravity.md.
All transports read the same .vibepin/inbox.jsonl.
tag#id.class.file:line, note,
region elements, page URL) and puts it on your clipboard — paste it into any agent
(Claude Code, Codex, Cursor, ChatGPT, …). Zero setup: no daemon pickup, no watch
loop, no MCP — the lowest-friction, fully non-invasive way to hand off.selector, rect, truncated outerHTML, a curated
getComputedStyle subset, note, url, and (if window.__vibepinCapture exists) a screenshot.127.0.0.1 only. Inbox path is fixed at startup so the watcher is unambiguous.GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.