RDXmin: Saving Tokens for Coding Agents
Special_Lie3814 · reddit · 2026-07-11
RDXmin is a token-saving skill set for coding tools like Claude/Cursor/Windsurf/Cline/Kiro/Copilot.
Beyond the traditional approach of "making the model write shorter," it adds two layers of optimization:
- Restrained Persona: Requires the model to output in a shorter, more direct way while retaining key elements like commit messages and safety warnings.
- Tool Output Compression: Trims tool results before they enter the context by removing ANSI codes, keeping the head/tail and error lines, and deduplicating. This only activates within a safe whitelist and doesn't touch Read/Edit/Write.
- Context Diet: Uses grep before reading local slices to avoid repeatedly stuffing the entire file into the context.
The project also provides:
- A real-time token saving counter
- Rule generation for multiple IDEs/agents
- An npm installer that automatically hooks into these tools
- A test suite
The author positions it as the successor to caveman and ponytail, claiming that in the README's benchmarks, it saves more tokens and has fewer runaway behaviors than the former.
More from coding & agent
- A roundup of AI agents and MCP resources, including how to evaluate agents — _jaydeepkarale · 2026-07-21
- Anthropic shares a masterclass on how it builds AI agents — _jaydeepkarale · 2026-07-21
- Anthropic masterclass spotlights how to build and observe AI agents — _jaydeepkarale · 2026-07-21
- A beginner guide to AI agents points readers to a Stanford webinar — _jaydeepkarale · 2026-07-21
- A full course shows how to build and deploy an AI agent with OpenAI and LangChain — _jaydeepkarale · 2026-07-21
- A practical guide on how to evaluate AI agents — _jaydeepkarale · 2026-07-21