DietrichGebert/ponytail
Ponytail is a single skill prompt (skills/ponytail/SKILL.md, with a compact AGENTS.md) that makes coding agents write only the code a task needs, reusing existing components while keeping validation, error handling, security and accessibility. The author benchmarked it in Claude Code with Opus 5.5 over 39 tasks, 5 runs each, including a real FastAPI + React repo. They report -53% code, -41% time, -26% cost and -45% tokens, and 98% of risky logic shipping with a test versus 68% without. It adds /ponytail-review and /ponytail-audit commands, a Claude Code cost/token band with a local board, and installs through Claude Code and Codex plugin marketplaces or as a rules file for Cursor, Copilot, Gemini, OpenCode and others.
What it claims
Ponytail 5 is a rewrite of a single prompt (skills/ponytail/SKILL.md) that tells a coding agent to write only what a task needs, reuse what the repo and platform already provide, and never cut trust-boundary validation, data-loss handling, security or accessibility. Beyond the headline deltas in the summary, the page reports two further results. In a blind comparison, Ponytail 5's replies beat the previous Ponytail's 110 to 67. On six security tasks (SQL injection, path traversal, forged tokens, rate limiting, malformed CSV rows, caching), it passed all 30 runs.
How it works
The prompt works in this order:
- Read the code the change touches and trace the real flow first.
- Only then pick a "rung" on a ladder of solutions, preferring existing components and platform features over new code. The page's example is a date picker: 335 lines without Ponytail, versus 10 lines using the repo's
Inputcomponent and the browser's native date picker.
The prompt also sets these rules:
- Tests: logic with a branch, loop, parser, money or security must leave one small test.
- End-of-reply report: every reply ends with what was skipped or not checked, plus any risks.
- Shortcut comments: deliberate shortcuts are marked with
shortcut:comments./ponytail-debtcollects them into a ledger, and the marker word can be changed viaCLAUDE.md/AGENTS.mdand/ponytail-debt <your word>.
The commands:
/ponytail-reviewreads the surrounding code, not just the diff. It checks bugs, security, load, missing tests, speed and cuts, and each finding includes what the code does, the failure, the fix, and the consequence of not fixing it./ponytail-auditmaps the whole repo first (entry points, data flow, expected load), then ranks findings by fix order.- Levels are switchable, including
/ponytail ultra.
How to use it
Claude Code, entered as two separate prompts:
/plugin marketplace add DietrichGebert/ponytail
/plugin install ponytail@ponytailCodex:
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytailIn Codex you then open /hooks, trust its two lifecycle hooks, and start a new thread. Commands are namespaced there, e.g. $ponytail:ponytail-review.
For other agents, copy AGENTS.md into the project, or install SKILL.md as a skill. Per-tool steps are in INSTALL.md.
Configuration is optional: ~/.config/ponytail/config.json or the PONYTAIL_DEFAULT_MODE env var sets the default level.
The cost/token band:
- Requires Claude Code 2.1.290 or later, in the terminal or the desktop app.
/ponytail bandtoggles it on and off.- Data stays local in
~/.config/ponytail/band/. /ponytail band importbackfills past Claude Code sessions into the board.
Licence: MIT.
Limits
- Benchmark scope: the benchmark covers one agent and one model (Claude Code, Opus 5.5), 39 tasks, 5 runs each. Method, per-task tables and stated limits are in
benchmarks/results/2026-10-07-agentic.md, which was not part of the fetched text. - Where the band doesn't appear: the VS Code chat panel, cloud sessions, and
claude -p. - Commands need a skill-capable host: Claude Code, Codex, Devin CLI, OpenCode, Gemini, Antigravity CLI, pi, Hermes Agent, Qoder, or Grok Build.
- Partial support: Cursor with hooks gets only
/ponytaillevel switching, typed as a plain message. - Rules only, no commands: Cursor's rule file, Windsurf, Cline, Copilot, Kiro, and the Antigravity
AGENTS.mdfallback load the always-on rules without any commands. - Supply-chain warning from the author: install only from
DietrichGebert/ponytailon GitHub or@dietrichgebert/ponytailon npm. The project never ships.exeor.dllfiles, so a copy that does is not genuine.
Organisations named here
- Claude Code
- Cline
- Cursor
- GitHub Copilot
- Hermes
- Kiro
- OpenCode
Technologies named here
- Opus 5.5
- Ponytail
- Claude Code
- Codex
- AGENTS.md
- /ponytail-review
- /ponytail-audit
- /ponytail-debt
- Ponytail band and board
- FastAPI
- React
- Cursor
- Windsurf
- Cline
- Copilot
- Kiro
- OpenCode
- Gemini
- Devin CLI
- Antigravity CLI
- pi
- Hermes Agent
- Qoder
- Grok Build
- GitHub Copilot
- npm
- GitHub
- Claude Opus 5.5
- Google Antigravity
Techniques named here
- Ponytail ladder
- Minimal-code skill prompting
Related in coding-agents
