Benchmarks · v0.29.7
The smallest output.
Every failure line kept.
53 real command outputs. Downshift against 10 other output-compaction tools, on the same machine, on 4 December 2026.
Leaderboard
Output cut over 51 commands. An output that loses a failure line counts as no cut for that command: a smaller output that hides the error is not a saving. The 3 MB log is left out so one file does not decide the order.
Where it stands out
A tool can win on size by throwing the error away. Bytes per output; amber means failure lines were lost.
pytest (failing)
1,205 B raw · 3 failure lines
eslint . (failing)
9,494 B raw · 1 error line
curl big.log (3 MB)
3,024,071 B raw · 1 error line
Beyond compaction
Compaction is one part of Downshift. Each cell was checked against the tool's own README or docs on 5 December 2026; the failure-line row is measured above.
| Capability | Downshift | context-mode | tokenjuice | ctxslim | Token-Saver | rtk | token-optimizer | lean-ctx | tokf | sqz | Headroom |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Routes subagents to the model tier you choose | ✓ | ? | ? | – | ? | ◐ | ◐ | – | ? | ? | – |
| Failing runs with every failure line kept (measured above) | 15/15 | 12/15 | 14/15 | 15/15 | 13/15 | 7/15 | 15/15 | 14/15 | 8/15 | 10/15 | 14/15 |
| Full original output recoverable by the agent | ✓ | ✓ | ◐ | ✓ | ◐ | ◐ | ✓ | ◐ | ✓ | ✓ | ✓ |
| Works as a plain shell command, no hook needed | ✓ | ? | ✓ | ◐ | ✓ | ✓ | ? | ✓ | ✓ | ✓ | ◐ |
| Fails open: an error or timeout leaves the command unchanged | ✓ | ✓ | ? | ✓ | ✓ | ◐ | ✓ | ◐ | ◐ | ✓ | ? |
| OSI open-source licence | ✓ | – | ✓ | ✓ | ✓ | ◐ | – | ◐ | ✓ | ✓ | ✓ |
✓ Yes◐ Partial– No? Not documented
Sources for each cell
- Downshift (Claude Code, Codex, Cursor, Antigravity, OpenCode, KiroCrew): Routes subagents to the model tier you choose · Full original output recoverable by the agent · Works as a plain shell command, no hook needed · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- context-mode (Claude Code, Codex, Gemini CLI, Qwen Code, OpenCode, Copilot CLI, Kiro, VS Code, and more): Full original output recoverable by the agent · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- tokenjuice (Claude Code, Cursor, Gemini CLI, Cline, OpenCode, Copilot CLI, Codex CLI, and more): Full original output recoverable by the agent · Works as a plain shell command, no hook needed · OSI open-source licence
- ctxslim (Claude Code): Routes subagents to the model tier you choose · Full original output recoverable by the agent · Works as a plain shell command, no hook needed · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- Token-Saver (Claude Code, Antigravity CLI, Codex): Full original output recoverable by the agent · Works as a plain shell command, no hook needed · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- rtk (Claude Code, Copilot, Cursor, Gemini CLI, Codex, OpenCode, Windsurf, Cline, Antigravity, and more): Routes subagents to the model tier you choose · Full original output recoverable by the agent · Works as a plain shell command, no hook needed · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- token-optimizer (Claude Code, Codex, OpenCode, Copilot, Cursor, Antigravity, and more): Routes subagents to the model tier you choose · Full original output recoverable by the agent · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- lean-ctx (Cursor, Claude Code, Codex CLI, Gemini CLI, Windsurf, Copilot, OpenCode, Kiro, Antigravity, and more): Routes subagents to the model tier you choose · Full original output recoverable by the agent · Works as a plain shell command, no hook needed · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- tokf (Claude Code, Gemini CLI, Cursor, OpenCode, Codex CLI, and more): Full original output recoverable by the agent · Works as a plain shell command, no hook needed · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- sqz (Claude Code, Cursor, Windsurf, Cline, Gemini CLI, Kiro, OpenCode, Codex CLI, Zed, Copilot CLI, and more): Full original output recoverable by the agent · Works as a plain shell command, no hook needed · Fails open: an error or timeout leaves the command unchanged · OSI open-source licence
- Headroom (Claude Code, Codex, Cursor, Aider, Copilot CLI, OpenCode, Cline, Continue, Goose, and more): Routes subagents to the model tier you choose · Full original output recoverable by the agent · Works as a plain shell command, no hook needed · OSI open-source licence
How it was measured
Each tool ran on the same 53 captured outputs (52 with content); sizes are bytes, and tokens scale the same way (about 4 bytes each), so the percentages hold for tokens. A head-to-head is decided when the sizes differ by more than 2 bytes; a win where the other tool dropped content (failure lines, or lines cut with no way back) is not counted for it. Headroom ran without its optional Kompress model. Tools and versions: context-mode 2.2.7, tokenjuice 0.11.3, ctxslim 0.3.0, Token-Saver 3.0.1, rtk 1.1.0, token-optimizer 5.13.87, lean-ctx 3.12.12, tokf 0.2.54, sqz 2.2.0, Headroom 0.40.0.
Run it yourself: make bench-h2h in the downshift-ai repository runs the same command list against the tools on your PATH (script).