Make comments in the browser (like in Figma) and send them to Claude Code and Cursor. This chrome plugin + cursor ruleset connects your browser to your local development project. Comments made on the front end are batched into a markdown file. Run the command "bridge" to process them in Cursor. Simplify your workflow by adding more context to visual edits with Cursor.
-
Download or clone the Drawbridge to your desktop or location of choice
-
Go to chrome extensions, switch to dev mode, and unpack the extension drawbridge/chrome-extension
-
Activate the plugin
-
Pin it for easy access
-
Click the icon to open Drawbridge
-
Click "Connect" to open your file browser
-
Select the local project folder you want to work in
-
Grant acess to Drawbridge to edit your file
-
Drawbridge can now write to its moat-tasks.mdc and moat-task-detail.json files
-
Press
Cin your browser (or click the Tools dropdown β Comment), to turn your cursor into a pointer -
Hover over your page to see selectable DOM elements you can leave comments on
-
Click an element to leave a comment, type your comment, hit
Submitor pressEnter -
Tasks will be shown in the
Moatarea on the bottom of the page -
Tasks will also be synced to Cursor
-
Press
Rin your browser (or click the Tools dropdown β Rectangle), to enter rectangle drawing mode -
Your cursor will change to a crosshair, indicating you're in drawing mode
-
Click and drag on the page to draw a rectangle around the area you want to annotate
-
Release the mouse button to finalize the rectangle - a comment box will appear at your cursor
-
Type your comment and hit
Submitor pressEnter -
The rectangle coordinates and screenshot will be saved with your task
Keyboard Shortcuts:
- Press
Cto switch to Comment mode (pointer cursor) - Press
Rto switch to Rectangle mode (crosshair cursor) - Press
Escto exit either mode - You can toggle between modes with
CandRbefore starting an interaction
Drawbridge works with Cursor and Claude Code:
-
Run Drawbridge: In your editor, simply run the command:
bridge -
Drawbridge will analyze your tasks, understand dependencies, and begin making edits.
-
Approve: By default, drawbridge processes tasks in Step mode - one at a time. You may be asked for approval:
-
To begin the task
-
To finish the task (updates the status in moat-tasks.md and moat-tasks-detail.json)
-
-
Wait: You can watch your tasks get updated in the moat-tasks.md
-
IF you run into trouble with "bridge" simply be more explicit by saying "use @drawbridge-workflow.mdc to process @moat-tasks.mdc"
-
Run the slash command (works in terminal or Cursor with Claude Code):
/bridge -
Choose mode: Claude will ask for your preferred processing mode:
- step: One task at a time with approval
- batch: Group related tasks together
- yolo: Process all tasks autonomously
-
Automatic Setup: The
/bridgecommand is automatically deployed to.claude/commands/when you connect your project
Claude Code Features:
- β Smart error messages - Helpful guidance if tasks aren't found
- β File references - Tasks include file paths for easy navigation
- β Screenshot support - Visual context from browser annotations
- β
Git-safe - Automatically adds
.claude/and.moat/to.gitignore - β
Status tracking - Follows
"to do" β "doing" β "done"lifecycle
-
Go back to your browser to see your changes
-
Should be automatic if you're using react / next.js
-
Refresh the page if you're using html / css / js
-
-
Continue making edits to refine your work!
-
drawbridge-workflow.mdc: The main ruleset for the AI. This is where Drawbridge's "brain" is defined. -
moat-tasks.md: A human-readable list of your pending tasks. -
moat-tasks-detail.json: The raw, detailed data for each task, including selectors and screenshot paths. -
/screenshots: Visual context for each annotation, used by the AI to understand your intent.
-
Annotate:
-
Click a button β "make this green".
-
Click the same button β "add more padding".
-
-
Process: In your editor, run
bridge. -
AI Analyzes:
π€ Dependency detected. Processing "make this green" before "add more padding". -
Review: The AI reviews your moat-tasks-detail.json for details of your comment.
-
Approve: You reply
yes. -
Repeat: The AI proceeds to the next dependent task.
You can control how Drawbridge processes tasks by specifying a mode.
-
step bridge(Default: Safe & Incremental)- Processes tasks one by one, asking for approval at each step. Perfect for complex changes.
-
batch bridge(Efficient & Grouped)- Intelligently groups related tasks (e.g., all button styles) and processes them together, asking for a single approval per batch.
-
yolo bridge(Autonomous & Fast)- Use with caution. Processes all pending tasks in the correct dependency order without stopping for approvals. A full summary is provided at the end.
-
Be Specific: "change font to sans-serif" is better than "change font".
-
Chain Your Thoughts: For multi-step changes, create separate but related annotations. The AI is smart enough to understand the order.
-
Good: 1. "make button blue" β 2. "add shadow to the blue button"
-
Bad: 1. "make button blue and add a shadow"
-
-
Focus on One Thing: One annotation should represent one distinct change.
-
"Dependency Error": This means tasks might be out of order. Check the AI's analysis to see the required sequence.
-
Task
failedStatus: If a task fails (especially inyolomode), checkmoat-tasks.md. You can reset its status topendingin the.jsonfile to retry. -
Connection Issues: If Drawbridge can't find tasks, press
Cmd/Ctrl+Shift+Pin your browser and re-select your project directory to reconnect.
Happy building with Drawbridge! π―
This project is licensed under a custom license. See the LICENSE file for details.
Key points:
- β Free to use, copy, and modify for any lawful purpose
- β No redistribution, sublicensing, or selling
- β Cannot be offered as a commercial service
For commercial licensing inquiries: [email protected]