ponytail-review

ponytail-review is a command for Claude Code, OpenCode from DietrichGebert/ponytail. It costs 0 tokens per session (465 once invoked), scanned A, original, MIT.

A command that reviews code changes only for unnecessary complexity. It looks for dead code, needless dependencies, avoidable abstractions, and ways to reduce lines.

In plain words
What is it for?
Use it after making changes when you want a focused review for over-engineering and a summary of removable code.
Why use it?
It separates simplicity checks from correctness reviews. This helps find code that can be deleted or shortened without changing the requested behavior.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: shipped in a Claude Code plugin, but also installed under .opencode/.

Part of the ponytail plugin — 7 skills, 6 commands shipped together

Good fit Use it after making changes when you want a focused review for over-engineering and a summary of removable code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dietrichgebert/ponytail/ponytail-review
About the project

Ponytail is a set of instructions and extensions that guides AI coding agents toward smaller, simpler code changes while retaining safety checks. It is intended for developers using agents such as Claude Code, and the catalogue entries are its skills, instructions, plugin, and rule.

DietrichGebert/ponytail · 176,199 stars · on GitHub · ponytail.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/DietrichGebert/ponytail

Made for: Claude Code, OpenCode.

Or install ponytail, the plugin that ships this one along with the rest of its 7 skills, 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ponytail-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/dietrichgebert/ponytail/ponytail-review/github.svg)](https://agentmods.dev/commands/dietrichgebert/ponytail/ponytail-review)
Your own site
<a href="https://agentmods.dev/commands/dietrichgebert/ponytail/ponytail-review"><img src="https://agentmods.dev/badge/commands/dietrichgebert/ponytail/ponytail-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ponytail-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/dietrichgebert/ponytail/ponytail-review"><img src="https://agentmods.dev/badge/commands/dietrichgebert/ponytail/ponytail-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00465
Opus 5.5 $0.00000 $0.00186
Sonnet 5.5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00047

Measured 17d ago against content hash 444d0b0a94e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ponytail-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

.opencode/command/ponytail-review.md · 6 lines

What it actually says

Review the current code changes like the senior developer who will be paged when they break. Review what the user names (uncommitted or staged changes, a branch, a PR link, files); nothing named: the uncommitted changes, or the last commit if there are none. First read the code the change touches: callers of every changed function, the functions it calls, the tests, the README (find the expected load: one person or many users and processes). A change can break code it does not touch. Look for, in this order: bugs (wrong result, crash, missed edge case, a caller broken by the change, a fix in one caller while the shared function stays broken), risk (security holes, data loss), scale (check-then-write races, the same work done by every process, memory that only grows, a query per item, O(n^2) on big input), risky logic without a test, slow code (big = problem, small = suggestion), lean (dead code, a helper the repo already has, stdlib or native instead of custom code or a new dependency, abstractions with one implementation, near-copies to merge, a function doing several unrelated jobs to split, never split by line count). Every finding needs a concrete case; re-read the lines to confirm it. A shortcut marked with a shortcut: (or older ponytail:) comment that names its limit is a decision, not a finding. Propose the smallest fix, prefer deleting code, never add layers. No style taste, no vague worries. Very simple English, explain technical terms. Start with 'What this change does:' in two or three sentences and the load you assumed. Then numbered findings grouped Must fix / Should fix / Nice to have; each finding: a bold title with file:lines, then four bullets: What this is, Problem, Fix, If we skip it (one or two short sentences each). End with 'Verdict:', 'Lean: -N lines possible.' when lean findings exist, and 'Not checked:' if something mattered and you could not check it. Nothing found: 'Looks good. Ship.' Change no code.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · -11 tokens per session 444d0b0a94e7
  2. 20d ago Changed 767fac58add0
  3. 22d ago Changed 8c0d200f5e64
  4. 1mo ago First seen · 6 lines · 11 tokens per session scan A ff09bd42b1d2

Subscribe to this mod's changes

ponytail-review is a command published in the GitHub repository DietrichGebert/ponytail (176,199 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 465 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.