Ponytail is a free, MIT-licensed plugin that injects a "stop overbuilding" ruleset into AI coding agents like Claude Code, Codex, and GitHub Copilot CLI before they write a single line, and today it is the fastest-rising repository on GitHub's daily trending page, adding 944 stars in 24 hours on top of more than 110,000 total. Setup is two commands in most hosts, and in the maintainer's own agentic benchmark it cuts the code an agent writes for the same finished feature by 54 percent.
- Ships as a native plugin across roughly 20 agent hosts, including Claude Code, Codex, GitHub Copilot CLI, Gemini CLI, OpenCode, and Devin CLI, each with its own install command in the README.
- Before writing code, it runs the agent through a seven-rung ladder: does this need to exist, is it already in the codebase, does the stdlib or a native platform feature already cover it, before anything custom gets written.
- On a 12-task benchmark against a real FastAPI plus React repo (Haiku 4.5, n=4), the project measured 54 percent less code, 22 percent fewer tokens, 20 percent lower cost, and 27 percent less time than the same agent with no skill, while staying 100 percent safe on the separate safety tier.
- The Claude Code and Codex versions run two small Node.js lifecycle hooks, so Node needs to be on PATH, and there is a real install gotcha covered below.
What is Ponytail and why is it trending?
Ponytail is an open source plugin built by developer Dietrich Gebert that gives AI coding agents a personality: the laziest senior developer in the room, who looks at fifty lines of proposed code and replaces them with one. It injects a compact ruleset into the agent's context on every turn, before the agent starts writing. The repository was created on June 12, 2026, and has already crossed 110,000 stars and 6,000 forks, a trajectory that put it on GitHub's Trendshift board for both the daily and weekly charts. The spike behind today's trending slot is a problem every agentic coding user recognizes: ask for a small feature and get a new dependency, a wrapper component, and a stylesheet nobody asked for. Ponytail's pitch is narrow and concrete rather than a general "be careful" prompt, which appears to be why it is spreading fast.
RelatedSuperpowers Setup: Give Your AI Coding Agent a Real Workflow
How does the decision ladder actually work?
Before touching a file, the injected ruleset walks the agent through seven rungs in order and stops at the first one that holds:
- Does this need to exist at all? If not, skip it (YAGNI).
- Is it already in this codebase? Reuse it instead of rewriting.
- Does the standard library already do it? Use that.
- Does the native platform already have this feature? Use it.
- Is there an installed dependency that covers it? Use that.
- Can it be done in one line? Write one line.
- Only if nothing above applies: write the minimum that actually works.
The ladder runs after the agent has read and understood the code the change touches, not instead of that step. The maintainer is explicit that the rule is not "fewest tokens": validation, error handling, security, and accessibility are never on the chopping block, and something genuinely complex still gets built, just without the padding.
How do you install Ponytail in Claude Code?
The plugin is distributed through Claude Code's plugin marketplace system, and it needs two separate prompts, sending both at once does not work:
/plugin marketplace add DietrichGebert/ponytail
/plugin install ponytail@ponytail
The same two commands work typed into the prompt box in the Claude Code desktop app's Code tab, or you can reach the install flow through Customize in the sidebar, then Plugins, then Add plugin. Once installed, Ponytail is active every session by default at its "full" intensity.
What about Codex, GitHub Copilot CLI, and other agents?
Codex uses its own plugin command, then a one-time hook review:
# install and trust the plugin
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytail
Run codex, open /hooks, review and trust its two lifecycle hooks, and start a new thread for it to take effect. GitHub Copilot CLI follows the identical marketplace pattern:
copilot plugin marketplace add DietrichGebert/ponytail
copilot plugin install ponytail@ponytail
Gemini CLI installs as a single extension command, and OpenCode users add the npm package to their config instead of running a command:
# Gemini CLI
gemini extensions install https://github.com/DietrichGebert/ponytail
// opencode.json
{ "plugin": ["@dietrichgebert/ponytail"] }
The README documents the same pattern for Pi agent, Devin CLI, Hermes Agent, and Grok Build, plus instruction-only fallbacks: Cursor, Windsurf, and Copilot Chat all read a copied rules file such as AGENTS.md straight from the repo.
RelatedOpenWork Setup: Open-Source Claude Cowork in 15 Minutes
What commands does it add once it is running?
/ponytail lite | full | ultra | off
/ponytail-review
/ponytail-audit
/ponytail-debt
/ponytail-gain
/ponytail-help
/ponytail with no argument reports the current level; full is the default, and ultra exists, in the maintainer's words, "for when the codebase has wronged you personally." /ponytail-review checks the current diff and hands back a delete list. Set a default level for every new session with the PONYTAIL_DEFAULT_MODE environment variable or ~/.config/ponytail/config.json.
How much code does it actually save?
The headline numbers come from a real agentic test, not a single-shot prompt: a headless Claude Code session editing tiangolo's full-stack FastAPI and React template across twelve feature tickets, the same agent run with and without the skill, four runs each, scored on the actual git diff left behind.
| vs no-skill baseline | LOC | tokens | cost | time | safe |
|---|---|---|---|---|---|
| Ponytail | -54% | -22% | -20% | -27% | 100% |
| Caveman (terse-prose control) | -20% | +7% | +3% | +2% | 100% |
| "YAGNI + one-liners" prompt | -33% | -14% | -21% | -30% | 95% |
A bare "write terse, minimal code" prompt is the obvious cheap alternative, and it comes closer than expected on some metrics while landing meaningfully lower on safety, 95 percent versus Ponytail's 100 percent on the same adversarial safety tier. The cut is largest where an agent has an obvious over-build trap, the README cites a date picker task dropping from 404 to 23 lines, and smallest where the code was already minimal.
- Jun 12, 2026Repository created. First commits of the plugin and its skill files.
- Aug 7, 2026v4.9.0 released. Five weeks of work landed: persistent default mode, Qoder support, subagent scoping via PONYTAIL_SUBAGENT_MATCHER.
- Aug 26, 2026Tops GitHub's daily trending page. 944 stars added in 24 hours, over 110,000 total.
What are the gotchas before you rely on it?
Four things worth knowing before installing. First, the Claude Code and Codex hooks are small Node.js scripts, so Node has to be reachable on the non-interactive shell's PATH; if it is missing, the bundled skills still work when invoked directly, but always-on activation stays silent instead of raising an error. Second, Claude Code's install genuinely requires two separate prompts, sent one at a time. Third, uninstalling leaves state behind on purpose, a mode flag, the config file, and possibly a statusline entry, and the cleanup script must run before the plugin is removed, because that script lives inside the plugin's own folder: run node scripts/uninstall.js from a checkout first, then /plugin remove ponytail. Fourth, this is a prompt-injection layer, not a linter, so review the ruleset if a codebase has hard requirements Ponytail's YAGNI defaults should never override.
- Does the star count hold up. A repository two and a half months old at 110,000-plus stars against 276 watchers is an unusually wide gap; whether daily active installs match the star trajectory is the real signal, not the star count alone.
- The waitlist product. The README links a "something's coming" waitlist at ponytail.dev; watch whether a paid product changes the incentives around the free plugin's ruleset.
- Instruction-only hosts catching up. Cursor, Windsurf, and Copilot Chat currently only get a copied rules file with no mode-switching or commands; first-class plugin support there would remove the biggest feature gap.
Our take
Ponytail is solving a problem every agentic coding user has hit personally: ask for something small and get back a subsystem. What makes it worth a look rather than a shrug is that the maintainer published a benchmark that would embarrass a weaker tool, an agentic diff-based test against a real repo, compared honestly against a plain terse-prompt baseline that beats it on a couple of metrics. That is a stronger case than the typical "trust me" prompt-engineering repo. The install friction is real but small: one PATH check, two prompts instead of one, and an uninstall order that is easy to get backwards. None of that offsets fifty-plus percent less code on the tasks where agents actually over-build. If a coding agent is already part of the workflow, this is a two-minute install worth trying on the next feature request.
- OfficialDietrichGebert/ponytail repository and README
- OfficialPonytail Releases v4.9.0 changelog
- BenchmarkAgentic benchmark writeup 12-task FastAPI + React methodology and per-task tables
- Referencenpm package @dietrichgebert/ponytail, used by the OpenCode install
Original analysis by GenZTech. Tool documentation: DietrichGebert/ponytail on GitHub.
