· reAPI Team
Ponytail Claude Code Plugin Tested on v5.3 and Real Costs
Ponytail Claude Code plugin (v5.3.3) cuts output tokens 13.8% and cost 10.3% in JetBrains tests. Verified install hooks, new Band UI, and uninstall traps.

Ask a coding agent to export a Three.js scene rotated for Blender, and stock Claude Code constructs a wrapper THREE.Group, assigns intermediate constants, and imports path just to write one file. With the Ponytail Claude Code plugin active, the same model rotates the existing root object in place and ships an identical passing export in five statements instead of ten.[1]
Created by Dietrich Gebert (DietrichGebert/ponytail, MIT licensed), Ponytail is an open-source ruleset and plugin harness designed to stop AI coding agents from over-engineering routine tickets.[2] Viral clips still quote an early retracted 80%–94% figure, while older blog tutorials describe pre-v5 delete-only reviews and even print the wrong GitHub username.[3][4] Below is what independent paired testing by JetBrains actually measured, what changed in Ponytail v5.0 through v5.3.3 (including the live prompt Band, rebuilt security review, and v5.1.1 hook hardening), how to install it properly so hooks fire every turn, and how its output-token savings compound when running Claude Code on pay-as-you-go API gateways.
What the Ponytail Claude Code Plugin Actually Injects
Ponytail is not a model or a static linter. Its core is a single structured prompt (skills/ponytail/SKILL.md, with a compact AGENTS.md mirror for rule-file hosts) injected into your agent's context via two small Node.js lifecycle hooks.[2][5] Before writing code, the agent inspects the surrounding implementation first ("lazy about the solution, never about reading") and walks down a seven-step decision ladder until the first rung holds:[2][6]
- Does this feature or abstraction need to exist at all?
- Is it already implemented somewhere in this repository?
- Does the language standard library cover it?
- Does the native platform handle it (for example,
<input type="date">instead of installing a 300-line calendar package)? - Does an already-installed dependency solve it?
- Can it be written cleanly in one line?
- Only if rungs 1 through 6 fail: write the minimum new code that works.
Two explicit guardrails separate Ponytail from naive "write fewer lines" prompts. Trust-boundary input validation, data-loss error handling, security checks, and accessibility are explicitly exempt from cuts.[2] In addition, non-trivial logic touching a branch, loop, parser, financial math, or security boundary must leave behind a small runnable test, and every reply ends with what was skipped or unchecked.[2]
Why Passive SKILL.md Installation Fails in Claude Code
One trap breaks nearly every casual benchmark of the Ponytail Claude Code skill. Several skill directories tell developers to copy SKILL.md into a skills folder via npx skills add dietrichgebert/ponytail and let the model invoke it automatically.[7] When JetBrains tested that exact passive setup across ten Claude Code sessions, the skill self-activated zero out of ten times.[1]
Claude Code sees passive skills in its catalog, yet rarely chooses a "write less code" skill on its own without an explicit slash invocation. The official plugin avoids this completely by attaching a SessionStart Node.js lifecycle hook that injects the active ruleset automatically on session startup and propagates it into spawned subagents.[1][5]
Author Benchmarks vs. JetBrains' 80-Task Paired Audit
Ponytail's maintainer deserves unusual credit for retracting an early single-shot 80%–94% benchmark after community criticism (issue #126) showed the bare-model baseline was inflated by prose commentary, and for publicly disclosing a later benchmark contamination bug where a SessionStart hook leaked into baseline trials.[1][3] Comparing the updated October 7, 2026 Ponytail 5 self-benchmark side by side with JetBrains' July 28, 2026 independent paired A/B evaluation clarifies exactly what to expect in production:
| Metric | Ponytail 5 Self-Benchmark (Oct 2026, Opus 5.5, 39 tasks × 5 runs) | JetBrains Independent Audit (Jul 2026, claude-sonnet-5, 80 paired SkillsBench tasks, $246.09) |
|---|---|---|
| Code written | -53% mean across FastAPI + React tickets[2] | -15.4% median (10,205 → 8,756 lines, p=0.088); -31.2% on 300+ line builds[1] |
| Token impact | -45% combined tokens[2] | -13.8% output tokens (p=0.001); combined -7.5% (p=0.12, within noise)[1] |
| Dollar cost | -26%[2] | -10.3% median (p=0.004; cheaper on 46/80 tasks)[1] |
| Wall-clock time | -41%[2] | -10.6% (p=0.040)[1] |
| Quality & safety | 98% risky logic with test (vs 68% baseline); 30/30 on 6 security tasks[2] | No detectable quality drop: 65 identical, 6 better, 9 worse (p=0.61)[1] |
JetBrains tested Ponytail (v4.8.4) as Part 3 of a series evaluating popular "token saver" skills under identical Docker verifier harnesses. It was the only add-on in the series to deliver a statistically solid cost reduction, outperforming both Caveman (-8.5% against -65% advertised) and RTK (which actually increased spend by +7.6%).[1]
Two nuances in JetBrains' telemetry matter directly for API budgeting:
- Savings scale with over-building headroom. When JetBrains bucketed tasks by baseline diff size, Ponytail cut code by
0.0%median on tiny tasks (<20lines),-11.9%on 20–99 lines,-20.9%on 100–299 lines, and-31.2%on 300+ line builds.[1] On simple backend CRUD that is already minimal, Ponytail cannot invent savings that are not there. - Output tokens drive the bill reduction, not history re-reads. JetBrains found history re-reads (
-8.4%) and fresh input tokens (-3.9%) barely moved outside noise, whereas output tokens fell a rock-solid-13.8%(p=0.001).[1] Because frontier Claude API pricing bills output tokens at five times the rate of input tokens on models like Claude Sonnet 5.5 and Claude Opus 5.5, trimming redundant generated code targets the priciest column on your invoice. - Adherence to comment paperwork is weak. Across 80 audited runs where the ruleset was verifiably in context, Claude followed the decision ladder reliably yet emitted the requested shortcut marker comment only once (
1/80).[1] Treat/ponytail-debtas a bonus helper rather than a guaranteed audit trail.
What Changed in Ponytail 5 and the v5.3.3 Band UI
Pre-October tutorials still describe Ponytail v4, which missed three major upgrades shipped between v5.0.0 and v5.3.3 (latest release checked December 1, 2026).[8]
First, /ponytail-review and /ponytail-audit were rebuilt from deletion checklists into full production reviews. Instead of scanning only a diff for lines to erase, Ponytail 5 reads the surrounding code your change touches and flags logic bugs, security gaps, behavior under load, missing tests, slow paths, and unnecessary code, detailing what breaks and how to fix each finding.[2] On blind evaluations reported by the author, Ponytail 5 replies beat v4 by 110 to 67.[2]
Second, v5.3.0 through v5.3.3 added the Band and local Board for Claude Code (requiring Claude Code 2.1.290 or newer in the terminal or desktop app; it does not display inside the VS Code chat panel, cloud sessions, or headless claude -p).[2][8] The Band renders a compact telemetry strip right above the prompt showing current task dollar cost, token count, agent runtime, code reuse rate, and whether tests passed after the last edit, with buttons to switch intensity or launch /ponytail-review. Clicking Board opens a local dashboard backed by ~/.config/ponytail/band/, and /ponytail band import (added in v5.3.2) backfills your previous Claude Code sessions with historical model and cost data while keeping everything on your local machine.[2][8]
Third, recent patch releases closed real reliability and security holes worth verifying before deployment:
v5.1.1SessionStart security fix: Patched a vector in the v5.0 codebase map where hostile repository-controlled text could slip into hidden session context and where a symlink could hang startup before rules loaded, capping map execution time so hooks never silently drop rules.[8]v5.2.0compaction and macOS hook flush: Mode selections (lite,full,ultra,off) now persist across/compactinstead of resetting to default, and hooks flush output synchronously soprocess.exitcannot truncate rules on macOS.[8]v5.3.3Windows timeout & team cleanup: Raised hook timeouts to 15 seconds for slow Windows Node starts, fixed Band level restoration after/clearand/resume, and silenced first-prompt warnings on Team and Enterprise managed machines.[8]
Installing Ponytail in Claude Code, Codex, and Multi-Agent Setups
Verify the repository owner before typing any install command. At least one high-ranking blog tutorial mistakenly prints dietrichayala/ponytail, and the maintainer warns explicitly: "Only install ponytail from DietrichGebert/ponytail on GitHub or @dietrichgebert/ponytail on npm. It never ships .exe or .dll files; a copy that does is not mine."[2][4]
Claude Code Install (Two Separate Prompts)
Inside a Claude Code terminal session (or the Claude Desktop Code tab), send these two commands as separate prompts (pasting both at once fails to register the marketplace before install):[5]
/plugin marketplace add DietrichGebert/ponytailWait for confirmation, then send:
/plugin install ponytail@ponytailStart a fresh session and run /ponytail-help to verify activation. Make sure node is available on your non-interactive shell's PATH (especially if you manage Node with nvm, fnm, or Nix), otherwise the slash skills still load while the SessionStart hook fails silently with node: command not found.[5]
Codex CLI, OpenCode, and Multi-Agent Routing
For Codex CLI (and the Codex desktop app after restart), install via the CLI and explicitly trust both lifecycle hooks:[5]
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytailLaunch codex, run /hooks to review and trust the two Node lifecycle hooks, then open a new thread. In Codex, commands are namespaced as skills ($ponytail:ponytail-review, $ponytail:ponytail-audit).[2][5] Other plugin-capable hosts have native paths too: copilot plugin install ponytail@ponytail for GitHub Copilot CLI, opencode plugin add @dietrichgebert/ponytail for OpenCode, and gemini extensions install https://github.com/DietrichGebert/ponytail for Gemini CLI.[5]
If you route Claude Code through a pay-as-you-go Anthropic-compatible API gateway such as reAPI's Coding Agents endpoint (ANTHROPIC_BASE_URL=https://api.reapi.ai without /v1; see our Claude Code third-party API guide) or orchestrate Claude Code alongside Codex inside T3 Code, Ponytail works transparently because T3 Code drives your host machine's real Claude Code binary and plugins. Pairing Ponytail's -13.8% output reduction with tier mapping (claude-sonnet-5-5 default, Claude Haiku 5.5 for background exploration, and claude-opus-5-5 for architecture passes) keeps metered token spend tight across multi-worktree sessions.
Tuning Default Mode and Subagent Injection
By default, every new session starts in full mode and injects Ponytail into every subagent spawned via the Agent tool.[5] Two environment variables give you finer control without editing plugin files:
# Default mode across sessions: lite | full | ultra | off
export PONYTAIL_DEFAULT_MODE=full
# Optional regex: inject only into code-writing subagents, skipping read-only search agents
export PONYTAIL_SUBAGENT_MATCHER="coder|general|implement"You can also set "defaultMode" in ~/.config/ponytail/config.json (%APPDATA%\ponytail\config.json on Windows), with PONYTAIL_DEFAULT_MODE taking precedence.[5] Use lite when you want Claude to implement your requested design while mentioning a smaller option in one line, full for daily engineering, ultra only for cleanup passes where you want the agent to challenge whether code should exist at all, and /ponytail off whenever drafting prose or exploratory prototypes.[6][7]
Clean Uninstall Order and Operational Gotchas
Removing the plugin via /plugin remove ponytail (or codex plugin remove ponytail) deletes the plugin folder yet leaves state behind outside the plugin directory: ~/.claude/.ponytail-active, ~/.config/ponytail/config.json, ~/.claude/ponytail-statusline.sh (or .ps1), and the statusLine entry in ~/.claude/settings.json.[5] Until cleared, a stale badge stays pinned in your prompt.
Notice the exact order trap documented in INSTALL.md: run node scripts/uninstall.js BEFORE running /plugin remove ponytail, because the cleanup script lives inside the plugin directory itself. Removing the plugin first deletes the script (forcing you to clone the repo just to clean up stale settings). The script checks that statusLine points at Ponytail's own helper so any custom statusline you wrote remains untouched.[5]
When Ponytail Helps Claude Code and When to Skip It
As Hacker News and Stackademic reviewers pointed out, Ponytail is a conditional engineering lever rather than magic.[9][10] Every turn executes third-party Node lifecycle hooks and consumes context tokens to restate minimalism rules. Install the Ponytail Claude Code plugin when your team ships UI components, full-stack features, or multi-file refactors where agents routinely invent unneeded wrappers and third-party packages; on 300+ line tasks, cutting roughly a third of generated lines saves both API dollars and human PR review fatigue.[1]
Skip always-on mode if your work is mostly tiny surgical edits under 20 lines, if your repository has strict enterprise hook-execution policies that disallow external Node scripts, or if you rely on intentional public-API abstractions that a single-file minimalism pass might mistakenly flag for deletion.[6][10] Even then, keeping the Ponytail Claude Code plugin available on demand for /ponytail-review before opening a pull request, paired with targeted project rules from our Claude Code skills handbook, gives you leaner diffs with minimal context overhead.
Verified Primary Sources (Checked December 1, 2026)
- Denis Shiryaev, JetBrains AI Blog. Ponytail Skill for Claude Code (Jul 28, 2026): blog.jetbrains.com/ai/2026/07/ponytail-skill-claude-tested
- Dietrich Gebert. Ponytail README (Ponytail 5 & v5.3 Band): github.com/DietrichGebert/ponytail
- ArshTechPro. Ponytail: the AI coding skill (Aug 28, 2026): dev.to/arshtechpro/ponytail-the-ai-coding-skill-that-makes-your-agent-write-less-code-29l3
- MindStudio. How to Install Ponytail (Sep 1, 2026): mindstudio.ai/blog/ponytail-ai-coding-minimalism-plugin
- Dietrich Gebert. Official INSTALL.md: github.com/DietrichGebert/ponytail/blob/main/INSTALL.md
- Flavio Copes. A Deep Dive into Ponytail (Sep 17, 2026): flaviocopes.com/ponytail
- Collective Brain. Ponytail: Claude Skills for Lean Code (Nov 10, 2026): collectivebrain.de/en/skills/ponytail
- Dietrich Gebert. Ponytail Releases (
v5.0.0tov5.3.3): github.com/DietrichGebert/ponytail/releases - Hacker News. Ponytail discussion: news.ycombinator.com/item?id=48527946
- George Witt, Stackademic. Ponytail Claude Code review (Jun 24, 2026): blog.stackademic.com