简报·YT
← 返回 GitHub 动态
DietrichGebert/ponytail · 📈 热门项目 已完成

DietrichGebert/ponytail v5.2.0

2026-10-13 01:48 · ⭐ 16.3万 · GitHub Release 原文 ↗
#版本更新 #AI编程助手 #开源项目

DietrichGebert/ponytail v5.2.0

一句话概括:v5.2.0 是一次以修复为主的版本,核心是让用户选择的「级别(level)」能在上下文压缩后继续生效,并修复了 macOS hooks 输出丢失以及 Cursor、OpenCode、pi、OMP、Qoder 等多个平台集成中的一系列问题。

项目简介

ponytail 是一个面向 AI 编程助手生态的工具,它为 Cursor、OpenCode、pi、OMP、Qoder、Hermes 等多种编辑器/客户端统一管理并注入 ruleset(规则集)与「级别(level)」配置,通过 hooks 机制让不同平台上的 AI 行为保持一致。它属于 AI 领域已有一定积累、且仍在活跃维护的热门项目,随着 AI 编辑器生态碎片化,这类做「跨平台统一配置层」的工具价值在上升——本次更新也正围绕多平台兼容性展开。

版本更新要点

▸ Release Notes 英文原文(3262 字符)
Mostly fixes for the level you pick. It now survives context compaction instead of falling back to the default, and on macOS the hooks can no longer lose their output, so the ruleset always arrives. Also in here: the Cursor installer leaves hooks.json files it doesn't understand alone and no longer removes your own hooks with a similar name, OpenCode doesn't get stuck in review anymore and supports `/ponytail default`, pi completes `/ponytail` arguments, and OMP starts new sessions at the default level. Thanks to everyone who sent fixes! ## What's Changed * fix(bench): a crashed cell no longer crashes the run summary by @DietrichGebert in https://github.com/DietrichGebert/ponytail/pull/1110 * docs: manual Hermes install until Hermes fixes its plugin.json check by @DietrichGebert in https://github.com/DietrichGebert/ponytail/pull/1111 * feat(pi-extension): autocomplete /ponytail arguments by @ruttybob in https://github.com/DietrichGebert/ponytail/pull/1080 * fix(hooks): write hook output synchronously so process.exit cannot drop it by @DietrichGebert in https://github.com/DietrichGebert/ponytail/pull/1112 * fix: preserve invalid Cursor hook configurations during install by @ac1982 in https://github.com/DietrichGebert/ponytail/pull/1059 * fix(cursor-hooks): preserve similarly named user hooks by @LurigeLars in https://github.com/DietrichGebert/ponytail/pull/1052 * fix(qoder): honor QODER_CONFIG_DIR for mode state by @Vaishnavi220506 in https://github.com/DietrichGebert/ponytail/pull/1057 * fix: keep the live ponytail level across context compaction by @devohmycode in https://github.com/DietrichGebert/ponytail/pull/1074 * fix(opencode): never save review as a level, support /ponytail default by @manuvarghese456-collab in https://github.com/DietrichGebert/ponytail/pull/1103 * fix(pi): restore the session's mode after OMP session switches by @andrebrait in https://github.com/DietrichGebert/ponytail/pull/1050 * chore(hermes): drop the unreachable review mode by @manuvarghese456-collab in https://github.com/DietrichGebert/ponytail/pull/1105 * fix(uninstall): remove the OpenCode mode flag by @manuvarghese456-collab in https://github.com/DietrichGebert/ponytail/pull/1104 * test: compare the statusline copy path JSON-escaped in hooks.test.js by @Bettinho179 in https://github.com/DietrichGebert/ponytail/pull/1046 * chore: release v5.2.0 by @DietrichGebert in https://github.com/DietrichGebert/ponytail/pull/1113 ## New Contributors * @ruttybob made their first contribution in https://github.com/DietrichGebert/ponytail/pull/1080 * @ac1982 made their first contribution in https://github.com/DietrichGebert/ponytail/pull/1059 * @LurigeLars made their first contribution in https://github.com/DietrichGebert/ponytail/pull/1052 * @devohmycode made their first contribution in https://github.com/DietrichGebert/ponytail/pull/1074 * @manuvarghese456-collab made their first contribution in https://github.com/DietrichGebert/ponytail/pull/1103 * @andrebrait made their first contribution in https://github.com/DietrichGebert/ponytail/pull/1050 * @Bettinho179 made their first contribution in https://github.com/DietrichGebert/ponytail/pull/1046 **Full Changelog**: https://github.com/DietrichGebert/ponytail/compare/v5.1.1...v5.2.0
▸ 主项目介绍 · DietrichGebert/ponytail
▸ README 原文(同步于 2026-10-08 12:18)
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.png"> <img src="assets/logo.png" width="220" alt="Ponytail, the lazy senior dev"> </picture> </p> <h1 align="center">Ponytail</h1> <p align="center"> <em>He says nothing. He writes one line. It works.</em> </p> <p align="center"> <a href="https://trendshift.io/repositories/50668?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/50668" alt="DietrichGebert%2Fponytail | Trendshift" width="250" height="55"/></a> </p> <p align="center"> <img src="https://img.shields.io/github/stars/DietrichGebert/ponytail?style=flat-square&color=111111&label=stars" alt="Stars"> <img src="https://img.shields.io/github/v/release/DietrichGebert/ponytail?style=flat-square&color=111111&label=release" alt="Release"> <img src="https://img.shields.io/npm/v/@dietrichgebert/ponytail?style=flat-square&color=111111&label=npm" alt="npm"> <img src="https://img.shields.io/badge/works%20with-20%20agents-111111?style=flat-square" alt="Works with 20 agents"> <img src="https://img.shields.io/badge/license-MIT-111111?style=flat-square" alt="MIT license"> </p> <p align="center"> <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/daily" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a> <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/weekly" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a> <a href="https://trendshift.io/repositories/50668?utm_source=trendshift-badge&amp;utm_medium=badge&amp;utm_campaign=badge-trendshift-50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/monthly?language=JavaScript" alt="DietrichGebert%2Fponytail | Trendshift monthly ranking" width="250" height="55"/></a> </p> <p align="center"> <img src="assets/v5/hero.jpg" width="880" alt="Ponytail 5, rebuilt from the ground up: -53% code, -41% time, -26% cost, -45% tokens. And yet 98% of risky logic ships with a test, without Ponytail 68%."> </p> <p align="center"> <strong>Ponytail 5: rebuilt from the ground up.</strong><br> <strong>-53% code &middot; -41% time &middot; -26% cost &middot; -45% tokens</strong><br> <strong>And yet: 98% of risky logic ships with a test.</strong> Without Ponytail: 68%.<br> <sub>Benchmarked in Claude Code, the same agent with and without the skill: 39 tasks including a real FastAPI + React repo, Opus 5.5, 5 runs each. <a href="#numbers">Details</a>.</sub> </p> <p align="center"> <sub><a href="i18n/README.es.md">Español</a> &middot; <a href="i18n/README.ko.md">한국어</a> &middot; <a href="i18n/README.zh-CN.md">简体中文</a> &middot; <a href="i18n/README.ja.md">日本語</a></sub> </p> --- <p align="center"> <a href="https://ponytail.dev/soon"><img src="assets/waitlist-banner.png" alt="Something's coming, join the waitlist" width="760"></a> </p> ## Already built with Ponytail <a href="https://theretriever.app"> <picture> <source media="(prefers-color-scheme: dark)" srcset="assets/retriever-logo-dark.svg"> <img src="assets/retriever-logo-light.svg" height="128" alt="Retriever"> </picture> </a> --- You know him. Long ponytail. Oval glasses. Has been at the company longer than the version control. You show him fifty lines; he looks at them, says nothing, and replaces them with one. Ponytail puts him inside your AI agent. ## Numbers <p align="center"> <img src="assets/v5/chart.png" width="880" alt="Share of the no-skill baseline. Lines of code: Ponytail v4.13 52%, Ponytail 5 47%. Output tokens: 57% and 55%. Cost: 84% and 74%. Time: 62% and 59%."> </p> <p align="center"> <img src="assets/v5/tests.png" width="880" alt="Half the code, and yet better: 98% of risky logic ships with a test (no skill 68%); the agent's own tests catch 66% of injected bugs (no skill 46%)."> </p> Two things the chart does not show: in a blind comparison, Ponytail 5's replies beat the previous Ponytail's 110 to 67. And on the six security tasks (SQL injection, path traversal, forged tokens, rate limiting, malformed CSV rows, caching) it passed all 30 runs: less code, no less safe. Method, per-task tables and limits: [benchmarks/results/2026-10-07-agentic.md](benchmarks/results/2026-10-07-agentic.md). **The rule was never "fewest tokens."** It is: write only what the task needs, and never cut validation, error handling, security, or accessibility. The code ends up small because it is necessary, not golfed. Lower cost and latency are a side effect. ## Before / after <p align="center"> <img src="assets/v5/beforeafter.png" width="880" alt="Add a date picker to the frontend. No skill: 335 lines, a calendar and a date picker built by hand. Ponytail 5: one 10-line file that reuses the repo's Input with type date, so the browser brings the calendar."> </p> You ask for a date picker. Without Ponytail, the agent installs a date picker library or builds a whole calendar by hand: 335 lines. Ponytail 5 first looks at what is already there: the repo has an `Input` component, and every browser has a date picker. It puts the two together. 10 lines. More survivors in [examples/](examples/). ## The review, rebuilt <p align="center"> <img src="assets/v5/review.png" width="880" alt="The review, rebuilt. A real /ponytail-review finding from the benchmark: the change renamed a field, and an untouched file, src/routes/feed.js, now crashes. Must fix: the Atom feed now crashes on every request, with what this is, the problem, the fix, and what happens if we skip it. 100% of planted problems found, no skill 87%. 100% of problems outside the diff found, no skill 78%."> </p> `/ponytail-review` used to look only for code to cut. Now it reviews like the senior dev who gets paged when it breaks: it reads the code your change touches, not just the diff, and checks bugs, security, real load, missing tests, speed, and what to cut. Each finding says what the code does, what goes wrong, how to fix it, and what happens if you don't. ## The audit, rebuilt <p align="center"> <img src="assets/v5/audit.png" width="880" alt="Your whole repo, ranked. Fix this first. A real /ponytail-audit from the benchmark on a warehouse stock repo: 1 must fix, office batches with 1,200 fail completely; 2 must fix, the import silently skips bad rows; 3 must fix, a mistyped SKU in an office batch is silently ignored; 4 should fix, the risky code paths have no tests; 5 nice to have, the API crashes on a body that isn't an object. Verdict: fix 1 first."> </p> `/ponytail-audit` runs the same checks on the whole repo. It maps the code first: entry points, how data moves, what load the project expects. Then it ranks what it finds and tells you what to fix first. The old audit only listed what to delete. ## How it works <p align="center"> <img src="assets/v5/ladder.png" width="880" alt="Before writing code, stop at the first rung that holds: 1 does this need to exist, 2 already in this codebase, 3 does the standard library do it, 4 a native platform feature, 5 an installed dependency, 6 can it be one line, 7 only then the minimum that works, plus one small test if it has logic."> </p> The ladder runs *after* it understands the problem, not instead of it: it reads the code the change touches and traces the real flow before picking a rung. Lazy about the solution, never about reading. Lazy, not negligent: trust-boundary validation, data-loss handling, security, and accessibility are never on the chopping block. Logic with a branch, a loop, a parser, money or security leaves one small test behind. Every reply ends with what was skipped or not checked and any risk you should know. ## The prompt Ponytail is one prompt: [`skills/ponytail/SKILL.md`](skills/ponytail/SKILL.md). The compact version, for agents that read a rules file, is [`AGENTS.md`](AGENTS.md). Everything else in this repo loads that prompt into different agents. ## Install **Claude Code**, as two separate prompts: ``` /plugin marketplace add DietrichGebert/ponytail ``` ``` /plugin install ponytail@ponytail ``` **Codex:** ```bash codex plugin marketplace add DietrichGebert/ponytail codex plugin add ponytail@ponytail ``` Then open `/hooks` in Codex, trust its two lifecycle hooks, and start a new thread. **Any other agent:** copy [`AGENTS.md`](AGENTS.md) into your project, or ask your agent to install [`skills/ponytail/SKILL.md`](skills/ponytail/SKILL.md) as a skill. Step by step for Copilot, Cursor, OpenCode, Gemini and the rest: **[INSTALL.md](INSTALL.md)**. That was it. He'd be proud. He won't say it. Active every session, with a handful of commands (see [Commands](#commands)). `/ponytail ultra` exists for when the codebase has wronged you personally. Startup and mode-change text shows the current mode. 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. ## Commands | Command | What it does | |---------|--------------| | `/ponytail [lite \| full \| ultra \| off]` | Set the intensity, or turn it off. No argument switches ponytail on at the default level if it is off, and otherwise reports the current level. | | `/ponytail-review` | Review the current diff like the senior dev who gets paged when it breaks: bugs, security, real load, risky code without a test, slow paths, and what to cut. Each finding says what the code does, what goes wrong, how to fix it, and what happens if you don't. Name a target in plain words to narrow or widen it: `uncommitted`, `staged`, `branch`, or a PR link. | | `/ponytail-audit` | The same check for the whole repo, most important first. | | `/ponytail-debt` | Harvest the `ponytail:` shortcuts you've deferred into a ledger, so "later" doesn't become "never". | | `/ponytail-gain` | Show the measured impact scoreboard (less code, less cost, more speed) from the benchmark. | | `/ponytail-help` | Quick reference for the commands above. | Commands need a skill-capable host (Claude Code, Codex, Devin CLI, OpenCode, Gemini, pi, Hermes Agent, Qoder, Grok Build). In Codex CLI and the IDE extension they're skills under the plugin's namespace; invoke with `$ponytail:ponytail-review`. Cursor with the [hooks](INSTALL.md#cursor) gets `/ponytail` level switching only, typed as a plain message. The instruction-only adapters (Cursor's rule file, Windsurf, Cline, Copilot, Kiro, Antigravity) load the always-on ruleset without the commands. ## FAQ **Does it need a config file?** No. An optional `~/.config/ponytail/config.json` or `PONYTAIL_DEFAULT_MODE` env var can set the default level, but nothing is required. **What if I really need the 120-line cache class?** You don't. Insist anyway and he'll build it. Slowly. Correctly. While looking at you. **Does it scale?** The code you never wrote scales infinitely. Zero bugs, zero CVEs, 100% uptime since forever. **Why "ponytail"?** You know exactly why. ## Sponsors <p align="center"> <a href="https://greenpt.com/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="assets/logo-greenpt-dark.svg"> <img src="assets/logo-greenpt.svg" width="260" alt="GreenPT"> </picture> </a> </p> ## License [MIT](LICENSE). The shortest license that works. ## Star History <a href="https://www.star-history.com/dietrichgebert/ponytail#history"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" /> </picture> </a>