
Hi everyone,
I’m Michael, founder of Codag.
TL;DR: Codag compresses tool results before models read them, lowering costs and improving accuracy without changing how developers work, while providing tool usage analytics.
Agents consume huge amounts of output from searches, tests, builds, logs, file trees, and APIs.
A single tool result can add thousands of mostly repetitive lines to a session. The model processes that output before provider-native compaction can help. Important evidence gets buried, so the agent searches again, retries, or rereads the same data.
This makes agent sessions slower and more expensive. Companies also lack a consistent view of which tools and MCP servers agents use across Claude Code, Codex, and other harnesses.
Codag attaches to existing agent harnesses with one setup command.
It handles each result according to the action being performed:
- Tests preserve failures, traces, file locations, and exit status.
- Searches preserve exact file and line references.
- Logs preserve chronology, causal evidence, and outliers.
- Anything omitted remains selectively retrievable.
Optimized tool results are 75% smaller on average, while preserving signal.
Developers keep working normally. Codag reduces what reaches the model before the model pays to read it.
Codag also reports which tools and MCP servers agents invoke, along with tokens, model-adjusted spend, savings, reducer cost, and latency across providers. Because Codag already sits in the tool path, it becomes the natural place for companies to control which tools agents can use, under what policies, and at what cost.
More than 90 organizations use Codag, including teams of up to 35 people. I built and sold the product solo.
Our bet is that agent activity will grow faster than model prices fall. As companies give agents more tools, longer tasks, and production access, they will need infrastructure that reduces, measures, and controls agent tool use across every provider.
Codag starts with compression. The larger opportunity is becoming the gateway through which companies understand and control how agents use tools.
If your team uses agents, check out codag.ai, or contact me at michael@codag.ai