Hubcap Bridge: Persistent Two-Way Messaging Between CLI and Browser JavaScript via CDP

What Hubcap Bridge Does
Hubcap Bridge establishes a persistent two-way message channel between a local process and JavaScript running in a browser page using the Chrome DevTools Protocol. This addresses the gap where web apps lack public APIs or developers don't have access to them, but the apps have rich client-side JavaScript APIs powering their UI.
Key Features and Usage
The bridge command syntax is:
hubcap bridge --target "$TAB" ' for await (const msg of messages) { const result = await window.appAPI.query(msg.sql); send({rows: result}); } 'Communication happens via stdin/stdout carrying LDJSON format. Heartbeats detect disconnection, and multiple bridges can run in the same tab.
Practical Applications
This enables building Claude Code skills that include a local server kept in sync with a web page through its internal APIs. The server uses bridge to push and pull data through the page's JavaScript layer, with Claude communicating to the server. This approach avoids HTML scraping and doesn't require waiting for someone to build an MCP server.
Because CDP-injected code runs in the page's own context, there are no CORS, CSP, or mixed content issues to work around. The author notes: "If you can call it from the browser console, you can pipe it through bridge."
Additional Release Notes
Also in this release: eval now supports top-level await.
Important Consideration
The source includes this note: "(Make sure you're staying within the terms of service of whatever you're integrating with.)"
Resources
- Blog post: https://tomyandell.dev/blog/hubcap-bridge
- Hubcap plugin: https://github.com/tomyan/claude-skill-hubcap
- Docs: https://hubcap.tomyandell.dev
- Source: https://github.com/tomyan/hubcap
📖 Read the full source: r/ClaudeAI
👀 See Also

Exporting AI Agent Memories Using Claude's Import Function
A Reddit user shares a prompt for extracting stored memories from AI agents like ChatGPT and Claude, then importing them into OpenClaw. The prompt requests all stored context including instructions, personal details, projects, tools, and preferences.

Startup Bookkeeper: Free Claude Skill for Small Business Tracking
Startup Bookkeeper is an open-source Claude AI skill that helps bootstrapped founders track expenses by categorizing transactions from plain English descriptions, processing receipt photos with OCR, and generating dashboards or P&L statements.
MTP + Unified Memory Boosts llama.cpp Inference 30% on RTX 5090
Enabling MTP speculation alongside GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 pushes Qwen3.6-27B Q8_0 from 49 to 64 tok/sec on an RTX 5090 with 128GB system RAM.

AGI in md: 11 Cognitive Compression Levels for Claude System Prompts
A GitHub repository documents 11 levels of cognitive compression that can be encoded in Claude system prompts, with Level 8 shifting from analysis to construction and improving Haiku's performance from 0/3 to 4/4. The project includes 28 prompts, 299 raw outputs, and full experiment logs across 19 domains.