Ask an agent for a date picker and it often installs a library or builds a calendar by hand. Ponytail, by Dietrich Gebert, makes it stop first and look at what is already there. In its README's example, the repo already had an input component and every browser has a date picker, so the answer was one 10-line file instead of 335 lines. It is one prompt, loaded as a skill, and it is free under MIT.
- less code
- 53%
- fewer tokens
- 45%
- lower cost
- 26%
- of risky logic ships with a test
- 98%
- Language
- JavaScript
- Stars
- 202,536 on 1 Dec 2026
- License
- MIT
- Best for
- Anyone whose agent writes more code than the task needs
- Needs
- Claude Code, Codex or any agent that reads a skill or a rules file
How it works
Before it writes code, Ponytail climbs a ladder and stops at the first rung that holds:
Need
- 01Does this need to exist at all?
→ maybe nothing to write
Reuse
- 02Already in this codebase? Does the standard library do it?
→ no new code
Platform
- 03A native platform feature, or a dependency you already have?
→ one line
Write
- 04Only then the minimum that works
- 05One small test if it has logic
→ small, tested code
The ladder runs after the agent reads the code the change touches, not instead of it. Its README puts it as lazy about the solution, never about reading. Every reply ends with what was skipped or not checked.
Where the numbers come from
These are Ponytail's own numbers, not ours: Claude Code, the same agent with and without the skill, 39 tasks including a real FastAPI and React repo, Opus 5.5, five runs each. The bars show Ponytail 5 as a share of the agent without it. Two more results from the same test: the agent's own tests caught 66% of planted bugs, against 46% without, and on the six security tasks it passed all 30 runs.
(01)Add the marketplace
Inside Claude Code, as its own prompt:
/plugin marketplace add DietrichGebert/ponytail
(02)Install the plugin
Then, as a second prompt:
/plugin install ponytail@ponytail
It is on in every session from then on. Startup text shows the current level.
(03)Pick a level, or use the reviews
01Level
/ponytail lite, full, ultra
Set how hard it pushes, or /ponytail off to turn it off.
02Review
/ponytail-review
Reviews your change and the code it touches: bugs, security, missing tests, what to cut.
03Audit
/ponytail-audit
The same check on the whole repo, ranked, most important first.
04Band
/ponytail band
Shows the task's cost, tokens and agent time above the prompt. Run it again to hide it.
Before you start
How you know it is done
- The numbers are Ponytail's own benchmark. Your codebase and tasks will differ.
- Install it only from DietrichGebert/ponytail on GitHub or @dietrichgebert/ponytail on npm. Its README says it never ships .exe or .dll files.
- The band above the prompt needs Claude Code 2.1.290 or later, and does not show in the VS Code chat panel.
- If you really need the long version of something, ask for it. It will build it.
- Stars
- 202,536 on 1 Dec 2026
- License
- MIT
- Install
- /plugin marketplace add DietrichGebert/ponytail
- Then
- /plugin install ponytail@ponytail
- Turn off
- /ponytail off
Common questions
Got any questions left?
Is it free?
Yes, MIT. It is one prompt plus the files that load it into different agents.
Does less code mean less safe code?
Not by its rules. Validation, error handling, security and accessibility are never cut, and logic with a branch, a loop, money or security leaves a test behind.
Does it work outside Claude Code?
Yes. Codex has its own two commands, and other agents can read its AGENTS.md file or install the skill. The repo's INSTALL.md has the steps.
Do I need a config file?
No. An optional config file or environment variable sets the default level.
How do I turn it off?
Type /ponytail off. /ponytail with no level turns it back on.
Build systems that run your brand__
info@hybrdstudio.com