Caveman Token Compressor

0•

Reduces token consumption by compressing natural language memory files into a concise caveman format while preserving technical data.

The Caveman Token Compressor is a specialized utility designed to maximize Claude's context window by optimizing project-specific memory files like CLAUDE.md, TODO lists, and preference documents. By stripping away articles, linguistic filler, and hedging while strictly preserving code blocks, URLs, and technical commands, this skill allows developers to maintain extensive project context without hitting token limits prematurely. It features a robust safety system that creates automatic backups, validates output through a multi-retry process, and treats technical syntax as read-only to ensure project integrity.

Key Features

01Automated .original.md backup creation for safe file modification
02Strict preservation of code blocks, URLs, file paths, and technical syntax
03Multi-step validation with targeted Claude-assisted error correction
04Aggressive token reduction via linguistic 'caveman' compression
050 GitHub stars
06Smart detection to skip source code and binary files automatically

Use Cases

01Optimizing large CLAUDE.md files to save space in the context window
02Compressing long-term project TODO lists and documentation without losing meaning
03Managing project preferences efficiently within token-constrained environments