← Reddit

RDXmin - a skill which saves more tokens than caveman and ponytail combined

Reddit · Special_Lie3814 · July 11, 2026
RDXmin is a token-saving skill that extends caveman and ponytail by combining terse output formatting with a tool-output compressor that reduces context size and a context diet approach for selective file reading. The tool includes a live token savings counter, rule generation for multiple code editors, and npm installation, with benchmarks showing lower billing and fewer failures than its predecessors.

Detailed Analysis

RDXmin represents an incremental but notable evolution in the growing ecosystem of community-built optimization tools for Claude Code, positioning itself as a synthesis of two earlier community projects—"caveman" and "ponytail"—while extending their approach along additional dimensions. Both predecessor tools focused on a single lever: instructing Claude to adopt a terser writing style to reduce token consumption. RDXmin retains that persona-based compression (offering three intensity levels via /rdx lite|full|ultra commands, with exceptions carved out for commit messages and security warnings where verbosity remains valuable) but adds two further mechanisms that address different parts of the token economy: a tool-output compressor and a "Context Diet" file-reading strategy.

The tool-output compressor is arguably the most technically significant addition. It operates as a hook that intercepts and shrinks tool results before they enter the model's context window—stripping ANSI codes, retaining head/tail content plus error lines, and deduplicating repeated output. This matters because tool output (command results, file listings, logs, etc.) typically constitutes the bulk of a coding session's token usage, and critically, that output gets re-transmitted and re-billed on every subsequent turn of a conversation as context accumulates. By compressing this at the source, RDXmin targets a compounding cost rather than a one-time expense. Notably, the tool operates behind a safety allowlist that explicitly excludes Read, Edit, and Write operations, reflecting an awareness that aggressive compression applied indiscriminately could corrupt or truncate content the model needs to reason about accurately—a real risk in prior "minification" tools.

The "Context Diet" component addresses a different failure mode: unnecessary whole-file reads when a targeted grep-and-slice approach would suffice, plus avoidance of redundant re-reads of files already loaded into context. This is a prevention-oriented strategy rather than a cleanup strategy, aiming to stop token bloat before it accumulates rather than compressing it after the fact. Combined with the live token-savings counter (a UX feature that makes the tool's value visible in real time) and rule-generation support for other AI coding assistants like Cursor, Windsurf, Cline, Kiro, and Copilot, RDXmin positions itself as a cross-tool utility rather than a Claude-specific hack, broadening its potential user base beyond the Anthropic ecosystem.

This development fits into a broader trend of third-party tooling emerging around agentic coding assistants to manage the economics of long-running, tool-heavy sessions. As models like Claude are increasingly used for extended autonomous coding tasks—involving many rounds of file reads, command executions, and tool calls—the cost of context accumulation becomes a first-order concern for developers, not just a theoretical inefficiency. Community projects like caveman, ponytail, and now RDXmin reflect a grassroots response to this problem, often moving faster than official tooling to address practical pain points around API billing and context-window limits. The existence of a "descendant" tool that explicitly benchmarks itself against and credits its predecessors also suggests a maturing, iterative culture around Claude Code extensions, where open-source contributors build on each other's work much like traditional software libraries evolve—an encouraging sign for the long-term health of the ecosystem surrounding Anthropic's developer tools, even though these remain unofficial, community-maintained solutions rather than features built directly into Claude itself.

Article image Read original article →