NewsCrawler.org

Ponytail: a prompt that makes AI coding agents write less code

Ponytail 5, rebuilt from the ground up: -53% code, -41% time, -26% cost, -45% tokens. And yet 98% of risky logic ships with a test, without Ponytail 68%.
DietrichGebert/ponytail
Share of the no-skill baseline. Lines of code: Ponytail v4.13 52%, Ponytail 5 47%. Output tokens: 57% and 55%. Cost: 84% and 74%. Time: 62% and 59%.
Half the code, and yet better: 98% of risky logic ships with a test (no skill 68%); the agent's own tests catch 66% of injected bugs (no skill 46%).
Image: github.com

Ponytail is a prompt for AI coding agents that tells them to write only what a task needs, in the manner of a senior developer who replaces fifty lines with one.[1] The repository is at version 5 and reports benchmarks run in Claude Code on 39 tasks, including a real FastAPI and React repository, with 5 runs per task on Opus 5.5. Compared with the same agent without the skill,[2] the author reports 53% less code, 41% less time, 26% less cost and 45% fewer tokens.[3]

On six security tasks, such as SQL injection and path traversal, version 5 passed all 30 runs while writing less code. In a blind comparison, its replies beat the previous version 110 to 67. Also, 98% of risky logic shipped with a test, against 68% without Ponytail. In one example, a date picker took 335 lines without Ponytail and 10 lines with it, because the agent reused the existing Input component and the browser's built-in date picker.

The /ponytail-review and /ponytail-audit commands now check bugs, security, load and tests. Version 5.3 adds a band in Claude Code that shows cost, tokens, agent time and test status, and it needs Claude Code 2.1.290 or later. Ponytail installs as a plugin for Claude Code or Codex, or by copying AGENTS.md into another agent. Validation, error handling, security and accessibility are never cut to save code.

Read the original github.com

Sources

  • GitHub Trending

    DietrichGebert/ponytail

    591 stars today197,170 stars11,130 forks

First seen: Читать по-русски

Open as a page