Automatic git hooks
Install once, forget forever. tokf sets up git hooks so every commit, push, and pull runs through your filters automatically — no manual wrapping.
tokf intercepts command output, runs it through a TOML filter, and hands your LLM only what matters. What goes in noisy comes out tight.
Git hooks, make targets, CI commands — tokf intercepts output at the source so your LLM only sees what matters.
Install once, forget forever. tokf sets up git hooks so every commit, push, and pull runs through your filters automatically — no manual wrapping.
tokf transparently wraps make, just, and mise targets. Your task files stay clean while every target's output is filtered before it reaches the model.
Plain TOML tells tokf what to keep, skip, or replace. Drop a file in `.tokf/filters/` and it activates instantly — version-controlled and reviewable.
Use `tokf skill install` to let AI agents (Claude Code) author and install filters for you. Includes a `PreToolUse` hook for real-time filtering.
Need conditional logic TOML can't express? Embed sandboxed Luau scripts for numeric math, multi-line lookahead, and complex branching.
Ships with filters for git, cargo, docker, npm, pnpm, go, GitHub CLI, kubectl, Next.js, TypeScript, pytest, and more — ready out of the box.
tokf runs entirely on your machine. Nothing leaves. No telemetry, no phone-home, no account required.
tokf auth logintokf auth logout61 command patterns ship with tokf. Override any of them locally, or add your own in plain TOML.
cargo/* cargo build cargo check cargo clippy cargo fmt cargo install * cargo nextest cargo test docker/* docker build docker buildx build docker compose docker images docker ps docker-compose eslint/* eslint firebase/* firebase deploy npx firebase deploy * ls npx playwright test npx vue-tsc playwright test pytest tsc vue-tsc git/* git add git commit git diff git log git push git show git status gh/* gh issue list gh issue view * gh pr checks * gh pr list gh pr view * go/* go build go test go vet gradle/* ./gradlew build ./gradlew dependencies ./gradlew test gradle build gradle dependencies gradle test kubectl/* kubectl get po kubectl get pod kubectl get pods next/* next build npm/* jest npm run * npm test pnpm test vitest yarn test pnpm/* pnpm add * pnpm install prettier/* prettier --check prisma/* prisma generate ruff/* ruff check ruff format vite/* vite build Need a filter that doesn't exist yet?
Three steps. Every time. Like a zip file for terminal noise.
Prefix any command with tokf run. tokf spawns the process, captures stdout and stderr.
tokf run cargo test tokf looks up a TOML filter for cargo test from your local, user, or built-in library. First match wins.
tokf which "cargo test"
→ built-in: cargo/test.toml The filter pipeline runs: skip/keep, replace, dedup, on_success/on_failure. Only the signal reaches your model.
tests 12 passed, 0 failed One command. Instant results. Your LLM context will thank you.