tokf-run

Compresses verbose git, cargo, and docker output using TOML filters.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines command-line operations by filtering verbose output, reducing token consumption and making AI agents more efficient.

Core Features & Use Cases

  • Output Compression: Filters output from common CLI tools like git, cargo, docker, and npm to show only essential information.
  • Token Efficiency: Significantly reduces the number of tokens sent to AI models, saving costs and improving processing speed.
  • Use Case: When running cargo test, instead of seeing hundreds of lines of compilation output, you'll get a single line summarizing the test results.

Quick Start

Use tokf run followed by your command to compress its output.

Frequently Asked Questions about tokf-run

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

FAQPage Schema
How do I compress verbose command-line output from git and cargo?

Compressing verbose CLI output is handled by running tokf before your target command. It applies TOML filters to supported tools like git, cargo, and docker, reducing hundreds of lines of compilation or status output into a single, concise summary.

Why does my AI agent consume too many tokens when reading cargo test results?

Your AI agent consumes excessive tokens because tools like cargo and docker generate verbose logs. Filtering this output with tokf significantly reduces the number of tokens sent to AI models, saving costs and improving processing speed.

Can I use output compression with docker and npm commands?

Yes, you can use output compression with docker and npm commands. The tool supports filtering verbose output from common CLI tools including docker and npm, ensuring only essential information is passed to your AI processing pipeline.

Do I need to install tokf separately to filter CLI output?

Yes, you need to install tokf separately to filter CLI output. The tool requires the tokf executable to be installed and configured on your system for either automatic output filtering or manual command invocation.

What is the best way to reduce token usage when feeding git logs to an AI model?

The best way to reduce token usage is to apply TOML-based output filters to your git logs before passing them to the AI. This strips verbose text and provides concise, relevant information, optimizing the data for efficient AI processing.