loading
Loading.loading
Loading.The model API bill is the cost you see; the one that surprises you is context. An agent re-reads and re-derives your codebase every session, so most of the spend is tokens paid to re-learn what it already knew. Control it by giving agents a durable source of truth instead of re-reading the repo, and by making cost observable per task, so you tune a number, not a guess.
Updated
Go deeper: read the full write-up on the blog.
Not the clever output, the context. Every agent, every session, re-reading the same files to rebuild understanding it had yesterday. A 2026 study of agentic coding runs (Bai et al., arXiv:2604.22750) found input tokens, not output, drive the cost, and the same task can swing up to 30x in tokens from one run to the next. At fleet scale that repetition is the bulk of the bill, and it's invisible until you measure per-task cost.
Serve agents the current, canonical answer about your codebase on demand (this is what trovex does, a measured ~60% fewer tokens per lookup at equal task-success; methodology at trovex.dev/measure) instead of having them re-derive it. Cheaper models help at the margin; cutting re-derivation moves the number.
Observability per task (what each run cost and produced) turns spend into something you tune. Without it, you only learn the bill at the end of the month and can't attribute it.
or have us build it — same capability, the other door