We cut Claude's token usage 79% by redesigning our CLI for agents
1–7 of 7 posts
Re: We cut Claude's token usage 79% by redesigning our CLI for agents
#2Then agent traffic started showing up, and it became clear the 1.0 scope was the right idea aimed at the wrong caller. A human reviewer reads a PR comment; an agent runs `infracost inspect --filter` ... and gets the same insight as a tabular row it can pipe into the next step. So we decided to skip our planned 1.0 release and go for 2.0, where we treated agents as a first-class citizen user of the CLI.
Along the way we picked up some interesting lessons on optimizing user token usage when designing a CLI, and we want to share them with the HN community since other CLI builders might benefit.
Re: We cut Claude's token usage 79% by redesigning our CLI for agents
#3Re: We cut Claude's token usage 79% by redesigning our CLI for agents
#4Designing interfaces specifically for agents (M2M DX) is a fascinating shift from traditional human-centric CLI design. We're moving from a world where "pretty" output and progress bars mattered to a world where raw, structured density is the goal. A 79% reduction is massive, but I wonder if we’ll see a new type of "Agent-Optimized" protocol emerge that completely bypasses the text-heavy nature of current CLIs. The o…
And yes, one of the outcomes of this was also ditching the human output for something more dense and LLM friendly.