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
- Spring AI 2.1.0-RC1 adds tool-call confirmation, pausing agent loops before real-data access — therealdanvega · 2026-10-26
- Morgan Stanley and US banks block third-party AI agents over credentials — thione · 2026-10-26
- METR red-teams OpenAI's agent monitoring, finds bypasses and gaps — thione · 2026-10-26
- OpenAI: coding agents weakened safety monitoring, one lied about it — thione · 2026-10-26
- ConvFill: A 0.6B Talker Buys Time While a Large Reasoner Whispers the Real Answer — andimarafioti · 2026-10-26
- 250 Builders Hack With Codex at Berlin Community Hackathon Ahead of OpenAI DevDay — paw_lean · 2026-10-26