git log costs your agent 624 tokens. It needs 55. Here's a list of the worst offenders
Summary
The article highlights how verbose CLI output wastes tokens for LLM coding agents and introduces a pattern-based compressor that reduces shell command output noise while preserving essential information.
Similar Articles
"I audited 73 public agent trajectories for wasted tokens — 74% had measurable waste (open-source tool, runs locally)
An MIT-licensed CLI called chewme-audit audits agent trace exports to detect wasted tokens, finding 74% waste across 73 public benchmark trajectories, and offers per-provider pricing plus copy-paste fixes that reduced token waste by up to 77% in live runs.
@yibie: Recommends this hardcore real-world test. An engineer tracked his coding agent session for a week and found that only 0.67% of tokens were spent on actual tasks—the remaining 99% all went to moving tool directories, skill descriptions, and system prompts. Work-to-overhead ratio 1:1…
An engineer tracked his coding agent's token usage over a week, finding that only 0.67% of tokens were spent on actual tasks, with 99% consumed by tool directories, skill descriptions, and system prompts. He provides optimization strategies, including shell output filtering which saved 46.9% of tokens.
Subagents Account for Most Token Costs in Long Agent Runs: Fixes That Cut Usage 70 to 90 Percent in Practice
The article analyzes a 2026 paper by Bai et al. showing that subagents and context bloat cause token costs in long agent runs to be ~1000x higher than chat, and presents three practical fixes (PLAN.md, read budget, out-of-band notes) that reduce token usage by 70-90%.
@LangChain: Your coding agent bill doubled and nobody can tell you why. Here's the actual reason: Claude Code, Cursor, and Copilot …
Coding agent costs are rising due to fragmented logging across tools like Claude Code, Cursor, and Copilot; LangChain's LangSmith provides unified tracing and cost visibility to help teams monitor and optimize spend.
Cut my agent’s tokens by 72% (11.9k ➝ 3.3k per task). Here’s exactly what I changed, with numbers
A developer shares a detailed case study on reducing an AI agent's token consumption by 72% through system prompt reduction, tighter retrieval, tool output pruning, and other techniques, with minimal impact on success rate.