跪拜 Guibai
← Back to the summary

Ponytail: An Always-On Skill That Cuts AI Coding Costs by 79%

Hi~ everyone, I'm Sanjin.

I wonder if any of you have had this kind of frustration during development:

These issues not only lead to long task execution times, but also unnecessary cost waste. In the open-source community, Ponytail can solve these problems very well.

Ponytail is a skill that can significantly reduce code volume, delivery time, cost, and token consumption. The project author tested it with Claude Code + Opus 5.5 and reached the following conclusions:

But this value is definitely not absolute; different projects and different model combinations will have a large gap from the author's case. Next, Sanjin will use QoderCLI + Deepseek-4.1-flash to run a task comparison.

Github address: https://github.com/DietrichGebert/ponytail

Installation

For agents like Cursor, Qoder, OpenCode, the simplest way is to say: Refer to the https://github.com/DietrichGebert/ponytail/blob/main/INSTALL.md document, help me install ponytail.

If you are using Codex, you can directly enter the following commands in the terminal:

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

If these two commands fail to install, you can scroll to the end for the local installation method in the supplementary notes.

Extra explanation:

You should know that as a Skill, it itself is passively invoked, meaning it only takes effect when trigger keywords appear. But Ponytail does not follow this rule; it achieves always-on status through Hooks, meaning it is automatically applied to the model's context without needing explicit invocation. This is achieved through configuring SessionStart Hook + AGENTS.md.

Why must Ponytail always be enabled? Because it is a practice designed to regulate all coding tasks. What does that mean? Simply put, it makes AI standardized and normalized during coding, restricting it from improvising. It uses the same methodology everywhere: minimal changes, YAGNI first.

Additionally, for Ponytail's execution intensity, there are four modes: lite - simplified, full - complete, ultra - ultra-detailed, off - off. Default is full, and once set, it persists throughout the session until the session is switched or ends. This is implemented through the UserPromptSubmit Hook.

Since it relies on Hooks, after starting Codex, type /hooks to check whether the two lifecycle events required by Ponytail are enabled. If not enabled, enable them and restart Codex.

Of course, if you are using Claude Code, after starting Claude Code, use its /plugin shortcut command:

# Step 1, add the plugin marketplace first
/plugin marketplace add DietrichGebert/ponytail

# Step 2, then install ponytail
/plugin install ponytail@ponytail

Command Introduction

Ponytail has 6 slash commands:

Evaluation

OK, with the basics understood, let's actually test the real effect of ponytail. Keeping "model: deepseek-4.1-flash" and "tool: QoderCLI" the same, we evaluate with "research workflow + same business logic convergence task".

The results without Ponytail and with Ponytail are as follows:

Title Without Ponytail With Ponytail Decrease ratio
Credits 24.8273 5.126 79.35%
Time 16972.9s 523.5s 96.92%
Code changes Added 914 lines, deleted 150 lines Added 267 lines, deleted 19 lines 73.12%
Token consumption 1960w 473w 75.87%

Without Ponytail

With Ponytail

The gap between the two is quite large. Tracing the logs of the two sessions, it was found:

Some might ask, with such low consumption, can quality be guaranteed?

I did functional acceptance testing on both branches and found that the branch without ponytail actually had some small issues, while the branch with ponytail, because it directly used existing code, achieved 100% functional completeness.

So Ponytail has another advantage: besides consuming less cost, it also provides better project stability and quality.

Supplementary Notes

If due to network issues, commands like codex plugin marketplace add DietrichGebert/ponytail time out, you can directly download the ZIP from the Github website, unzip it, and use local configuration:

codex plugin marketplace add <local path to ponytail>

Before adding the plugin, you need to modify the .agents/plugins/marketplace.json file in ponytail, otherwise it will still pull from the Github repository:

{
    "name": "ponytail",
    "interface": {
        "displayName": "Ponytail"
    },
    "plugins": [
        {
            "name": "ponytail",

            # Change this; the source code still points to the Github repo
            "source": {
                "source": "local",
                "path": "."
            },
            "policy": {
                "installation": "AVAILABLE",
                "authentication": "ON_INSTALL"
            },
            "category": "Productivity"
        }
    ]
}

Then execute codex plugin add ponytail@ponytail to finish.

Writing is hard. If you've read this far, please give a like and follow, and share with more friends~

Comments

Top 1 from juejin.cn, machine-translated. The original thread is authoritative.

三金得鑫

Correcting a data error: without ponytail enabled, the actual elapsed time was only 1330.2s, while the article uses the session end time, which is inaccurate. So the time reduction is actually 60.65%. Sorry, dear readers [covering face].