Reducing Agent Token Usage by 84% via Command Output Filtering

hheadshott · reddit · 2026-08-27

The author observed that 84% of tokens in agent sessions were wasted on unread command outputs like test logs. To fix this, they built a local daemon, hzr, that handles execution and memory. It filters output at runtime, keeping only essential data like failing test summaries. Benchmarks show an 84% reduction over raw tools and 23.6% over existing filters.

Related event: 84% of Agent Context Is Noise: Filtering Cuts Token Waste(2 posts)→

Original post →

More from coding & agent

coding & agent channel →