Caveman Token Compressor
Compresses documentation and memory files into concise natural language to slash LLM token usage while preserving code and structure.
Caveman Token Compressor optimizes context windows by stripping conversational filler, articles, and redundant syntax from markdown and agent memory files like CLAUDE.md. By converting verbose instructions into concise caveman-style prose while strictly preserving technical terms, fenced code blocks, URLs, and markdown hierarchies, it significantly reduces input token consumption without sacrificing operational accuracy. The skill includes built-in output validation and creates automatic backups to ensure your original human-readable documentation remains safe.
Key Features
01Strips conversational filler, articles, and redundant phrasing to minimize context token usage
02Validates compression output with targeted retry logic to ensure document integrity
03Preserves code blocks, backtick snippets, URLs, file paths, and shell commands untouched
04Automatically saves original files as .original.md prior to compression
05Maintains markdown formatting including headings, list nesting, and table structures
061 GitHub stars
Use Cases
01Trimming developer notes, task lists, and preference files for agentic workflows
02Compressing CLAUDE.md instruction files to free up token budget in Claude Code sessions
03Optimizing technical documentation files before passing them into LLM prompt contexts