有个开发者被 AI Agent 气到了:一个 5 行代码能解决的小问题,它硬是写了 500 行,还顺手加了一堆抽象和依赖。
于是他做了 Ponytail,一个专门让 AI 少写废代码的工具。它的设定很有梗:像团队里那个话不多、但一眼能看穿问题的老工程师。你给他 50 行代码,他看完直接用 1 行替掉。
效果夸张:代码量减少 80–94%,成本降低 47–77%,速度提升 3–6 倍。
支持 Claude Code、Codex、Copilot CLI、OpenCode、Gemini CLI 等工具。
Ponytail 会在 Agent 写代码前先问一句:这东西真的需要写吗?标准库能不能解决?项目里有没有现成实现?一行能不能搞定?实在不行,才让它写最少的代码。
安装超简单:Claude Code 用户直接:
/plugin marketplace add DietrichGebert/ponytail
然后 /plugin install ponytail
@ponytail
A dev got so frustrated watching his AI agent write 500 lines for a 5-line problem that he built a fix.
He called it Ponytail. Named after the guy every team has - long ponytail, oval glasses, been there longer than the version control. You show him fifty lines; he looks at them, says nothing, and replaces them with one.
Now your agent does the same. Before writing anything, it looks for a reason not to.
80-94% less code. 47-77% cheaper. 3-6x faster.
The best code is the code you never wrote.
GitHub Repo:
显示更多