AI Coding Agents
Tokenade Review: A Young Token Compressor With a Self-Run Leaderboard Claim
Tokenade is a single Rust binary that compresses your coding agent’s command output, file re-reads, MCP payloads and web fetches before they reach the model, with hash-based recovery for archived folds. It claims the top spot on THOL, a benchmark the project itself publishes, at 39% cheaper long sessions; there is no independent verification yet, and the project is barely six weeks old.
Tokenade is a single Rust binary that sits between your coding agent (Claude Code, Codex, Cursor, Copilot CLI, OpenCode and others) and the model. It folds 2,000-line build logs, whole files when one function was needed, verbose MCP payloads and repeat reads before they are billed, and provides hash references to recover archived folds. The project advertises itself as number one on THOL, the Token-Harness Optimizer Leaderboard, with 39% cheaper long sessions. Two cautions frame everything below: THOL is published on tokenade.net, so the headline number is a vendor claim, and as of November 30, 2026 the repository is about six weeks old with 61 stars and 9 forks.
At a glance
| Question | Answer |
|---|---|
| What is it? | A Rust binary that folds bulky tool output, file reads, and other agent payloads. |
| What cost does it target? | Input from large results and repeated reads. |
| Where does it act? | Through hooks, plugins, a local proxy, or rules and MCP wrapping, depending on the client. |
| How do you try it? | Install the @tokenade/cli npm package and run its installer for your agent. |
| Can you recover originals? | The CLI can expand an archived fold using its hash reference. |
| What license is stated? | Dual MIT and Apache-2.0. |
| What is its maturity signal? | 61 stars and zero open issues as of November 30, 2026. |
| When is it a good fit? | A hook-capable client where several kinds of bulky payloads need to stay recoverable. |
What it is and which cost layer it targets
Tokenade targets the runtime cost layers rather than structural waste: what your agent pulls into context each turn. The README lists the coverage:
- Command output: test runs, builds, logs, git, kubectl, docker and package managers folded to the decisive lines.
- File reads: repeated content returns a short reference, or a diff when it changed.
- Code navigation:
map,query,skeleton,impactand a hybridsemanticsearch so the agent stops reading whole files to locate one symbol. - MCP payloads: third-party MCP servers get wrapped and their large results compacted in transit.
- Web:
tokenade webandtokenade searchreturn compact Markdown instead of raw HTML; on hook-capable agents the agent’s own fetch and search route through it, falling back to the native tool when the search engines cannot answer. - Documents and media:
tokenade readconverts PDF, Office, EPUB, audio, video and images to text, using a localwhisperorwhisper-clifor transcription andtesseractfor OCR when installed. - Context and output style: prompt-cache-aware compaction of stale context and a lean-output style note.
- Secret redaction: credentials are scrubbed from what Tokenade logs, caches and folds.
The README says tokenade expand-ref recovers archived folds by hash. Check that recovery works for the agent and payload types you plan to use.
How it works
tokenade install detects the agents on your machine and wires each through the strongest channel it supports. The README splits the integrations into four tiers:
- Hooks: Claude Code (CLI and the Claude Desktop Code tab), Codex CLI, Copilot CLI, Cursor, Qwen Code, Droid, Antigravity CLI, T3 Code through Claude Code’s hooks, and Grok, which gets hooks plus the local LLM proxy because its hooks cannot rewrite output.
- Plugin or extension: OpenCode, Kilo Code, Cline, Hermes, OpenClaw and Pi.
- Local LLM proxy: Aider and the Codex app, plus Codex CLI until its hooks are approved.
- Rules file and MCP wrapping only: Devin Desktop (formerly Windsurf), Copilot in VS Code, and Claude Desktop’s Chat.
Hook and plugin agents get nearly every feature; the rules-only tier gets a subset. The per-agent feature matrix lives on the project’s docs site. The interception model is the same family as lean-ctx and the hook-based tools in proxy vs hook vs MCP token optimization: content is rewritten before it enters context, and the original is archived for on-demand expansion.
Install and first run
npm install -g @tokenade/cli
tokenade install # detects your coding agents and wires Tokenade in
tokenade healthcheck # optional: verify the wiring
Node 18 or later is required. The per-platform binary ships as an optional npm package; if that is skipped, a postinstall step downloads the archive from GitHub Releases and verifies it against an Ed25519-signed manifest’s SHA-256. Building from source needs a stable Rust toolchain plus a C/C++ compiler:
git clone https://github.com/pi-infected/tokenade
cd tokenade
cargo install --locked --path crates/tokenade-cli # or use a script below
tokenade install
Removal is tokenade uninstall, which the README says removes everything it added; tokenade install --only <agent> scopes an install to one agent. Everyday use after wiring is automatic, with a CLI for manual jobs:
tokenade wrap 'cargo test' # run a noisy command, get the compacted output
tokenade read report.pdf # a document or media file as text
tokenade map # codebase structure
tokenade semantic "where is auth" # search by meaning
tokenade expand-ref <hash> # get folded bytes back
tokenade dashboard # what you saved: graphical local report
tokenade gain # same totals, in the terminal
Network access and updates
The savings ledger and dashboard stay local. Per the README, the only network calls are web fetches and searches you or your agent request, a one-time embedding-model download for semantic search (Hugging Face, with a signed GitHub Release fallback; TOKENADE_MODEL_DIR points at a pre-seeded cache for offline machines), and a daily auto-update check that reads the signed manifest.json of the latest release and installs only binaries whose signature and SHA-256 verify. TOKENADE_NO_AUTO_UPDATE=1 or tokenade upgrade --off disables auto-update; TOKENADE_NO_WEBSEARCH=1 and TOKENADE_NO_WEBFETCH=1 keep your agent’s native web tools.
One history note worth knowing: the 1.x line had licence, quota and usage-report files plus tokenade login, activate and report commands. Version 2.0 deletes the leftover 1.x licence and quota files on first run and drops those commands entirely, so the current product is account-free.
What it saves: the claim and the evidence gap
Tokenade publishes THOL and reports that long sessions cost 39% less. The captured README links the methodology and gives no independent replication. Closed issue #11 asks to add Cigar to a future THOL batch.
The independent tokbench study tested lean-ctx, RTK, and Headroom in a pilot with N=1 per arm, then ran a small replication matrix. Neither tested Tokenade. Test the integration tier you actually use, since its supported hooks and fallbacks determine which tool output the agent sees. Include a tool call the integration handles directly and one that uses a native fallback. Record what reached the model in each case and check whether the agent had to ask for context again.
What the GitHub issues show
Zero issues were open as of November 30, 2026, and the closed list is short, but its shape is informative: these are early-project bugs, several of them in the “silently changed user data” category rather than crashes.
- Issue #7: the scaffold deleted user sections titled
## Commands(and three other generic headings) from project CLAUDE.md and AGENTS.md files. - Issue #8: the Claude Code hookwrap-pretool rewrite blocked all git in worktree-isolated subagents.
- Issue #6: read dedup’s staged “unchanged” note was never delivered, so a repeat Read was silently cut to 20 lines.
- Issue #12:
compact_transcriptdropped lines a session appended while the transcript was rewritten via temp plus rename. - Issue #10:
statusline --wrap-b64dropped wrapped output when the command had a quoted Windows path. - Issue #1: the installed bridge failed to load on opencode 2 because a default export needed a specific shape.
The snapshot lists all six reports as closed. Verify reads, transcript retention, and worktree behavior in the current build, and check which configuration files the installer changes. For a repeat read, compare the returned slice with the file on disk and try resolving the hash when the response includes one. For transcript retention, confirm that a later turn can see a detail you introduced earlier in that session. On a scratch worktree, run the same Git operation before and after setup and check that the hook respects the worktree boundary.
A cost example (estimate)
Assume 25 million fresh input tokens per month at the committed Sonnet rate of $2 per million. If measured fresh input fell by 39%, the estimated monthly input saving would be 25 × $2 × 0.39 = $19.50. THOL reports session cost, which can include more than fresh input. See the AI provider pricing index for current rates.
Who should use it, who should skip it
Try it if you:
- Want one binary covering multiple payload types (shell, reads, MCP, web, documents) and like the hash-recoverable fold design
- Run a hook-capable agent (Claude Code, Codex CLI, Cursor, Copilot CLI), where the deepest feature set applies
- Are comfortable being an early adopter: six-week-old codebase, fast release cadence (2.0.6 through 2.0.13 in November alone), dual MIT/Apache-2.0 license
Skip it if you:
- Need independently verified savings; none exists yet
- Cannot tolerate a tool that writes into CLAUDE.md/AGENTS.md, rewires transcripts or intercepts git without a careful trial first
- Are on a rules-file-only client (Devin Desktop, VS Code Copilot, Claude Desktop Chat), where the feature set is thinnest
How to trial it safely
- Read the closed issues above first; the failure modes they describe (scaffolded docs, blocked git, silently cut reads) tell you exactly what to check on day one.
- Install with
tokenade install --only <agent>on a scratch repo, runtokenade healthcheck, and diff any changes it made to your config and rules files. - Work a normal week, then compare provider-billed input tokens against a pre-install baseline of similar work. Do not rely on
tokenade gainas the sole meter; vendor meters and provider bills have disagreed in this category before. - Spot-check a few folds with
tokenade expand-ref <hash>to confirm the archived bytes are intact. tokenade uninstallif it does not clear your bar.
The full A/B method is in how to measure coding agent token savings.
Alternatives and next reads
- lean-ctx context gateway review: a tool with a similar hook and proxy design.
- token-optimizer-mcp review: another hooks-plus-proxy-plus-MCP tool that publishes a head-to-head against Tokenade’s rules text.
- tokbench benchmark post: the independent pilot (N=1 per arm) and the follow-up replication matrix.
- How to calculate LLM API cost: turn whatever delta you measure into dollars.
Sources
- pi-infected/tokenade repository (GitHub, accessed 2026-11-30)
- Tokenade issue #7: scaffold deletes user sections from CLAUDE.md/AGENTS.md (GitHub, accessed 2026-11-30)
- Tokenade issue #8: hookwrap blocks git in worktree subagents (GitHub, accessed 2026-11-30)
- Tokenade issue #12: compact_transcript drops appended lines (GitHub, accessed 2026-11-30)
- tokbench: independent eval of token-saving middleware (GitHub, accessed 2026-11-30)
How this note was produced
Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.
Tokenade Review: A Young Token Compressor With a Self-Run Leaderboard Claim. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/tokenade-review/