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
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11
- RTK Terminal Compression Cuts Tokens but Leaves Your AI Coding Bill Unchanged — Bartaseth · 2026-09-11
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11