Codag
Backed by Y Combinator

Cut the tool-output tax
your coding agents pay

all tool output
tests · search · logs · file trees
what your tools
print
what matters
the failure, not the noise
what your agent
reads
$ npm test
PASS src/auth.test.ts (42 tests)
PASS src/cart.test.ts (38 tests)
PASS src/api/orders.test.ts (57 tests)
PASS src/api/refunds.test.ts (31 tests)
PASS src/shared/money.test.ts (64 tests)
FAIL src/checkout.test.ts > applies discount codes
PASS src/shipping.test.ts (22 tests)
$ grep -rn "applyDiscount" src/
src/checkout.ts:118: applyDiscount(cart, code)
src/legacy/promo.ts:44: export function applyDiscount(
src/legacy/promo.test.ts:12: applyDiscount fixture
+ 6 more matches in legacy/
$ ls -R src/
auth/ cart/ checkout/ orders/ shared/ legacy/
checkout/: index.ts discount.ts totals.ts
$ kubectl logs deploy/api --tail=500
INFO request id=9d1 path=/v1/orders 200 12ms
INFO request id=9d2 path=/v1/orders 200 14ms
WARN pool acquire 480ms
ERROR psycopg2.OperationalError: connection
INFO request id=9d4 path=/v1/carts 200 11ms
$ cat docs/payments-runbook.md
# Payments runbook
## Rotating provider keys ...
$ curl api.internal/v1/orders?limit=1000
{"orders":[{"id":"ord_1","items":[...
+ thousands more lines …
# codag  npm test printed
4,212 lines. your agent
reads this instead:

FAIL src/checkout.test.ts
  > applies discount codes
  AssertionError:
    expected 500 to equal 502
  at src/checkout.test.ts:118

the other 4,180 lines were
passing suites. skipped, and
your agent can pull any of
them back word for word.

Agents are great at reasoning
and terrible at reading

context

Tool output floods the window

Test runs, search results, file trees, logs. One big result can push out everything the agent already learned and force another expensive lap.

spend

You pay for every byte it reads

A session makes hundreds of tool calls, and a handful carry the answer. The rest is billed input the model reads once and throws away.

one command

Set up once
Go back to your agent

No wrapper command, no config files to edit, no new workflow to learn. Setup attaches the agents it detects and rolls everything back if any step fails.

codag setup

Attaches Claude Code and Codex

Sign in through the browser, or set CODAG_API_KEY for CI. Setup verifies your workspace with a live unbilled check, installs a per-user local service, and attaches the supported agents it finds.

Other tools are detected and reported, never modified. Everything is reversible with codag disable.

$ codag setup
✓ signed in via browser
✓ workspace verified, live reduction check passed
✓ local service healthy
✓ attached: Claude Code, Codex

setup complete. use your agents normally.

then nothing changes

Same agent, same prompts, same model

Your provider account, your credentials, your gateways. Model traffic goes through a local proxy on your machine directly to your provider.

Codag only changes how large tool results reach the agent. Check it any time with codag status and codag savings.

$ claude
> run the test suite and fix what breaks

· npm test ran, output reduced to the failures
· exact lines retrieved locally when needed
· everything else passed through untouched

The short version up front
The exact bytes on demand

Large eligible results are reduced to what the agent needs. Nothing is lost.

observe and classify

Every result is classified by kind. Unrecognized passes through untouched.

reduce what is large

Large results shrink to the failures, matches, and signal lines.

retrieve exactly, locally

Omitted bytes stay encrypted on your machine, pulled back exactly on demand.

example · one tool result
# npm test 4,212 lines of output
kind=test_build_lint decision=reduced
 
FAIL src/checkout.test.ts > applies discount codes
AssertionError: expected 500 to equal 502
at src/checkout.test.ts:118
 
omitted, retrievable locally
s1 lines 1-4180 passing suites
s2 group warnings

Every token,
accounted for

What your agents spent, what they would have spent, and the difference.

example · codag savings · last 30 days
$ codag savings
agent tokens avoided38.4M
estimated savedpublic model prices$291
reductionsacross 1,247 sessions11,032
exact retrievals418
example · per session · what the agent read
run test suite, fix failures1.9 MB → 84 KB
grep the monorepo3.2 MB → 61 KB
triage prod incident4.8 MB → 158 KB
migrate api client1.1 MB → 92 KB

all metrics are counts, sizes, and decisions. never prompts, commands, paths, filenames, or output.

Questions, answered

What is Codag?

Codag is a developer tool that cuts what coding agents cost to run. It teaches agents like Claude Code and Codex to read large tool results efficiently: big outputs are cut down to the parts that matter before the agent reads them, and the exact content stays retrievable on your machine. Setup is one command.

Does Codag change my model, my agent, or my prompts?

No. You keep the same agent, model, prompts, and provider account. Model traffic goes through a local proxy on your machine directly to your provider. Codag only changes how large tool results reach your agent.

What does Codag reduce?

Large eligible tool results: logs, test and build and lint output, search results, file listings, document reads, and agent handoffs. Source code, diffs, configuration, and exact structured data always pass through unchanged. When the agent needs an exact omitted section, it retrieves it locally by line range, JSON path, or group.

Is my code or data stored in Codag's cloud?

No. Eligible tool output is processed transiently to produce the shorter version and is not retained. Exact omitted content is kept encrypted on your machine for seven days with a 1 GiB cap. Billing runs on contentless metrics: counts and sizes, never prompts, paths, or output.

What happens if Codag goes down or I hit my quota?

Your agent gets the original tool output byte for byte. Codag fails open on timeouts, validation failures, unknown tool types, and exhausted quotas. A hard cap means passthrough, never a broken session.

How much does Codag cost?

Codag is sold to teams. Team is $499 per month with 200 GB of eligible tool output included and $0.50 per additional GB; Enterprise is contractual. Pilots run 14 days on your real workload, need no card, and never convert automatically. See pricing or book a demo.

Your agent works the same
Your bill does not

Book a demo and pilot Codag on your team's real workload. Setup is one command, and your developers keep working exactly as before.

14-day pilot, no card, never auto-charges.