tokf
Compress verbose command output to save context tokens
All Skills in This Repository (3)
Pure Emerald Level Indicatorstokf-discover
Analyze command-line output to identify unfiltered commands and estimate token savings.
tokf-filter
Create TOML filter files for the tokf CLI tool.
tokf-run
Compresses verbose git, cargo, and docker output using TOML filters.
Frequently Asked Questions
FAQPage SchemaHow to install tokf?▼
Run `npx skills add mpecan/tokf --all -g -y` in your terminal to install all skills in this suite globally.
How does tokf reduce token usage?▼
It intercepts verbose command output, applies a TOML filter, and returns only the essential lines, cutting context consumption by 60 to 90 percent.
Which commands does tokf support?▼
Built-in filters cover git, cargo, npm, pnpm, yarn, docker, go, gradle, kubectl, gh, pytest, tsc, and more, and you can write custom TOML filters for anything else.
Does tokf work with Claude Code and Codex?▼
Yes. Run `tokf hook install --global` to automatically filter every command your coding assistant runs, with support for Claude Code, OpenCode, and Codex.
Can I create custom output filters without coding?▼
Yes. Filters are plain TOML files, and the included filter-authoring skill guides you through creating one for any command.
Related Repositories in Software Engineering
View All in Software Engineering→openclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core