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
- Dev: having AI "surface implicit state machines" is incompatible with writing performant code — zack_overflow · 2026-11-30
- HungerG stealth model revealed as early Step 5 from StepFun, free access ends tonight — StepFun_ai · 2026-11-30
- Default coding agent memory is "the worst": old session content sabotages current work — ZeeshanZiaML · 2026-11-30
- Vibe42's design philosophy: do the least, make AI agent interaction friction-free — sujingshen · 2026-11-30
- Athena v1.4.0: A Local MCP Safety Net With Zero False Passes Across 94 Real Breaking Commits — Significant-Log-4272 · 2026-11-30
- How Should an Agent Verify a Reminder Is Still Allowed Before Sending? A Race Condition Design Question — YungsEnterprises · 2026-11-30