What problem does it solve? Long natural language memory files like CLAUDE.md, todos, and preference notes consume large amounts of input tokens every time an AI agent loads them, inflating cost and context usage without adding information. ## Core Features & Use Cases - Token-Saving Compression: Rewrites prose into terse caveman-style fragments while preserving code blocks, inline code, URLs, file paths, headings, and YAML frontmatter exactly. - Validated In-Place Overwrite: Backs up the original to a platform-aware backup directory, overwrites the source file, then validates headings, code blocks, URLs, and inline code with up to two Claude-assisted fix retries. - Safety Guardrails: Detects and skips code/config files, refuses sensitive files (credentials, keys, .env, SSH paths), and restores the original if validation fails after retries. - Use Case: A developer with a 2,000-word CLAUDE.md runs the skill to shrink it to a fraction of its size, cutting token usage on every session while keeping all commands and links intact. ## Quick Start Ask the agent to compress your memory file by saying: compress my CLAUDE.md file with caveman-compress.