tokenade
GitHubenfr
Install
Tokenadevslean-ctx

Best alternative to lean-ctx

Tokenade is the best alternative to lean-ctx — Universal token-optimization engine for AI coding agents — native hooks for 18 agents combine output filtering, semantic code search, skeleton compression, sandboxed execution, MCP proxying and a live savings dashboard in a single dependency-free binary.

Get Tokenade

Tokenade

Output Filtering

Format-aware compactors cover git, cargo, kubectl, terraform, docker and more — 60–99% reduction on the noisiest commands. Command rewriting further trims source-side before the shell even runs.

lean-ctx

Not available

Tokenade

Semantic Code Search

Finds the most relevant files for a task and sends only those to the model, instead of the whole repo. Runs fully on-device with no external vector database and no model downloads — fast even on large codebases.

lean-ctx

Not available

Tokenade

Skeleton Compression

Signatures-only view of source files, YAML, Markdown and Terraform — far smaller file reads while preserving every top-level declaration. Stacks on top of output filtering for maximum savings.

lean-ctx

Not available

Tokenade

Third-Party MCP Optimization

tokenade mcp-proxy wraps any third-party MCP server's launch command in the agent's MCP config, so every tool result (verbose JSON, logs, console output) is folded on the way back — set once, not per call. Image results pass through untouched.

lean-ctx

Not available

Tokenade

Mechanism Breadth

The only tool combining output filtering + semantic search + skeleton compression + sandbox execution + MCP proxying + secret redaction + content-addressed cache in a single binary. On the open THOL benchmark it is the only one of the twelve tools tested that measurably cuts costs: 39% cheaper on long sessions than running no tool at all.

lean-ctx

Not available

Tokenade

Setup & Installation

npm install -g @tokenade/cli then tokenade install — native hooks auto-detected for 18 agents (Claude Code, Cursor, Codex, Gemini CLI, Copilot, Windsurf and more). Free and open source, no account. Not yet on crates.io or Homebrew.

lean-ctx

Not available

Tokenade

Savings Dashboard

tokenade dashboard shows measured savings, per-command and per-project breakdown, and framework-detection status. Local logs rotate automatically with built-in secret redaction.

lean-ctx

Not available

Tokenade

Pricing

Free and open source (MIT OR Apache-2.0) for everyone, on as many machines as you like, with no account. The source is on GitHub (github.com/pi-infected/tokenade); contributions welcome.

lean-ctx

Not available

lean-ctx at a glance

lean-ctx starts at Free for local use, paid cloud options. The widest feature surface of the open-source context tools: a read cache that makes repeat reads near-free, several read modes giving map and signature-level compression, shell-output compression patterns, a ranked retrieval index, and an optional local proxy that also compresses conversation history.

Pros

  • Combines caching, compression, retrieval and a repository map in one open-source binary
  • The read cache makes repeated reads cost a fraction of a fresh read, which compounds over long sessions
  • Proxy mode reaches conversation history and the system prompt — a surface hook-only tools cannot touch
  • Local-first and model-agnostic, with portable context bundles that survive a provider change

Cons

  • No measurable saving on the open THOL benchmark — it measured more expensive than running no tool at all, though not significantly so
  • It exposes a very large set of MCP tools, so the tool definitions themselves carry a fixed per-session cost that has to be earned back
  • The project states the return is low on small repositories and light shell usage
  • Wide feature surface means real configuration burden compared with a drop-in compressor

Ready to cut costs with Tokenade?

Join the teams that already chose Tokenade over lean-ctx.

Get Tokenade

Other comparisons