PROJECT · TOK0 / FIELD COMPRESSION UNIT
SERIAL NO. 0.1.1 · BUILT IN RUST · MIT
OPEN SOURCE — SHELL OUTPUT COMPRESSION PROXY TOK0 · DOCS >>> REFERENCE

Compressors

The full inventory of commands tok0 knows how to compress. ~250 commands across 30 ecosystems, each with a CI-asserted minimum savings floor.

This is the complete list of commands tok0 ships with built-in compression. Each row’s “floor” is the minimum savings the rule must achieve in CI on its captured fixture — actual savings on real-world output are usually higher.

Commands not on this list still work — they pass through tok0’s generic ANSI-strip + hard-cap path, which typically saves 20–40% on any verbose tool.

Version control

CommandFloorType
git diff83%native
git log78%native
git status70%TOML
gh pr list68%native
gh pr view72%native
gh issue list65%TOML
gt log70%TOML
jj log70%TOML

Build & package — JavaScript / TypeScript

CommandFloorType
npm install80%native
pnpm install81%native
bun install79%native
yarn install78%TOML
tsc66%native
vitest71%native
jest70%native
next build70%native
eslint64%TOML
prettier60%TOML
playwright test68%native
prisma migrate70%TOML
turbo run70%TOML
nx run70%TOML
esbuild65%TOML

Build & package — Rust

CommandFloorType
cargo build72%native
cargo test68%native
cargo clippy74%native
cargo bench70%TOML
cargo fmt80%TOML

Build & package — Python

CommandFloorType
pytest73%native
ruff check65%native
mypy68%native
pip install72%TOML
uv sync70%TOML
poetry install70%TOML
black80%TOML
flake865%TOML

Build & package — Go / Java / .NET / Ruby

CommandFloorType
go build67%native
golangci-lint65%native
gradle build76%native
mvn install72%native
dotnet build72%TOML
dotnet test68%native
rake65%native
rspec70%native
rubocop65%native

Build systems

make, cmake, bazel, ninja, meson, scons, pants, buck2 — all rule-driven, floors 65–75%.

Containers & cloud

CommandFloorType
docker build84%native
docker compose up75%TOML
kubectl get69%native
kubectl describe70%TOML
helm install70%TOML
terraform plan77%native
terraform apply75%native
pulumi up70%TOML
aws s3 ls72%native
gcloud …70%TOML
az …70%TOML
ansible-playbook75%TOML
argocd …70%TOML
flux …70%TOML

Package managers

brew, apt, dnf, pacman, snap, flatpak, nix, winget, scoop, choco, gem, nuget, vcpkg, conan — floors 70–85%, mostly via TOML rules.

Linters & formatters

shellcheck, hadolint, stylelint, yamllint, markdownlint, clang-format, shfmt, gofmt, swiftformat, ktlint, scalafmt, nixfmt — floors 60–75%.

Security & supply chain

semgrep, trivy, bandit, snyk, grype, sonar — floors 65–75%.

Other ecosystems

Languages: Elixir (mix, dialyzer), Haskell (cabal, stack), PHP (composer, artisan, phpunit, phpstan), Scala (sbt, mill), Swift (xcodebuild, swiftc), Dart (flutter, dart), mobile (expo, react-native), Perl (prove, cpanm), exotic (zig, nim, crystal, d).

System: ls, grep, find, diff, wc, env, ssh, rsync, tar, unzip, network tools, process tools, service managers.

Databases: mysql, psql, redis-cli, mongo, sqlite3.

API tools: httpie, grpcurl, newman, load testers.

Version managers: nvm, fnm, pyenv, rbenv, rustup, asdf, mise, volta.

When a command isn’t on the list

Three options, in order of effort:

  1. Run it through tok0 anyway. The generic path strips ANSI and applies a hard cap, saving 20–40% on most verbose tools.
  2. Write a TOML rule. ~10 lines for a typical case. See Writing TOML rules.
  3. Ship it as a built-in. PR a src/rules/<cmd>.toml into the repo with an assertion. CI gates the floor.
Tip

The fastest way to see if a command is worth adding is tok0 scan — it surfaces commands you’ve already run that would benefit from a compressor.

BUILT IN RUST · SINGLE STATIC BINARY · 8 MB v0.1.1 / MIT GITHUB.COM/PRXM-LABS/TOK0