tokf discover — Find Missed Token Savings
Use this skill to analyze past sessions and find commands that are running without tokf filtering, wasting tokens on verbose output.
Quick Start
Run tokf discover in the project directory to scan recent sessions:
tokf discover
Options
--all— scan all projects, not just the current one--since 7d— only scan sessions from the last 7 days (also24h,30m)--limit 0— show all results (default: top 20)--json— output as JSON for programmatic use--session <path>— scan a specific session file--project <path>— scan sessions for a specific project path
Workflow
- Run
tokf discoverto identify top savings opportunities - For commands with existing filters: run
tokf hook install --tool codexto set up automatic filtering - For commands without filters: create a custom filter with
tokf eject - Re-run
tokf discoverafter changes to verify improvement
JSON Output
Use --json for integration with other tools:
tokf discover --json