codex-discover
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
$ npx -y skills add mpecan/tokf --skill tokf-discover --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/tokf-discoverContext preview
The summary Claude sees to decide when to auto-load this skill.
Find missed token savings in Claude Code sessions and create filters for unfiltered commands
name: tokf-discover description: Find missed token savings in Claude Code sessions and create filters for unfiltered commands user_invocable: true
Use this skill to analyze Claude Code sessions and find commands that are running without tokf filtering, wasting tokens on verbose output.
Run `tokf discover` in the project directory to scan recent sessions:
tokf discover
The output shows:
1. Run `tokf discover` to identify top savings opportunities 2. For commands with existing filters: run `tokf hook install` to set up automatic filtering 3. For commands without filters: use `/tokf-filter` skill to create a custom filter 4. Re-run `tokf discover` after changes to verify improvement
If `tokf discover` shows commands with no matching filter, create one:
# See what a filter would look like tokf which "the-command --args" # Use the tokf-filter skill to create a proper filter # /tokf-filter
Use `--json` for integration with other tools:
tokf discover --json | jq '.results[] | select(.estimated_savings > 1000)'
The JSON schema includes:
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.
Repo: mpecan/tokf
Find missed token savings by scanning AI coding session files for commands that ran without tokf filtering.
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…