update
Mar 15, 2026Stay within your LLM's context window and gain deeper insights into your sessions with our new hook-level compression and usage analytics.
One of the biggest challenges in AI-driven development is managing the LLM's context window. Verbose tool outputs—like large git status reports, extensive file reads, or massive grep results—can quickly consume your context and lead to increased costs and slower responses. We’re excited to introduce Hook-Level Context Compression, a powerful new feature that automatically trims redundant information before it ever reaches your AI model.
The new compression engine is built directly into our Python hooks and is available for Claude Code, Gemini CLI, and Codex CLI. When you enable compression with the --compress flag, RCLM applies several smart strategies:
git status, pytest, and ls are transparently routed through our new reclaimllm-compress utility. This utility filters the output to preserve key information while stripping away the fluff, leading to an estimated 70-90% token savings on common commands.Previously, RCLM captured everything verbatim. While this was great for record-keeping, it meant the AI model was often processing hundreds of tokens of "noise" that didn't help with the task at hand. By building compression into the capture layer, we help you stay within context limits and significantly reduce your inference costs. We also wanted to give you better visibility into how you're using AI tools, which is why we've added new DB-backed analytics columns for every session.
Compression is a powerful tool, but it's important to understand its current behavior:
--compress flag during hook installation or in your config.git, test, and shell outputs use smart heuristics. While highly effective, they may occasionally miss edge cases as these tools update their output formats.We’re constantly refining our compression filters to cover more tools and scenarios. If you have a specific command that's eating up your context window, let us know and we'll look into adding a filter for it!