PROJECT · TOK0 / FIELD COMPRESSION UNIT
SERIAL NO. 0.1.13 · BUILT IN RUST · MIT
OPEN SOURCE — SHELL OUTPUT COMPRESSION PROXY TOK0 · RUST CLI >>> PRE-MODEL TOKEN REDUCTION

Strip the noise
from every shell command
before it hits the model.

$ curl -fsSL https://tok0.dev/install.sh | sh
01 / 03 FIELD TELEMETRY

Live numbers
from the field.

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.

01 · Tokens compressed
11.20M
Cumulative · all tracked instances
02 · Avg. savings
69.3%
Across every wrapped command
03 · Active instances
31
Reporting in last 10 days
04 · Commands run · 30 d
6,883
16 day rolling window
Live · api.tok0.dev/statsGENERATED · 2026-05-08 18:53:36 UTC
[ 30-DAY SAVED TOKENS ] 16 POINTS · 11.20M TOTAL
2026-04-22 2026-05-08
Top commands · by tokens saved
  • git log 1,029 runs
    2.57M
  • git diff 696 runs
    1.27M
  • git status 1,901 runs
    1.12M
  • npm install 280 runs
    998.1K
  • cargo build 394 runs
    835.6K
  • cargo test 288 runs
    822.3K
SOURCE · D1 · command_stats /stats
[ FLEET BREAKDOWN ] 31 INSTANCES
By operating system
  • macOS 16 · 52%
  • Linux 13 · 42%
  • Windows 2 · 6%
By country
DE 8 US 7 FR 6 GR 5 IN 5
Estimated savings · input-token rates
$33.61 @ $3.00/M · Sonnet-tier
Range $11.20 – $168 · Haiku $1.00/M → Opus $15.00/M
SOURCE · D2 · instances LIVE
02 / 03 SYSTEM SPECIFICATION

Built like a piece
of infrastructure.

Six rules. Each one enforced by cargo clippy -D warnings and snapshot tests on every PR.

01 FEATURE

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.

02 FEATURE

Deterministic compression pipeline.

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.

03 FEATURE

Declarative rules, embedded at build.

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.

04 FEATURE

Safe by default.

Filter errors fall back to raw output. Exit codes propagate unchanged. Local SQLite meter — no account, no upload by default.

05 FEATURE

Trust-gated execution surface.

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.

06 FEATURE

CI-enforced quality bar.

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.

03 / 03 COMPATIBLE SYSTEMS

Drops into the
agent you already use.

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.

[ AI TOOLS ] 9 SUPPORTED · 7 AUTO-INSTALL
  • Claude Code Auto-install
    PreToolUse hook
    ~/.claude/settings.json
  • Cursor Paste-in
    rules file paste-in
    Settings → Rules
  • Gemini CLI Auto-install
    auto-loaded instructions
    ~/.gemini/GEMINI.md
  • Windsurf Auto-install
    global rules file
    ~/.codeium/windsurf/memories/…
  • Cline Auto-install
    Cline Rules toggle
    ~/Documents/Cline/Rules/tok0.md
  • Amp Auto-install
    AGENTS.md auto-load
    ~/.config/amp/AGENTS.md
  • OpenCode Auto-install
    AGENTS.md auto-load
    ~/.config/opencode/AGENTS.md
  • Codex Manual
    AGENTS.md (manual)
    ~/.codex/AGENTS.md
  • Kimi Code Paste-in
    manual paste-in
    ~/.kimi/tok0.md
SOURCE · /bridge/setup.rs tok0 init
BUILT IN RUST · SINGLE STATIC BINARY · 8 MB v0.1.13 / MIT GITHUB.COM/PRXM-LABS/TOK0