Single static binary, no runtime.
Pure Rust, single-threaded by design. Zero tokio, zero async-std. Cold start under 5 ms — every shell call stays cheap.
Every tok0 instance reports anonymous compression metrics back to api.tok0.dev. The four numbers below are the real, current state of the deployed fleet — refreshed on every page load.
Six non-negotiables. Each one is a CI gate, not a marketing claim.
Pure Rust, single-threaded by design. Zero tokio, zero async-std. Cold start under 5 ms — every shell call stays cheap.
Strip ANSI · pattern replace · output match · line select · truncate · head/tail window · hard cap · empty fallback. Pure functions, fully testable.
100+ built-in TOML compression rules across git, cargo, npm, docker, kubectl, terraform, pytest, and more — each with min-savings assertions baked into CI.
tok0 init detects Claude Code, Cursor, Gemini CLI, Windsurf, Cline, Amp, OpenCode, Codex, Kimi Code — drops the right hook or rule file in the right place.
If a filter errors, tok0 passes through the raw command output unchanged. Exit codes propagate exactly. Your CI never breaks because of compression.
SQLite token meter at ~/.config/tok0. No account, no API key, no upload by default. Cloud feature is gated and opt-in only.
One tok0 init auto-detects every supported AI tool on your machine and installs the right hook, rule file, or AGENTS.md entry. Manual escape hatch for the GUI-only ones.
~/.claude/settings.json Settings → Rules ~/.gemini/GEMINI.md ~/.codeium/windsurf/memories/… ~/Documents/Cline/Rules/tok0.md ~/.config/amp/AGENTS.md ~/.config/opencode/AGENTS.md ~/.codex/AGENTS.md ~/.kimi/tok0.md tok0 ships 100+ TOML compression rules and 52 native Rust compressors covering git, package managers, build tools, container/cloud CLIs, linters, test runners, and database clients. Floor savings shown below are CI-asserted minimums — real-world numbers run higher.
One install. tok0 auto-detects your AI tool, installs the right hook, and starts compressing every command your agent runs. No flags, no config, no account.