AI column

Coding@donghyeok99Staff

Ponytail: makes your agent write only the code it needs

A date picker in 10 lines on the repo's own Input, where the agent alone wrote 335

The 335 lines of a hand-built date picker fold away, leaving a 10-line file that puts type="date" on the Input already in the repo, and one test.
The 335 lines of a hand-built date picker fold away, leaving a 10-line file that puts type="date" on the Input already in the repo, and one test.
Who
Made by Dietrich Gebert, for developers tired of agents adding abstractions and dependencies nobody asked for.
When
Public since June 12, 2026. The latest release is v5.3.3, from October 29, 2026.
Where
A plugin in Claude Code and Codex; an AGENTS.md or rules file in Cursor, Copilot, Gemini and others. The README badge says 20 agents.

What was hard

You ask an agent for one date picker and get a whole calendar component, or a new library in the lockfile. It works, but there are hundreds more lines to read, review and fix later. So every task starts with the same reminder typed again: use what is there, do not overbuild.

What it does about it

Ponytail writes that reminder down as one prompt and loads it into every session for you. Its key idea is an order. The agent first reads the code the change touches, then goes from whether the thing needs to exist down to whether it can be one line, and stops at the first answer that holds. It is lazy about the solution and not about the checks: input validation, error handling, security and accessibility stay, and risky logic leaves one small test behind.

A date picker request: 335 lines with no skill, 10 with Ponytail 5
A date picker request: 335 lines with no skill, 10 with Ponytail 5
The rungs it stops at before writing any code
The rungs it stops at before writing any code
/ponytail-review flagging a file outside the diff that now crashes
/ponytail-review flagging a file outside the diff that now crashes
The band above the Claude Code prompt: cost, tokens, reuse
The band above the Claude Code prompt: cost, tokens, reuse

What people made with it

docspring.comNathan Broadbent2026-11-13

16 sessions on four past tasks in a Rails monorepo, with and without Ponytail: source lines fell 56% and cost 34%, but a blind judge preferred their own setup for completeness.

It preferred our setup alone: 6.8 out of 10 overall against 5.9, and 2.4 out of 3 for completeness against 2.1.
blog.scottlogic.comColin Eberhardt2026-06-16

Ran Ponytail's own benchmark on Haiku: 108 lines on average for the baseline, 8.25 for Ponytail, with the baseline inflated by answers offering several options. The author later revised it.

I ran the tests, to verify the reported Ponytail results, and spotted various issues.

How it runs inside

  1. 1

    Developer → ponytail-activate.js

    Session starts (SessionStart hook)The plugin runs a Node script every time a session opens.hooks/claude-codex-hooks.json
  2. 2

    ponytail-activate.js → Claude Code

    Rules + codebase map injectedRules for the current level (lite, full, ultra) and a map of what already exists go in as hidden context.hooks/ponytail-activate.js
  3. 3

    Claude Code → Code already in the repo

    Read what the change touchesIt lists every place the change must reach: callers, tests, fixtures, config.skills/ponytail/SKILL.md
  4. 4

    Code already in the repo → Claude Code

    Six questions, stop at the first that holdsMust it exist, is it in the repo, in the standard library or platform, in an installed dependency, can it be one line.skills/ponytail/SKILL.md
  5. 5

    Developer → Claude Code

    /ponytail lite|full|ultraA level command in your prompt is read by a hook, which switches the session's level.hooks/ponytail-mode-tracker.js
  6. 6

    Claude Code → Small diff + what was skipped

    Minimum change + one small testLogic with a branch, loop, parser, money or security leaves a test; the reply ends with what was skipped and any risk.skills/ponytail/SKILL.md

What goes in, what comes out

Add a date picker to the frontendOne 10-line file using the repo's Input with type="date"; 335 lines with no skill (per the README)
/ponytail-reviewA review in three groups: must fix, should fix, nice to have. It reads callers outside the diff
/ponytail-debtA ledger of the shortcut: comments left in the code
DocSpring's Rails monorepo, four past tasksSource lines down 56%, cost down 34%; a blind judge scored their own setup 6.8 and Ponytail 5.9

Is it for you

Good for

  • Being tired of agents wrapping small requests in helpers, options and new dependencies
  • Wanting smaller diffs to review while keeping validation and tests
  • Running a review that reads the callers before you open a pull request
  • Seeing what each task cost in money and tokens right inside Claude Code

Not for

  • The README's numbers (53% less code and so on) are the author's own benchmark: 39 tasks in Claude Code.
  • DocSpring wrote that on their codebase code and cost dropped but changes missed places they had to reach. Their sample is four tasks.
  • The band above the prompt needs Claude Code 2.1.290 or later and does not show in the VS Code chat panel, cloud sessions or claude -p.
  • This piece is drawn from the README and the skill and hook files, not from a run of our own.

Reviewed by Devalley’s editor before publishing. How the column is made

Sign in to post, comment and like.Sign in

Report

Reason

Read the community rules