Ponytail: The Claude Code Plugin That Makes Your Agent Write Less Code
You know the guy. Long ponytail, oval glasses, has been at the company longer than the version control. You show him fifty lines, he says nothing, and replaces them with one. Ponytail is a free plugin that puts him inside Claude Code. It makes your agent write less code, and the surprising part is that the code it does write is better tested.
What it changes
Agents love to build things. Ask for a date picker and a typical agent installs a date picker library or hand-rolls a whole calendar. The README's example is 335 lines. With Ponytail, the agent first looks at what's already there, notices the repo has an Input component and that every browser already ships a date picker, and writes 10 lines with type="date".
It does this by climbing a ladder before it writes anything, and stopping at the first rung that works. Does this need to exist at all? Is it already in the codebase? Does the standard library do it? Is there a native platform feature? An installed dependency? Can it be one line? Only after all of that does it write the minimum that works, plus one small test if there's logic in it.
The important rule: it's lazy about the solution, never about reading. It traces the real code path before picking a rung. And validation, error handling, security and accessibility are never on the chopping block.
The numbers
The author benchmarked version 5 in Claude Code on 39 tasks, including a real FastAPI and React repo, five runs each, with and without the skill. With Ponytail: 53% less code, 41% less time, 26% lower cost, 45% fewer tokens. And 98% of risky logic shipped with a test, against 68% without it. On the six security tasks (SQL injection, path traversal, forged tokens and so on) it passed all 30 runs.
These are the author's own benchmarks, so take them as a direction, not a guarantee. But the method and per-task tables are published in the repo, which is more than most "X% faster" claims give you.
The commands worth knowing
Once installed it's on every session. You can turn it up or down with /ponytail lite, full or ultra (the README says ultra is "for when the codebase has wronged you personally"), or off.
/ponytail-review reviews your diff like the senior dev who gets paged when it breaks. It reads the code your change touches, not only the diff, and each finding says what goes wrong, how to fix it, and what happens if you don't. /ponytail-audit does the same for the whole repo and tells you what to fix first. /ponytail-debt collects the shortcut: comments it leaves behind into a ledger, so "later" doesn't quietly become "never."
Newer versions also add a small band above the Claude Code prompt showing what the current task cost, tokens used, how often it reused existing code, and whether tests passed. /ponytail band hides it if you don't want it. All of that data stays on your machine.
Install
In Claude Code, as two separate prompts: /plugin marketplace add DietrichGebert/ponytail and then /plugin install ponytail@ponytail. Codex has its own plugin commands, and for Cursor, Copilot, Windsurf and others you can drop the AGENTS.md file into your project. The author asks you to install only from DietrichGebert/ponytail on GitHub or @dietrichgebert/ponytail on npm, and notes it never ships .exe files. With nearly 200,000 stars, copycats are a real risk, so listen to that.
Who it's for
Anyone whose agent keeps writing 300 lines where 30 would do, which is most of us. It pairs nicely with a strict CLAUDE.md, and if you're paying per token, the cost drop alone justifies trying it for a week. MIT licensed. If you want more process rather than less, look at Matt Pocock's skills for the planning side.
Get Ponytail on GitHub
Ponytail is free and open source. The code, install steps and docs all live in the repository: DietrichGebert/ponytail.
Listed by AgentsKit. We don't maintain this project and aren't affiliated with its author. Read the code before you run anything that touches your machine or your inbox.
More free skills and plugins
Harvey
An autonomous SDR that runs on your Claude subscription
Read →/brag
Turn the thing you just built into a launch video
Read →GEO-SEO Claude
Audit any site for ChatGPT, Perplexity and AI Overviews
Read →Hypit
Clone a viral video into a workflow you can remix
Read →REA
See a feature you like, find out how it's built
Read →API Anything
Stop making your agent click through websites
Read →Hallmark
Pages that don't look AI-generated
Read →Anatomy
Explain an idea by building it as a machine
Read →ECC
A full engineering process for your agent
Read →Impeccable
Design words your agent understands
Read →Matt Pocock's Skills
Small, composable skills for real engineering
Read →Cloudflare Security Audit
A code audit where every finding gets double-checked
Read →Browse the marketplace
Every free skill and plugin we've reviewed, in one place.
Read →