R151 · Harness tips › Harness tips

Ponytail: a minimal-code skill for coding agents, with its own benchmark

Read the original

Authors Mayank A. (shared)

agent-skillscoding-agentsharness-configbenchmarkscode-review

Sources: the DietrichGebert/ponytail repository (README, skills/ponytail/SKILL.md, benchmarks/results/2026-10-07-agentic.md), as shared by Mayank A. on LinkedIn, 2026-11-19. MIT licensed. All numbers are the maintainer's own.

What it is

Ponytail is one prompt, packaged as a skill (and a compact AGENTS.md for agents that read a rules file), that pushes a coding agent toward the smallest complete change. The rest of the repo is installers for about 20 agent hosts (Claude Code and Codex plugins, Cursor hooks, plain copy-in for others) plus commands: /ponytail-review (diff review), /ponytail-audit (whole-repo review, ranked), /ponytail-debt (collects deliberate shortcut: comments into a ledger) and, in Claude Code, a status band showing per-task cost, tokens, agent time, reuse rate and last test result, stored locally.

The mechanism: a reuse ladder after reading

The skill tells the agent to first read the task and the code it touches, list every place the change must reach (callers, tests, fixtures, config, exports), and only then pick the first rung that fully works:

1. Does it need to exist?          -> skip unrequested features, name them
2. Already in this codebase?        -> use the helper/component as neighbours do
3. Standard library / platform?     -> use it (house component beats native widget)
4. Installed dependency?            -> use it; never add a dep for a few lines
5. One readable line?               -> one line
6. Otherwise                        -> minimum code that works
   + one small test if it has a branch, loop, parser, money or security

Hard floor: never cut trust-boundary validation, data-loss error handling, security, accessibility, or anything the user asked for. Every reply ends with what was skipped or not checked. Deferred shortcuts get a structured comment (shortcut: <limit>, <when to upgrade>). Three levels: lite (build what was asked, name the smaller option), full (default), ultra (push back on the request itself).

The canonical example: asked for a date picker, an unprompted agent wrote about 335 lines (library or hand-built calendar); with the skill it combined the repo's existing Input component with the browser's native date input in about 10.

The benchmark, and how much to trust it

Same agent (Claude Code on Opus 5.5) with and without the skill, 39 tasks including a real FastAPI + React repo, 5 runs each. Reported deltas for v5: 53% less code, 41% less time, 26% lower cost, 45% fewer tokens, and 98% of risky logic shipped with a test versus 68% without. Task mix includes reuse tasks, six security tasks (SQL injection, path traversal, forged tokens, rate limiting, malformed CSV rows, caching), a privacy task, rename/format changes that must reach every caller, and open-scope "build me an app" requests.

What the results file itself concedes, which is to its credit:

Staff-level read: this is a well-run self-benchmark, not an independent one. The maintainer chose the tasks, the hidden checks and the judges, and many tasks reward reuse by construction. The cost and code-size wins are plausible and mechanically explained; the test-coverage delta is the most interesting number and the one most worth reproducing on your own repo.

Tradeoffs

Failure modes to watch

Review checklist for adopting a minimal-code skill

Connections

See R151 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.