Changelog

Current version: v0.2.37

View all releases on GitHub
v0.2.37 latest

Features

  • generic fallback commands — tokf err, tokf test, tokf summary (#298)
  • tokf setup — interactive wizard for AI tool detection (#306)
  • add cargo/nextest filter (#305)
v0.2.36

Features

  • tokf discover — find missed token savings in AI sessions (#294)

Bug Fixes

  • default discover to showing only unfiltered commands (#297)
  • use pattern_matches_prefix for consistent filter matching (#295)
v0.2.35

Bug Fixes

  • support wildcards in any position in permission patterns (#291)
v0.2.34

Bug Fixes

  • respect Claude Code deny/ask permission rules on rewrite (#289)
v0.2.33

Features

  • add Gemini CLI, Cursor, Cline, Windsurf, Copilot, and Aider integrations (#286)
v0.2.32

Features

  • add description, truncate_lines_at, on_empty, and top-level tail (#278)
  • add RTK filter format compatibility (#281)
  • compression indicator, tokf raw alias, and TOKF.md context (#282)

Documentation

  • add description to all 48 built-in filters (#280)
v0.2.31

Features

  • add passthrough_args to skip filters on flag conflicts (#275)
v0.2.30

Features

  • version info in search, backfill fix, per-command deprecation (#272)

Bug Fixes

  • use unquoted args for rewrite matching in shell argv mode (#273)
v0.2.29

Features

  • migrate shims to use shell mode (#268)

Bug Fixes

  • isolate cli_cache tests to prevent shim races (#269)
  • gh pr checks false positive on failures (#266)
v0.2.28

Features

  • filter versioning & grouped catalog (#265)
  • PATH-based shim injection for sub-process filtering (#262)
v0.2.27

Bug Fixes

  • remove wildcard from gh view/checks patterns that consumed {args} (#260)
v0.2.26

Features

  • add `tokf telemetry status` subcommand (#87) (#254)
  • add reduction stats to tokf verify (#250)
  • condense cargo clippy error output with grouping (#256)
  • JSON extraction via JSONPath (RFC 9535) (#255)
  • OpenTelemetry OTLP metrics exporter (#85) (#134)
  • track raw_bytes, enhance gain display, fix passthrough filters (#257)
v0.2.25

Features

  • improve search ergonomics (#248)
v0.2.24

Features

  • add eslint, prettier, and ruff filters (#164)
  • add go/test filter (issue [#42](https://github.com/mpecan/tokf/issues/42)) (#246)
  • add playwright, vue-tsc, firebase deploy, and vite/build filters (#165)
v0.2.21

Features

  • add rich color for gain, with NO_COLOR support (#240)
  • add filter examples generation and safety checks (#241)

Bug Fixes

  • add explicit type annotation for stdlib-publish collect (#236)

Performance Improvements

  • optimize test execution and eliminate unsafe env var access (#195) (#237)
v0.2.20

Features

  • add `tokf completions` subcommand (#233)
  • add onboarding flow and usage stats opt-in (#235)
v0.2.19

Code Refactoring

  • consolidate publish and stdlib-publish paths (#231)
v0.2.18

Bug Fixes

  • use i64 for ToS version fields (CockroachDB INT8) (#229)
v0.2.16

Features

  • add `tokf history last` subcommand (#223)
  • add Terms of Service and account deletion (#224)
v0.2.15

Bug Fixes

  • normalize basename on both pattern and input words (#221)
v0.2.14

Bug Fixes

  • store savings_pct as 0-100, rename INSTALLS to RUNS (#217)
v0.2.13

Features

  • filter search, download, and install — tokf search/install (#118) (#183)
  • centralized HTTP client with retry and error classification (#200)
  • remote stats sync and gain display (#115) (#188)
  • shell-override wrappers for task runners (make, just) (#209)
  • sandbox CLI Lua execution and inline scripts on publish (#194)
  • chunk processing engine with tree-structured grouping (#203)
  • allow updating test suites for published filters (#119) (#192)
  • comprehensive API rate limiting (#196)
  • publish stdlib filters to registry (#204) (#205)
  • usage stats sync and aggregation endpoints (#114) (#186)

Bug Fixes

  • use test: prefix in multipart fields and add just recipes (#193)
  • use bare tokf in generated hook scripts (#208)

Code Refactoring

  • address Copilot review feedback (#201)
v0.2.12

Features

  • filter publishing — tokf publish <filter-name> (#117) (#181)
  • rewrite git/status and add cargo/fmt stdlib filters (#184)
v0.2.11

Features

  • sticky PR comment for filter verification + reject empty fixtures (#173)
  • machine UUID registration for remote sync (#113) (#179)
  • add tokf auth login/logout/status commands (#178)
  • add TOKF_HOME env var and improve permission diagnostics (#180)

Bug Fixes

  • stop running stdlib verify tests redundantly in cargo test (#175)
v0.2.10

Features

  • add --preserve-color flag for ANSI color passthrough (#162)

Code Refactoring

  • split oversized files, reduce duplication, add cargo-dupes CI (#161)
v0.2.9

Features

  • add --raw flag to history show (#155)
  • add tokf info command and tokf verify --scope (#158)
  • add OpenAI Codex CLI integration (#157)
v0.2.8

Features

  • pipe stripping control, --prefer-less mode, and override tracking (#154)
v0.2.7

Features

  • exit-code masking and improved push filter (#150)
  • add DB connection pooling, schema migrations, and health probes (#140)
v0.2.6

Features

  • strip leading env var prefix before command matching (#141)
v0.2.5

Features

  • add opencode plugin installer (#136)
  • bootstrap axum server with /health, config, and CI (#109) (#127)

Bug Fixes

  • move skill files into crate for cargo package compatibility (#137)
v0.2.4

Maintenance release.

v0.2.3

Features

  • canonical content hash for filter identity (#126)
  • show history hint for filtered output (#129)

Documentation

  • document history hint, pipe stripping, and add docs requirement (#130)

Code Refactoring

  • restructure repository as a Cargo workspace (#124)
v0.2.2

Features

  • support filter variants and delegation (#104)
  • fair accounting for stripped pipes (#105)

Documentation

  • comprehensive pre-release documentation update (#106)
  • document eject subcommand (#102)
v0.2.1

Features

  • add eject subcommand for filter customization (#100)
  • improve weak stdlib filters (#98)

Documentation

  • improve discoverability and add before/after examples (#96)
v0.2.0

⚠ BREAKING CHANGES

  • piped commands (e.g. `cargo test | grep FAILED`) are no longer rewritten by the hook or `tokf rewrite`. Previously they were wrapped with `tokf run`, causing downstream tools to receive filtered rather than raw output. The public `rewrite(command, verbose)` function signature now requires a `verbose: bool` argument.

Bug Fixes

  • skip auto-rewrite for piped commands (#93)
v0.1.8

Features

  • add tokf verify — declarative filter test suites (#57) (#61)
  • add --require-all flag to fail on uncovered filters (#77)

Bug Fixes

  • update rust crate toml to 0.9 (#64)
  • update rust crate toml to v1 (#68)

Code Refactoring

  • replace Rust filter tests with declarative verify suites (#69)
v0.1.7

Bug Fixes

  • add --version flag to tokf (#58)
v0.1.6

Features

  • basename matching + transparent global flag interception (#55)
  • add docker build and compose filters (#50)
  • add Gradle build/test/dependencies filters (#54)
  • output cleanup flags — strip_ansi, trim_lines, strip_empty_lines, collapse_empty_lines (#46) (#47)
  • store raw and filtered outputs for debugging (#52)
v0.1.5

Bug Fixes

  • explicitly add rustup target before cross-compiling x86_64-apple-darwin (#34)
v0.1.4

Bug Fixes

  • use macos-14 runner for x86_64-apple-darwin cross-compilation (#32)
v0.1.3

Features

  • Homebrew installation support (#30)
v0.1.2

Bug Fixes

  • shell-quote hook script path in settings.json (#29)

Documentation

  • credit rtk as inspiration in README (#24)
v0.1.1

Features

  • add tokf skill install subcommand, closes [#19](https://github.com/mpecan/tokf/issues/19)

Documentation

  • add Claude Code skill for filter authoring, closes [#19](https://github.com/mpecan/tokf/issues/19)