# Repository Briefing: breschio/drawbridge
> Source: https://repoforai.com/repo/breschio/drawbridge (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/breschio/drawbridge
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: See repository
- **Engineering Health**: B (62/100 · Maintenance 26/35 · Adoption 16/25 · Releases 14/20 · License 6/20)
- **Latest Release**: v1.0.6 (2026-06-07) — https://github.com/breschio/drawbridge/releases
- **Review Snapshot**: 2026-12-02
- **Momentum**: 971 ★ total (+0 24h / +1 7d) · 80 forks
- **When to Use**: Best for: Designers and frontend engineers turning repeated UI findings on a running app into a reviewable task queue for a coding assistant in the same local checkout. Skip if: You need a shared cross-team issue tracker, cannot grant Chrome write access to the project, or only need to send a one-off screenshot.

## Overview
```text
### Architecture & Core Mechanics
Drawbridge is a JavaScript Chrome extension whose handoff to coding assistants is file-based. `chrome-extension/` is the unpacked extension entry point. Its browser drawer captures an annotation on the running page and writes the queue to a project root after the user approves Chrome’s file access prompt. Markdown carries the readable task list; JSON holds structured task details; screenshot files preserve the visual context.

The assistant runs from the project workspace rather than inside the extension. Drawbridge generates `.moat/drawbridge-workflow.md` and tool-specific files at `.claude/commands/bridge.md`, `.windsurf/workflows/bridge.md`, and `.codex/prompts/bridge.md`. Cursor is also supported, though no dedicated Cursor artifact is listed. The handoff uses files and workflow instructions, not an identified MCP server or model API. The npm scripts serve development and packaging.

### Key Capabilities & Differentiators
Element comments capture selector data, element context, bounding boxes, and screenshots. A freeform rectangle is more useful for layout and spacing issues that span several DOM nodes or are awkward to target individually. Task-card thumbnails provide a visual cue; hovering a card can highlight its live element and scroll to it when it is off-screen.

The drawer tracks `to do`, `doing`, and `done` and can dock to the bottom or either side of the viewport. `/bridge` or `bridge` gives the coding assistant a way to process the queue: step mode asks for approval one task at a time, batch mode groups related changes, and yolo mode processes pending work autonomously. These are workflow choices, not model backends; Drawbridge captures and organizes the work, while the selected assistant edits the code.

### Trade-offs & Limitations
Compared with pasting a screenshot into chat, Drawbridge takes more setup but gives repeated UI fixes a durable queue with visual and DOM context. Compared with a shared issue tracker, it shortens the path from the browser to a local checkout; it does not establish a shared source of truth for assignments or review. Selector and bounding-box data describe the captured page state, so recheck the target after a substantial layout or DOM change.

Connecting a directory has a write footprint: Drawbridge maintains generated files and updates `.gitignore`. Review project permissions and screenshot contents before handing the queue to an assistant; local capture does not imply offline inference or that task data stays on the device after handoff. Start with step mode when approval matters. Inspect the root `LICENSE` before commercial use or redistribution, since its terms are unspecified here.

### Hardware & Deployment Guide
Load `drawbridge/chrome-extension/` as an unpacked extension in Chrome Developer mode. Open the running app, choose Connect Project in the drawer, select the local project root, and approve Chrome’s file access prompt. Enable file URL access separately if you need to annotate `file://` pages. There is no separate server to start for the local handoff; the coding assistant runs separately in the workspace.

For extension development and packaging, use `npm ci`, `npm test -- chrome-extension/background.test.js --runInBand`, and `npm run build`; the build writes `dist/drawbridge-v.zip`. v1.0.5 added freeform rectangle capture. v1.0.6 added slim side rails and in-place comment editing that updates the queue, prompt, and JSON together. After an extension reload, clicking the toolbar icon can reinject missing scripts into an already-open tab.
```

## Key Capabilities
```text
- Capture modes: Comment on a DOM element or draw a freeform rectangle across multiple elements.
- Task context: Captures selector data, element context, bounding boxes, and screenshots.
- File handoff: Keeps a Markdown queue, structured JSON details, and screenshots under `.moat/`.
- Agent workflow: Generates Claude Code, Codex, and Windsurf workflow files; Cursor can consume the same queue.
- Execution control: Step mode requests approval per task, batch mode groups related work, and yolo mode processes pending work autonomously.
- Drawer ergonomics: v1.0.6 adds collapsible side rails and keeps the queue, prompt, and JSON in sync when comments are edited.
```

## Quick Start / Clone
```bash
npm ci
npm test -- chrome-extension/background.test.js --runInBand
npm run build
```
