Ponytail: An Always-On Skill That Cuts AI Coding Costs by 79%
Hi~ everyone, I'm Sanjin.
I wonder if any of you have had this kind of frustration during development:
- AI receives a requirement and goes straight into heavyweight thinking, overcomplicating simple problems
- Doesn't use existing public methods or standard libraries in the code, insists on writing its own set
- Doesn't help analyze whether the requirement is reasonable, just dives in headfirst
- And various other non-standard behaviors
These issues not only lead to long task execution times, but also unnecessary cost waste. In the open-source community, Ponytail can solve these problems very well.
Ponytail is a skill that can significantly reduce code volume, delivery time, cost, and token consumption. The project author tested it with Claude Code + Opus 5.5 and reached the following conclusions:
But this value is definitely not absolute; different projects and different model combinations will have a large gap from the author's case. Next, Sanjin will use QoderCLI + Deepseek-4.1-flash to run a task comparison.
Github address: https://github.com/DietrichGebert/ponytail
Installation
For agents like Cursor, Qoder, OpenCode, the simplest way is to say: Refer to the https://github.com/DietrichGebert/ponytail/blob/main/INSTALL.md document, help me install ponytail.
If you are using Codex, you can directly enter the following commands in the terminal:
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytail
If these two commands fail to install, you can scroll to the end for the local installation method in the supplementary notes.
Extra explanation:
You should know that as a Skill, it itself is passively invoked, meaning it only takes effect when trigger keywords appear. But Ponytail does not follow this rule; it achieves always-on status through Hooks, meaning it is automatically applied to the model's context without needing explicit invocation. This is achieved through configuring SessionStart Hook + AGENTS.md.
Why must Ponytail always be enabled? Because it is a practice designed to regulate all coding tasks. What does that mean? Simply put, it makes AI standardized and normalized during coding, restricting it from improvising. It uses the same methodology everywhere: minimal changes, YAGNI first.
Additionally, for Ponytail's execution intensity, there are four modes: lite - simplified, full - complete, ultra - ultra-detailed, off - off. Default is full, and once set, it persists throughout the session until the session is switched or ends. This is implemented through the UserPromptSubmit Hook.
- lite - simplified: triggered via
/ponytail litein the session, focuses only on the requested part, usually provides smaller alternative solutions for us to choose from. - full - complete: triggered via
/ponytail, the complete rule set is: minimal complete changes + necessary checks + stating what was skipped and risks in the response. - ultra - ultra-detailed: triggered via
/ponytail ultra, this is the strongest. On top of full, it questions the requirement itself before starting, and offers different opinions on unreasonable parts. - off - off:
/ponytail offor via prompt command, as the name suggests, directly disables the rule set. To restart, execute any of the above commands.
Since it relies on Hooks, after starting Codex, type /hooks to check whether the two lifecycle events required by Ponytail are enabled. If not enabled, enable them and restart Codex.
Of course, if you are using Claude Code, after starting Claude Code, use its /plugin shortcut command:
# Step 1, add the plugin marketplace first
/plugin marketplace add DietrichGebert/ponytail
# Step 2, then install ponytail
/plugin install ponytail@ponytail
Command Introduction
Ponytail has 6 slash commands:
/ponytail [lite | full | ultra | off]: This was covered in detail earlier, so no need to repeat./ponytail band [on | off]: Only applies to Claude Code, can hide/show the info bar above the prompt box./ponytail band import: Same as above, only applies to Claude Code, imports historical sessions (cost, agent time, tokens) into the dashboard./ponytail-review: Reviews current code changes, including bugs, security, load, risky code lacking tests, slow paths, removable parts; can also useuncommitted,staged,branch, or PR links to specify the scope./ponytail-audit: Runs a review check on the entire repository and sorts results by importance./ponytail-debt: Think of it as technical debt harvesting. It usesshortcut:comments to mark the scope and change conditions of code snippets; this command greps all such comments in the repo and compiles a list./ponytail-gain: Displays the benchmark effect scoreboard (less code, lower cost, faster speed)./ponytail-help: Quick reference for the above commands.
Evaluation
OK, with the basics understood, let's actually test the real effect of ponytail. Keeping "model: deepseek-4.1-flash" and "tool: QoderCLI" the same, we evaluate with "research workflow + same business logic convergence task".
The results without Ponytail and with Ponytail are as follows:
| Title | Without Ponytail | With Ponytail | Decrease ratio |
|---|---|---|---|
| Credits | 24.8273 | 5.126 | 79.35% |
| Time | 16972.9s | 523.5s | 96.92% |
| Code changes | Added 914 lines, deleted 150 lines | Added 267 lines, deleted 19 lines | 73.12% |
| Token consumption | 1960w | 473w | 75.87% |
Without Ponytail
With Ponytail
The gap between the two is quite large. Tracing the logs of the two sessions, it was found:
- Without ponytail, the entire process strictly follows the research workflow: task clarification → spec → plan → tasks → development → e2e
- With ponytail, it actively downgrades to: explore existing implementation → one scope confirmation → minimal implementation
Some might ask, with such low consumption, can quality be guaranteed?
I did functional acceptance testing on both branches and found that the branch without ponytail actually had some small issues, while the branch with ponytail, because it directly used existing code, achieved 100% functional completeness.
So Ponytail has another advantage: besides consuming less cost, it also provides better project stability and quality.
Supplementary Notes
If due to network issues, commands like codex plugin marketplace add DietrichGebert/ponytail time out, you can directly download the ZIP from the Github website, unzip it, and use local configuration:
codex plugin marketplace add <local path to ponytail>
Before adding the plugin, you need to modify the .agents/plugins/marketplace.json file in ponytail, otherwise it will still pull from the Github repository:
{
"name": "ponytail",
"interface": {
"displayName": "Ponytail"
},
"plugins": [
{
"name": "ponytail",
# Change this; the source code still points to the Github repo
"source": {
"source": "local",
"path": "."
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}
]
}
Then execute codex plugin add ponytail@ponytail to finish.
Writing is hard. If you've read this far, please give a like and follow, and share with more friends~
Top 1 from juejin.cn, machine-translated. The original thread is authoritative.
Correcting a data error: without ponytail enabled, the actual elapsed time was only 1330.2s, while the article uses the session end time, which is inaccurate. So the time reduction is actually 60.65%. Sorry, dear readers [covering face].