一键导入
tokf-run
// Compress verbose CLI output with tokf before returning results. Activates for git, cargo, npm, docker, go, gradle, kubectl, and other supported commands.
// Compress verbose CLI output with tokf before returning results. Activates for git, cargo, npm, docker, go, gradle, kubectl, and other supported commands.
This skill should be used when the user asks to "create a filter", "write a tokf filter", "add a filter for <tool>", "how do I filter output", or needs guidance on tokf filter step types, templates, pipes, or placement conventions.
Find missed token savings by scanning AI coding session files for commands that ran without tokf filtering.
Find missed token savings in Claude Code sessions and create filters for unfiltered commands
| name | tokf-run |
| description | Compress verbose CLI output with tokf before returning results. Activates for git, cargo, npm, docker, go, gradle, kubectl, and other supported commands. |
tokf compresses verbose command output so you receive concise, structured results instead of raw terminal dumps. It saves context tokens and makes output easier to reason about.
When running a supported command, prefix it with tokf run:
tokf run <command>
Examples:
tokf run git status
tokf run cargo test
tokf run npm test
tokf run docker ps
The following commands have built-in filters. Prefix these with tokf run:
git status, git diff, git log, git push, git add, git commit, git showcargo build, cargo test, cargo check, cargo clippy, cargo installnpm test, npm run, yarn test, pnpm testdocker build, docker compose, docker ps, docker imagesgo build, go vetgradle build, gradle test, gradle dependenciesgh pr view, gh pr list, gh pr checks, gh issue view, gh issue listkubectl get podsnext buildpnpm add, pnpm installprisma generatepytesttsclsCommands not in this list pass through unchanged when prefixed with tokf run.
tokf run, do not add it again.tokf run cargo test --release -- my_test.tokf is not installed or not on PATH, run the command without the prefix.tokf run: RUST_LOG=debug tokf run cargo test.| grep, | tail, | head) after tokf run commands — tokf already compresses the output. Piping tokf's output for other purposes (e.g. tokf run cargo test | wc -l) is fine.