tokf-discover

Analyze command-line output to identify unfiltered commands and estimate token savings.

192|19|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/mpecan/tokf --skill tokf-discover
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tokf-discover
Source: https://github.com/mpecan/tokf/tree/main/crates/tokf-cli/skills/tokf-discover
Command: npx skills add https://github.com/mpecan/tokf --skill tokf-discover

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and reduce unnecessary token consumption in AI coding sessions by detecting commands that are not being filtered by tokf.

Core Features & Use Cases

  • Identify Unfiltered Commands: Scans project sessions to find shell commands producing verbose output that wastes tokens.
  • Estimate Token Savings: Calculates potential token savings by applying tokf filters to previously unfiltered commands.
  • Workflow Integration: Guides users to set up automatic filtering or create new filters for commands identified as wasteful.
  • Use Case: After a long coding session, run tokf discover to see which commands generated the most verbose output, then use the output to create a tokf filter for those commands, saving tokens in future sessions.

Quick Start

Run tokf discover in your project directory to scan recent sessions for token savings opportunities.

Frequently Asked Questions about tokf-discover

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify unfiltered commands wasting tokens in AI coding sessions?

You can identify unfiltered commands wasting tokens by running tokf discover to scan project sessions and detect shell commands producing verbose output. The tool calculates potential token savings by analyzing command-line output from previous AI coding sessions.

What is the best way to estimate token savings from command filtering?

The best way to estimate token savings is to analyze command-line output with tokf discover, which calculates potential reductions by simulating tokf filters on previously unfiltered commands. This quantifies exact token waste from verbose shell outputs.

How do I set up automatic command filtering to reduce token consumption?

To set up automatic command filtering, run tokf discover to identify wasteful commands, then follow its workflow integration guidance to create new tokf filters. This automatically filters verbose output in future AI coding sessions to reduce token consumption.

Does tokf discover require any specific dependencies or environments to scan sessions?

Tokf discover requires no external dependencies and operates directly within your project directory. It integrates with the tokf CLI to analyze recent command-line sessions and manage filters without needing additional environment setup.

Why are verbose shell commands a problem for token optimization in LLM assistants?

Verbose shell commands are a problem for token optimization because unfiltered command-line output consumes unnecessary context window space in LLM AI assistants. Tokf discover detects this token waste and suggests creating filters to prevent it.

When should I run session analysis to find token savings opportunities?

You should run session analysis after a long AI coding session to find token savings opportunities. Executing tokf discover in your project directory scans recent sessions to identify which specific shell commands generated the most verbose output.