# How to install Ponytail in Claude Code, Codex and Cursor

> Source: <https://calyban.com/blog/install-ponytail-skill>
> Published: 2026-11-28 00:00:00+00:00

**Recommendation:** Install the Ponytail skill from DietrichGebert/ponytail to cut agent output tokens to 55% and cost to 74% of baseline, but keep validation, error handling and security intact.
More in the playbook "Controlling LLM cost": <https://wpnews.pro/playbooks/llm-cost>

[Dev blog](https://calyban.com/blog) · [Guides](https://calyban.com/blog#guide) · 2026-11-28

# How to install Ponytail in Claude Code, Codex and Cursor

**Short answer:** in Claude Code, run `/plugin marketplace add DietrichGebert/ponytail`, then `/plugin install ponytail@ponytail`. In Codex, run `codex plugin marketplace add DietrichGebert/ponytail` and `codex plugin add ponytail@ponytail`, then trust its two hooks under `/hooks`. Other agents take the skill file or the `AGENTS.md` ruleset.

Or do it in one click for every agent at once: [Calyban](https://calyban.com/) installs Ponytail into Claude Code, Codex, Cursor, GitHub Copilot and Gemini CLI from the real `DietrichGebert/ponytail` repo, safety-checked first. Free, no account.

Ponytail is one prompt that turns your agent into a lazy senior developer: reuse what’s already in the codebase, prefer the standard library, write one line instead of fifty, and never cut validation, error handling or security to get there. It’s one of the most-starred skill repos on GitHub (about 200,000 stars as we write this).

## What does it change?

The author benchmarked it in Claude Code on 39 tasks, five runs each, with and without the skill. Against the no-skill baseline, Ponytail 5 wrote 47% of the code, used 55% of the output tokens, cost 74% as much and took 59% of the time. Risky logic shipped with a test 98% of the time, against 68% without it. The full method is in the repo’s [benchmark write-up](https://github.com/DietrichGebert/ponytail).

In practice: fewer new helper files, fewer abstractions nobody asked for, and replies short enough to read in one pass.

## Claude Code

Two separate prompts inside a session:

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

It’s on for every session after that. `/ponytail lite`, `/ponytail full` and `/ponytail ultra` change how hard it pushes, and `/ponytail off` turns it off. In Claude Code 2.1.290 and later it also shows a small band above the prompt with the task’s cost, tokens and test status; `/ponytail band` hides it.

## Codex

```
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytail
```

Open `/hooks` in Codex, trust the plugin’s two lifecycle hooks, and start a new thread. Commands are namespaced there, so the review is `$ponytail:ponytail-review`.

## Cursor, Copilot, Gemini CLI and the rest

Copy the repo’s `AGENTS.md` into your project, or install `skills/ponytail/SKILL.md` as a skill in the agent’s skills folder. Cursor and Copilot get the always-on rules without the slash commands.

## The commands worth knowing

- `/ponytail-review` reviews your current change like the person who gets paged when it breaks: bugs, security, load, untested risky code and what to cut.
- `/ponytail-audit` does the same for the whole repo and ranks what to fix first.
- `/ponytail-debt` collects the`shortcut:` comments you left so “later” doesn’t turn into “never”.

## One safety note from the author

Only install Ponytail from `DietrichGebert/ponytail` on GitHub or `@dietrichgebert/ponytail` on npm. The README says it never ships `.exe` or `.dll` files, and a copy that does isn’t real. Popular repos attract lookalikes; this one is popular.

## The Calyban way

Calyban has Ponytail three ways. The [plugin](https://calyban.com/plugins/ponytail-ponytail) installs through Claude Code’s and Codex’s own plugin commands. The [skill](https://calyban.com/skills/dietrichgebert-ponytail) copies the prompt into any skill-capable agent’s folder. And the [full collection kit](https://calyban.com/kits/collection-dietrichgebert-ponytail) puts the skill and its companion skills (review, audit, debt, gain and help) into Claude Code, Codex, Cursor, Copilot and Gemini CLI in one go. Each one is downloaded from `DietrichGebert/ponytail` at a pinned commit and safety-checked first, which settles the lookalike question for you.

Calyban is free for Windows and Linux at [/#download](https://calyban.com/#download). Show us your before and after diffs on [Discord](https://discord.gg/pHDNtgYvWn).
