{"repo":"mpecan/tokf","free":true,"listed":false,"github":"https://github.com/mpecan/tokf","clone":"git clone https://github.com/mpecan/tokf.git","description":"Config-driven CLI tool that compresses command output before it reaches an LLM context","language":"Rust","stars":193,"topics":["ai-tools","claude-code","cli","command-line","context-window","developer-tools","homebrew","llm","rust","token-optimization"],"license":"MIT","category":"cli-tools","readme_excerpt":"tokf tokf.net — reduce LLM context consumption from CLI commands by 60–90%. Commands like git push , cargo test , and docker build produce verbose output packed with progress bars, compile noise, and boilerplate. tokf intercepts that output, applies a TOML filter, and emits only what matters — so your AI agent sees a clean signal instead of hundreds of wasted tokens. --- Before / After cargo test — 61 lines → 1 line: Without tokf With tokf git push — 8 lines → 1 line: Without tokf With tokf --- Quickstart That's it. Every command your AI agent runs is now automatically filtered. Run tokf gain to see how many tokens you've saved, or tokf setup --refresh to re-run detection. --- Installation Homebrew (macOS and Linux) cargo Build from source --- How it works tokf looks up a filter for git push , runs the command, and applies the filter. The filter logic lives in plain TOML files — no recompilation required. Anyone can author, share, or override a filter. --- Set up automatic filtering If you use an AI coding tool, install the hook so every command is filtered automatically — no tokf run prefix needed: Drop --global to install for the current project only. See Claude Code hook for details on each tool, the --path flag, and optional extras like the filter-authoring skill. --- Usage Run a command with filtering Apply a filter to a fixture Verify filter test suites Task runner filtering tokf automatically wraps make and just so that each recipe line is individually filtered: See Re","default_branch":null,"files":null,"tree":[],"storefront":"/r/mpecan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mpecan/tokf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}