← All posts

AI tool reviews › Ways of working

What is Ponytail? An agent skill for writing less code

Ponytail is a skill and plugin that steers AI coding agents toward the smallest change that works. What it injects, what it stores, and how it did in my test.

If you’ve been looking at plugins for AI coding agents, you may have come across a story about a senior developer with a long ponytail and oval glasses. The character at the top of the README is the kind who, shown fifty lines of code, says nothing and replaces them with one. Ponytail is the tool that sets out to put him inside your agent.

Ponytail is a skill that makes an AI coding agent think like a lazy senior developer and write only the code a task needs. A skill is an instruction file the agent reads and follows, and at the center of Ponytail is a single 52-line prompt, skills/ponytail/SKILL.md. Most of the other files are ways of loading that prompt into different agents. That’s why it ships as a plugin for Claude Code and Codex, as an npm package for OpenCode, and as rules files for Cursor or Windsurf. A plugin is a bundle that installs parts like skills and hooks in one go. Dietrich Gebert created the repository on June 12, 2026, and v1.0.0 came out the same day. According to the releases page, v5.0.0, with rewritten rules, followed on October 8 and v5.3.2 on October 16. The numbers hint at why you keep hearing the name. When I checked the GitHub API on October 28, 2026, the repository had 178,278 stars.

What’s inside and when it steps in

The Claude Code plugin holds three kinds of parts. The first is hooks, which are commands Claude Code runs automatically at set moments. Ponytail attaches Node.js scripts to three events: SessionStart, UserPromptSubmit, and SubagentStart. When a session starts, ponytail-activate.js prints the body of SKILL.md, filtered to the current level, and Claude Code adds that output to the context the model sees. That’s why the rules apply for the whole session without anyone calling the skill. Of the other two, one notices level switches like /ponytail ultra, and the other gives subagents the same rules.

The second is five skills you call like commands: ponytail-review, ponytail-audit, ponytail-debt, ponytail-gain, and ponytail-help. According to the Claude Code skills docs, only a skill’s description stays in context, and its body is read when it’s invoked. The third is the band module.

To see what the session start hook injects, I ran it by hand in the repository I made for my test. Here are the first line and the last two of its 43 lines of output.

PONYTAIL MODE ACTIVE — level: full
Codebase map (what already exists; reuse it, read a file only when you need its details):
stockroom/: slugify, parse_quantity, main, load_store, save_store

Those last two lines are the codebase map added in v5.0.0. It lists the repository’s top-level function and class names, one line per folder, within 2,000 characters, so the agent knows what already exists without searching. In my Claude Code runs, the first request carried 19,159 input tokens without Ponytail and 20,794 with it. So the rules, the map, and the skill descriptions add a little over 1,600 tokens to every request.

The ladder it climbs before writing code

SKILL.md starts by telling the agent to read the task and the code it touches. It should list every caller, test, and config the change must reach, and check whether the change could destroy or expose a user’s data. Only then does it climb the ladder. Does this need to exist? Is it already in the codebase? Does the standard library or a platform feature do it? Does an installed dependency? Can it be one line a reader gets at a glance? If the answer is no every time, it writes the minimum code that works. The README’s picture draws seven rungs, with the standard library and platform features apart, but SKILL.md in v5.3.2 lists six steps with the two combined.

Of course, some things are never cut: validation at trust boundaries, error handling that prevents data loss, security, accessibility, hardware calibration, and anything the user asked for. New logic with a branch, a loop, a parser, money, or security leaves behind one small test or an assert check. A shortcut taken with a known limit gets a comment starting with shortcut: that names the limit and when to change it. And the reply ends with one or two lines on what was skipped or not checked, and any risk.

There are three levels. lite builds what was asked and names a smaller option in one line, full (the default) follows the rules above, and ultra pushes back on any part of the request the need doesn’t justify before building. You switch with something like /ponytail lite, and sending just “stop ponytail” turns it off.

Among the commands, /ponytail-review reads the changed lines and the code that calls them. It then checks, in order, whether the change is correct, safe, holds up under real load, is tested, is fast, and carries nothing extra, and it reports the must-fix items first. /ponytail-audit runs the same checks over the whole repository without changing anything. /ponytail-debt gathers the shortcut: comments, and /ponytail-gain shows the numbers from the author’s benchmark. In my runs they were registered with the plugin’s name in front, as in ponytail:ponytail-review, and I didn’t run the review or audit commands this time.

The same request with and without Ponytail

I made a small Python CLI repository called stockroom and gave it the same feature request. Its textutil.py already has slugify(), which turns a name into a file-safe slug, and the item names in store.json include commas and double quotes. The request asks for an export command that writes the items to a CSV file named after the store. I kept the model the same with --model haiku and ran each setup twice, alternating, on a fresh copy of the repository every time.

# Each run starts from a fresh copy of stockroom, committed to git.
PROMPT="Add an export command to the stockroom CLI that writes all items to a CSV file named after the store, for example Main Warehouse becomes main-warehouse.csv."

# Without Ponytail
claude -p "$PROMPT" --model haiku --allowedTools "Edit" "Write" \
  --output-format stream-json --verbose < /dev/null > run.jsonl

# With Ponytail, loaded for this one run from a clone
git clone --depth 1 https://github.com/DietrichGebert/ponytail.git ../ponytail
claude -p "$PROMPT" --model haiku --allowedTools "Edit" "Write" \
  --output-format stream-json --verbose --plugin-dir ../ponytail < /dev/null > run.jsonl

git add -A -N && git diff --stat

claude -p is a headless run that executes once without opening a chat and then exits. --allowedTools lets the two file-editing tools run without asking, and --plugin-dir loads a plugin for that one run without installing it. On my machine I added options that skip my personal settings and don’t save the session. The plugin I loaded was a copy that leaves out the band module and has its hooks write their state files inside the work folder.

Measure Without Ponytail (run 1, run 2) With Ponytail (run 1, run 2)
Lines added / removed 59/1, 52/3 42/1, 41/1
Files changed 3, 3 2, 2
Turns 19, 14 13, 13
Output tokens 6,100, 5,845 4,796, 5,264
Cost (USD) 0.0092, 0.0084 0.0080, 0.0080
Time 34.5 s, 31.1 s 31.5 s, 25.9 s

All four runs used the existing slugify() and the standard library’s csv module, and all four wrote a test. When I ran the tests afterward, they all passed, and the names with commas and quotes came out correctly in the CSV. So the difference was in size. The runs without Ponytail put the export in its own function and also touched the README or store.py, while both runs with Ponytail added only a 7-line branch to cli.py and one new test file. That’s about 25% fewer added lines, and the cost was 4 to 14% lower depending on the run.

The author’s published measurements show a bigger gap. In the October 7, 2026 benchmark, the author ran 39 tasks five times each with Opus 5.5 and reports 53% fewer lines of code, 45% fewer output tokens, and 26% lower cost than with no skill. Pass rates on the hidden checks were about the same, and the share of logic that needed a test and got one rose from 68% to 98%. Task by task, the gap was widest where agents tend to build big, like a date picker, and small on narrow jobs like mine. Of course, my experiment was one task run four times with a small model, so it isn’t a benchmark.

I also looked at how the replies ended. The first run with Ponytail closed its reply like this.

Not checked: whether the header row and current-directory output location match what you want. Run `python3 -m unittest` to confirm the test passes.

As the rules ask, it put what it hadn’t checked on the last line. That said, the replies without Ponytail also listed their choices, such as overwriting a file with the same name without asking, so on this task this part didn’t set the two apart much.

What the band and the board leave behind

Starting with v5.3.0 (October 16, 2026), a band appears above the prompt in Claude Code, showing the current task’s cost and tokens, the agent’s working time, how often existing code was reused, and whether the tests passed. According to the README, it needs Claude Code 2.1.290 or later and doesn’t show in claude -p. Reading the source plugin.json and hooks/band/register.tsx, every turn it writes the task’s row to a per-project CSV in ~/.config/ponytail/band/ and rebuilds board.html in the same folder. The board is a local page that brings those files together, and the plugin’s Task board option turns the record off. The webhook address is empty by default, so nothing leaves your machine unless you add one, but if you do, the same row, task name included, goes to that address after every turn.

The hooks write to your home folder too. The mode files go to ~/.claude/.ponytail-active and ~/.claude/ponytail-modes/, and a copy of the statusline badge script stays in ~/.claude/. INSTALL.md says files like these stay behind when you remove the plugin and asks you to run node scripts/uninstall.js first. Still, in the v5.3.2 copy of that script I read, there was no line that deletes the board folder. Since the band doesn’t appear in headless runs, I only read its source, and the hooks in my experiment ran with CLAUDE_CONFIG_DIR and XDG_CONFIG_HOME pointed at the work folder.

How it differs from similar tools

The tool Ponytail measures itself against is Caveman. Created in April 2026 and at 115,560 stars on October 28, Caveman describes itself as making the agent talk like a caveman so it says and reads less, while the code stays exact. Ponytail works the other way around, cutting the amount of code more than the way the agent talks. Ponytail’s benchmark notes also call Caveman a prose-compression skill and say it landed between no skill and Ponytail on code size.

Superpowers hands the agent a whole development process as a set of skills, from brainstorming and planning to test-driven development and work split across subagents. Both stress YAGNI, but Ponytail doesn’t set an order of work. It only deals with how much code to write in each change. And if you only want the rules, you can drop the AGENTS.md that comes with it into your project. You lose level switching, the codebase map, and the commands that way.

When it fits and when it doesn’t

Ponytail fits best in a repository that already has useful helpers and components. If your agent often rebuilds what’s already there, or if people review its diffs closely, a smaller diff means less review time.

On the other hand, it may clash with work that’s meant to be designed big. If you’re building the public API of a library you plan to extend, or the skeleton of a structure you’ve already decided on, the rules may see it as abstraction nobody asked for and try to trim it. In that case, it’s better to drop to lite or spell out the structure you need in the request. It perhaps fits less well when you want long explanations to learn from, too. SKILL.md aims for a reply a busy person understands in one read, and in the author’s measurements the replies were 30% shorter than with no skill.

There are costs to accept, too. In my small example, every request carried a little over 1,600 more input tokens, and Node.js hooks run on each session and prompt, so node needs to be on your PATH. The license is MIT, and it changes fast, with 29 releases in a little over four months. The README asks you to get it only from the author’s GitHub repository or npm package.

Installing it and what to try first

Ponytail isn’t in Claude Code’s official plugin list, so you send these two lines as separate prompts to add the author’s marketplace and then install the plugin from it.

/plugin marketplace add DietrichGebert/ponytail
/plugin install ponytail@ponytail

The steps for Codex and other agents are collected in INSTALL.md. To remove it, run node scripts/uninstall.js from a clone first, then send /plugin remove ponytail. If you’d like a taste before installing, clone it and load it with --plugin-dir as I did, then run one small request you often make with and without Ponytail and put the two git diff --stat results side by side. I ran this experiment on October 28, 2026 with Claude Code 2.1.304 and --model haiku (claude-haiku-5-5), and the Ponytail version I checked was v5.3.2 (commit 09c434a).

AI tools helped with the research for this post.