3-Tier Web Access for Agents: Search/Fetch/Browser Separation Cuts Context Pollution by 82%
Dan-Mercede · reddit · 2026-07-06
The author proposes splitting Agent web access into three distinct roles: Search returns only candidate URLs without reading full text; Fetch converts pages into clean Markdown before passing them to the model (tests show a reduction from 9541 tokens to 1678 tokens on the same page, saving 82%); and Browser specifically handles operations requiring stateful interaction. The core philosophy is to prevent raw HTML—along with irrelevant navigation bars, scripts, and ads—from polluting the Agent's working memory. This layered design balances token costs with context quality.
More from coding & agent
- A 9B Ollama agent can run a fully local DJ radio with tools, memory, and TTS — pinku1 · 2026-07-27
- Bugbot rejects an MCP permission flag because it would break path-scoped isolation — zeeg · 2026-07-27
- One GPT-5.6 agent is guarding a Blink security system while another makes a parody rap album — repligate · 2026-07-27
- An agent got unblocked by reusing a logged-in browser, not stealth tricks — armanidev_ · 2026-07-27
- Paper argues graph topology can become the core operating system for AI agents — theomitsa · 2026-07-27
- Claude Code desktop adds UI markup feedback for smoother visual editing — EricBuess · 2026-07-27