Longer sessions,
smaller bills.
Your code stays on your machine.
Compaction cuts both sides of AI coding calls: ~48 to 50% less input and ~50 to 70% less output in provider-measured runs. Local across Claude Code, Codex and Cursor.
Less in.
Less out.
Compaction attacks both sides of every AI call. Agents repeatedly resend long histories and generate more than every task needs. Compaction reduces both.
Compact old context before it is sent. Prevent unnecessary generation before it is produced.
One line.
The whole turn.
A developer doesn't have to trust a marketing dashboard. Compaction tells them what happened on the turn itself. Watch what disappeared.
Keep what matters.
Compact everything else.
Compaction protects the state that still matters and compresses the history that no longer does. Selective reduction, not blind truncation.
- Current taskwire retry budget into gateway proxyPreserve
- Old tool output2,140 lines · npm test (run 1 of 4)Compact
- Codeproxy.ts · retryWithBudget()Preserve
- Resolved discussionnaming: budget vs. allowance, settledCompact
- Commandpnpm --filter api test -- --runInBandPreserve
- Superseded approachearlier setInterval polling draftCompact
- File pathapps/api/src/gateway/proxy.tsPreserve
- Repeated contextenv matrix pasted 3× across turnsCompact
- Constraintkey never read, stored, or loggedPreserve
- Dead endabandoned edge-cache experimentCompact
- Unresolved errorETIMEDOUT on cold gateway startPreserve
- Obsolete historysetup logs from a prior branchCompact
- Current state3 of 5 checks passingPreserve
Keep your agents.
Keep control.
No new editor. No new agent. Compaction works underneath the tools you already use. The request goes straight from your machine to your provider.
direct · no middleman
Every change
leaves evidence.
Compaction doesn't just optimize a turn. It records why, how much, and whether the original can be recovered, as a content-free object you can read.
- policy
- stale_tool_output_to_state_capsule
- family
- tool_output
- input
- 41,210 → 21,876
- reduction
- −47%
- source
- provider-reported
- recoverability
- passed
- original
- available
- receipt
- 8f4c2f6e
One developer sees a receipt.
A team sees the system.
Give every AI workflow the same optimization layer. Developers get longer sessions and less noise. Engineering sees where the tokens go. Finance sees what changed and what it was worth.
Get started| Name | Usage | Tokens reduced | Reduction | Est. value | Evidence |
|---|---|---|---|---|---|
| Claude Code | 14.2k runs | 22.1M | −53% | $812est. | provider-reported |
| Codex | 9.6k runs | 15.4M | −49% | $564est. | provider-reported |
| Cursor | 7.1k runs | 8.9M | −44% | $466est. | local estimate |
Every saving
has a source.
Most AI cost tools tell you what you spent. Compaction changes what you spend, then shows its work.
- model
- claude-fable-5
- source
- provider-reported
- pricing
- 2026-08
- basis
- provider-priced estimate