# Quickstart

> tokf - LLM Context Compressor

- Skill: `javimosch/quickstart-323` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/quickstart-323`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/quickstart-323/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/quickstart-323

---

# tokf - LLM Context Compressor

## Overview
tokf is a config-driven CLI tool that compresses command output before it reaches an LLM context. Reduces token usage for AI tools.

## Quick Start

### Run command with filtering
```bash
sc tokf run command <command>
```

### Passthrough to tokf CLI
```bash
sc tokf _ <tokf-args>
```

## Key Features

- **Context Compression**: Reduce LLM token usage
- **Config-Driven**: TOML configuration
- **Filter Library**: Built-in filter library
- **Task Runner Integration**: Works with make, just
- **Error Extraction**: Extract errors from output
- **Test Failure Extraction**: Extract test failures

## Installation

```bash
cargo install tokf
```

Also available via:
- Homebrew
- Build from source

## Usage Examples

### Run command with filtering
```bash
tokf make test
```

### Apply filter to fixture
```bash
tokf --filter error-filter fixture.txt
```

### Verify filter test suites
```bash
tokf test
```

### Explore available filters
```bash
tokf discover
```

## Notes

- Run `tokf --help` to see all available options

