Ponytail is a prompt that tells coding agents to write as little code as possible
Ponytail is an instruction set and set of commands that makes an AI coding agent write only the code a task needs, plus review and audit commands that check the result.
Ponytail is a single prompt in skills/ponytail/SKILL.md, with a shorter AGENTS.md for agents that read a rules file. Its commands include /ponytail-review and /ponytail-audit, which check a diff or an entire repo for bugs, security problems and missing tests. /ponytail-debt gathers the shortcuts the agent leaves behind, in the form of comments. In Claude Code, it installs as two plugin prompts. In Codex, it takes two CLI commands, then trusting two lifecycle hooks. For other agents, the README says to copy AGENTS.md into the project. It is MIT licensed.
The author's benchmark ran in Claude Code with Opus 5.5 across 39 tasks, with five runs each. Compared with the same agent without the skill, it reports 53% less code, 41% less time, 26% less cost and 45% fewer tokens. The README says 98% of risky logic ships with a test, compared with 68% without the skill. All 30 runs on six security tasks passed. These are the author's own figures, and the README links to per-task tables and limits. The Claude Code band, which requires version 2.1.290 or later, shows cost and tests for each task and a local board. It does not appear in the VS Code chat panel, cloud sessions or claude -p.
The README says the goal is not the fewest tokens but writing only what the task needs, and never cutting validation, error handling, security or accessibility. It also says the agent should read the code a change touches before choosing the simplest option. The README offers no independent results.
In the author's words
Ponytail puts him inside your AI agent.
From the README or the author's post. We checked that the sentence is there, not that it is true.
When to reach for it
Reach for it when an agent keeps adding helper classes or libraries to small changes. The README's advice to check what already exists in the codebase, the standard library or the platform before writing code is a usable habit even without the prompt.
Works with
See it
AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made