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.

412/416head-to-heads where Downshift's output was smaller (99%)
90.7%of the output cut across the suite, every failure line kept
15/15failing runs with every failure line kept, word for word

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.

#ToolOutput cutFailures keptDownshift won
1Downshift0.29.790.7%15/15—
2context-mode2.2.785.3%12/1534/34
3tokenjuice0.11.382.6%14/1537/37
4ctxslim0.3.077.7%15/1545/46
5Token-Saver3.0.170.8%13/1535/38
6rtk1.1.044.1%7/1538/38
7token-optimizer5.13.8740.1%15/1545/45
8lean-ctx3.12.1238.5%14/1544/44
9tokf0.2.5430.7%8/1540/40
10sqz2.2.021.4%10/1548/48
11Headroom0.40.0 · no Kompress model12.2%14/1546/46

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

Downshift196 · kept
rtk178 · lost
tokf186 · lost
Headroom1,205

eslint . (failing)

9,494 B raw · 1 error line

Downshift604 · kept
lean-ctx289 · lost
sqz132 · lost
Headroom1,430

curl big.log (3 MB)

3,024,071 B raw · 1 error line

Downshift397 · kept
context-mode564 · lost
sqz570,270
rtk3 MB

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

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).

Raw numbers (JSON) · Install Downshift