Open-source MCP server drives your own Chrome, returning ~24 tokens per action
Synthxxmusic · reddit · 2026-12-02
A Reddit user released codex-in-chrome, an MCP server + Chrome extension built for Codex that lets the model drive your own browser with a strong focus on minimizing token usage.
Key design choices:
- Page snapshots are one line per element (925 tokens for 60 elements on Hacker News)
- Actions return a diff instead of a fresh snapshot (24 tokens for a click that navigates)
- Screenshots go to disk unless the model asks for them
- A batch tool runs multiple steps in one call
- 25 tool definitions total, about 2.7k tokens
Input goes through the Chrome DevTools Protocol so background tabs work; only the pinned extension ID can connect to the local bridge. MIT licensed, tested on Windows.
More from coding & agent
- Open-source Murmuration renders Solana's long tail as live 3D flock using random matrix theory — jradoff · 2026-12-02
- Developer: the cost of a line of code is approaching zero — tlakomy · 2026-12-02
- Veteran graphics trick: step-scaled detail UVs by distance to fully hide texture tiling on rocks — Promptmethus · 2026-12-02
- 13 AI automations grew Revid's AI-assistant traffic 473% in 6 months, with proof — tibo_maker · 2026-12-02
- OpenAI internal data: coding agents now finish 46% of 2-4 hour research tasks unsupervised — dl_weekly · 2026-12-02
- AWS re:Invent 2026: Ergo open-weights model and Greenlight agent governance dissected — shashib · 2026-12-02