Illustration of what ponytail does: A skill that makes AI coding agents write the least code that works

DietrichGebert /

ponytail

A skill that makes AI coding agents write the least code that works

AI coding agents often over-build. Ask for a date picker and you may get a new library, a wrapper component and a stylesheet. Ponytail gives the agent a habit instead: stop at the first option that works, and write only what the task needs.

Before coding, the agent walks a seven-step ladder. Does this need to exist? Is it already in the codebase? Does the standard library, the platform or an installed dependency do it? Can it be one line? Only then does it write the minimum. It reads and traces the relevant code first, so it is lazy about the solution but not about understanding.

The README says validation at trust boundaries, data-loss handling, security and accessibility are never cut. It compares itself with a no-skill agent, a terse-prose skill (caveman) and a plain 'YAGNI + one-liners' prompt. In the author's own benchmark (Haiku 4.5, 12 tasks, 4 runs each), lines of code fell about 54% on average. The gain is near zero where code is already minimal.

What it does

  • Seven-step decision ladder

    The agent checks whether the code is needed, already exists, or is covered by the stdlib, the platform or an installed dependency. It writes new code only as a last step.

  • Safety guards kept

    Trust-boundary validation, data-loss handling, security and accessibility are explicitly protected from trimming.

  • Levels and commands

    You can switch between lite, full, ultra and off. The README also lists commands for review, audit, debt, gain and help.

  • Wide agent support

    Install steps cover Claude Code, Codex, Copilot CLI, Gemini CLI, OpenCode, Hermes, Swival, Devin CLI and others.

  • Reproducible benchmarks

    The repo includes a benchmarks folder and a writeup of the method and limitations, so you can rerun the tests yourself.

What you could build

  • Install it in Claude Code to stop the agent adding libraries for things the browser already does.
  • Run the review command to find over-built code in an existing project.
  • Use the audit and debt commands to spot code that could be deleted or simplified.
  • Drop AGENTS.md into a project so agents like CodeWhale or Qoder follow the same rules.
  • Rerun the benchmarks to check the savings on your own model and tasks.

Get started

In Claude Code, send the two /plugin commands as separate prompts: first add the marketplace, then install the plugin. Other agents have their own commands in the README. Make sure node is on your PATH so the lifecycle hooks run cleanly.

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

Commands are copied from the project's README. Read it on GitHub for the full setup.

More in Agent skills & plugins

    ↑↓ to move, Enter to open, Esc to close