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 install pushes anonymous compression counters to api.tok0.dev. The four tiles below read straight from that database and refresh on every page load.
Six rules. Each one enforced by cargo clippy -D warnings
and snapshot tests on every PR.
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, snapshot-tested with a CI floor on min_savings_pct.
100+ built-in TOML compression rules across git, cargo, npm, docker, kubectl, terraform, pytest, and more. Every rule ships with a CI-asserted savings floor; PRs that drop below it fail to merge.
Filter errors fall back to raw output. Exit codes propagate unchanged. Local SQLite meter — no account, no upload by default.
Project rules and git-installed extensions are trust-prompted before they load. Bridge hooks are SHA-256 verified on every run against an embedded manifest; tok0 verify catches drift, manual edits, or tampering.
cargo fmt + cargo clippy --all-targets -- -D warnings + cargo test on every PR. The matrix runs default and --features cloud; both have to pass before merge.
One tok0 init auto-detects every supported AI tool on your machine and installs the right hook, rule file, or AGENTS.md entry. GUI-only tools (Cursor, Kimi Code) print a paste-in step instead.
~/.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