4 Free GitHub Tools That Make AI Coding Cheaper
Ponytail, Caveman, RTK and Superpowers plug into Claude Code and Codex. Each one attacks a different kind of waste. Here is what they do, how to install them, and what the savings really are.
Video not loading? Watch the reel on Facebook.
An AI coding agent spends tokens in three places: what it reads (your files and terminal output), what it writes (code and explanations), and how many attempts it takes to get things right. These four free tools each go after one of those.
| Tool | What it cuts |
|---|---|
| Ponytail | Code the AI didn't need to write |
| RTK | Noisy terminal output the AI has to read |
| Caveman | Wordy replies and bloated memory files |
| Superpowers | Wasted attempts, through a disciplined workflow |
Install from the official repos only. All four are popular enough to have copies with the same name on GitHub. The links below go to the real ones.
1. Ponytail: write less code
Ponytail makes your agent think like "the laziest senior dev in the room": before writing code, it asks whether that code needs to exist at all, then writes the smallest thing that works. Less code means fewer tokens, lower cost and faster runs. It explicitly never cuts security, error handling, input validation or accessibility.
In Claude Code, type these as two separate messages:
/plugin marketplace add DietrichGebert/ponytail
/plugin install ponytail@ponytail
In Codex:
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytail
The real numbers: in the author's latest benchmark (39 tasks), Ponytail wrote 53% less code, cost 26% less and finished 41% faster. You may have seen "94% less code" in my reel: that was the best single task in an earlier benchmark, where the average was 54%. Still a big drop, just not on every task.
2. RTK: stop feeding the AI terminal noise
When your agent runs tests or git status, it reads every line of output, including hundreds of lines that don't matter. RTK (Rust Token Killer) sits between the agent and the terminal. It runs the real command, then trims the output before the AI sees it: a test run shows only the failures, for example. This is the same technique gateways like OmniRoute use behind the scenes.
On Windows:
winget install rtk-ai.rtk
rtk init -g
Use rtk init -g --codex for Codex, then restart your agent. On a Mac, install with brew install rtk. Run rtk gain to see how much it has saved you; if that command fails, you installed a different package with the same name.
The real numbers: RTK claims 60 to 90% less command output. That is not the same as 60 to 90% off your bill, and the project says so itself: terminal output is only part of what the agent reads.
3. Caveman: fewer words, same code
Caveman makes your agent reply in short, blunt sentences. The code it writes stays the same; only the chatter around it shrinks. It can also compress your memory and notes files so they cost less to load every session.
npx @caveman-ai/cli@latest
That installs it for every agent it finds on your computer (it needs Node.js 22.13 or newer). Then use /caveman in Claude Code, or /ultracave for even shorter replies, and /caveman-stats to see your actual savings. The CLI sends usage statistics by default; run caveman telemetry off if you'd rather it didn't.
The real numbers: the project measured about a third fewer input tokens on tasks with lots of tool output. Independent reviews found more modest savings in normal use, roughly 15 to 25% of output. The rules themselves also add some tokens to every request, so on short tasks the saving can disappear.
4. Superpowers: get it right the first time
Superpowers isn't a token compressor. It gives your agent a complete working method: brainstorm, write a plan, build in small steps with tests, review, then finish. The saving comes from fewer wrong turns and fewer "that's not what I meant" redos.
/plugin install superpowers@claude-plugins-official
In Codex, type /plugins, search for "superpowers" and install it. The project doesn't publish savings numbers, so judge it by whether your sessions need fewer corrections.
Which one should you start with?
- Your agent writes too much code: start with Ponytail. It had the clearest measured results.
- You run lots of tests and builds: add RTK.
- The agent rambles: try Caveman, and check
/caveman-statsafter a week. - Your projects keep going off track: Superpowers.
Add one at a time. If you install all four on the same day and something feels off, you won't know which one caused it.
The repos: Ponytail · RTK · Caveman · Superpowers
More ways to cut costs: Give Your AI a Second Brain and Stop Overpaying for AI Tokens.