84% of agent context was noise: How I fixed it
hheadshott · reddit · 2026-08-27
After measuring his coding agent's context for a week, the author found that 84% of the token count was useless command output noise (e.g., 47k tokens from cargo test where only 669 bytes were useful).
Key learnings:
- Filter at execution time: Cost is paid once data is in the transcript.
- Bounded output must name what was dropped: Silent truncation is worse than long output.
- Attribution > Compression: Savings numbers are meaningless unless one component owns the ledger.
- Agents route around friction: The efficient path must require less judgment than the bypass.
- Never fake a zero: Report "unknown" if the ledger is unavailable.
Result: Delivered tokens reduced by 84% (284,996 -> 44,400) across 14 cases, preserving run records and checksums.
More from coding & agent
- Musk amplifies dev's verdict: Grok Bot easier to use than Codex and Claude — elonmusk · 2026-10-15
- Blob0 launches: a macOS file-manager-style desktop client for S3 and Cloudflare R2 — yihui_indie · 2026-10-15
- The 6-Layer AI Engineer Skill Stack for 2026: Vectors to Multi-Agent Ops — mdancho84 · 2026-10-15
- Building a Mechanical Engineering Agent Workflow in ChatGPT: 30-Node Canvas Shows Promise — burhop · 2026-10-15
- Open-source Harness Engineering course hits 19k stars, shows $9 vs $200 gap between failing and working agent setups — thisguyknowsai · 2026-10-15
- A 6-person team shipped healthcare prior-auth AI agents in 3 months — here's the playbook — alex_verem · 2026-10-15