What problem does it solve? Long tool outputs, search results, and JSON arrays can quickly exhaust an LLM's context window, forcing truncation or expensive token usage. This Skill compresses bloated context while preserving the most important items, and caches originals for on-demand retrieval. ## Core Features & Use Cases - SmartCrusher: Compresses JSON arrays using five-dimensional scoring that keeps first/last items, error entries, statistical outliers, query-relevant items via BM25, and change points. - CCR Store: A Compress-Cache-Retrieve LRU cache with TTL that stores original text during compression so the full content can be retrieved later by hash key. - ContentRouter & Token Estimation: Automatically classifies content (JSON, logs, diffs, code) and estimates token counts with CJK-aware counting. - Use Case: A grep returns 200 matching lines as a JSON array. Crush it with a query string to keep only the 15 most relevant items, cutting token usage by 70-90%, and retrieve the original later if the model needs more detail. ## Quick Start Import SmartCrusher from the headroom module and call crush on your large JSON data with a query string to get a compressed version with a retrieval hash.