Cut Agent Web-Read Tokens
Experiment Log · 2026-07-05 · 03:40 PM PT

Hypothesis: Converting a page to markdown before the model reads it, and fetching in a subagent, cuts an agent's web-read token cost without losing content.
Constraint: One real page, raw HTML vs clean markdown, same tokenizer.
Result: Passed. 9,541 tokens raw vs 1,678 as markdown, an 82% cut on that page (20-30% typical). The extraction is deterministic markdown, not a model summary, so it cannot hallucinate. A keyless reader CLI runs in a subagent, so raw HTML never reaches the main context. A live smoke test caught a browser User-Agent 403 the unit tests missed.
Next step: Full stack and the reader CLI in the guide: https://www.danmercede.com/guides/giving-your-agent-web-access
Tags: #economics #execution #systems