icons
initial commitsrc
Add file attachments, multiline instructions, and scroll-aware overlays.gitignore
initial commitbuild.mjs
initial commitLICENSE
initial commitmanifest.json
Add file attachments, multiline instructions, and scroll-aware overlayspackage-lock.json
Add file attachments, multiline instructions, and scroll-aware overlayspackage.json
Add file attachments, multiline instructions, and scroll-aware overlaysPRIVACY.md
initial commitREADME.md
Add file attachments, multiline instructions, and scroll-aware overlaystsconfig.json
initial commitContextBox
Chrome extension that captures UI context from webpages and sends it to AI coding tools via AiBridge and AiBridge cursor extension.
Features
- Element Selection: Click to select elements, Shift+click to add to group, Alt+click to select parent
- Context Extraction: Captures HTML, CSS, accessibility info, and screenshots with bounding boxes
- AiBridge Integration: Send context directly to Claude Code, Cursor, or other AI tools
- Clipboard Support: Copy formatted prompt when AiBridge is unavailable
Installation
From Chrome Web Store
Coming soon.
Manual Installation
- Clone or download this repository
- Run
npm install && npm run build - Open
chrome://extensions/in Chrome - Enable "Developer mode"
- Click "Load unpacked" and select the
distfolder
Usage
- Click the ContextBox icon in Chrome toolbar
- Click "Start Selection" to enable selection mode
- Click elements on the page to select them (numbered boxes appear)
- Add instructions in the popup that appears near selections
- Press Enter or click Send (if AiBridge connected) or Copy
Keyboard Shortcuts
- Click: Select/deselect element
- Shift+Click: Add element to current group
- Alt+Click: Select parent element
- Enter: Send (if connected) or Copy
- Escape: Clear all selections
AiBridge Setup
ContextBox works best with AiBridge for direct AI tool integration.
For terminal-based AI tools (Claude Code, Codex, Gemini CLI)
Install AiBridge:
# macOS/Linux/WSL
curl -fsSL https://raw.githubusercontent.com/MobAI-App/aibridge/main/install.sh | bashLaunch your AI tool through AiBridge:
aibridge claude # Claude Code
aibridge codex # Codex
aibridge gemini # Gemini CLIFor Cursor
Install the AiBridge Cursor extension (also available in the Cursor marketplace as AiBridge). The extension runs the bridge server automatically within Cursor.
Connection
ContextBox automatically detects AiBridge on http://127.0.0.1:9999. Without AiBridge, use the Copy button to copy the prompt to clipboard.
Configuration
In the popup:
- Include HTML snippets: Include element HTML in context
- Include computed styles: Include CSS properties
- Include accessibility info: Include ARIA attributes
- AiBridge URL: Change if using custom port (default:
http://127.0.0.1:9999)
Development
npm install # Install dependencies
npm run build # Build extension
npm run watch # Watch modeMobile Devices
For a similar experience on mobile devices, check out MobAI.
Privacy
ContextBox:
- Only activates when you click "Start Selection"
- Processes data locally in your browser
- Only sends data to AiBridge on your local machine
- Automatically redacts sensitive attributes (passwords, tokens, etc.)
- Does not collect or transmit any analytics
License
MIT License - see LICENSE