P
ponytail
MITJavaScriptPonytail makes your AI agent think like the laziest senior dev, cutting code by ~54% while staying 100% safe.
★ 86kFork 5k更新于 2026-07-20
Ponytail makes your AI agent think like the laziest senior dev, cutting code by ~54% while staying 100% safe.
Ponytail 是一个 AI 代理技能包,让你的代理像最懒的高级开发人员一样思考:只写必要的代码,绝不写多余的行。它通过一个六步阶梯规则(YAGNI、复用、标准库、原生平台、已安装依赖、一行代码)在理解问题后自动应用,确保代码最小化但不牺牲验证、错误处理、安全或可访问性。支持 Claude Code、Codex、GitHub Copilot CLI 等 20 多种代理平台,安装简单,即插即用。
docker run -it --rm -v $(pwd):/workspace -w /workspace node:18 bash -c "npm install -g @anthropic-ai/claude-code && claude /plugin marketplace add DietrichGebert/ponytail && claude /plugin install ponytail@ponytail"
不需要。可选 ~/.config/ponytail/config.json 或 PONYTAIL_DEFAULT_MODE 环境变量设置默认级别,但非必需。
可以,而且推荐。Caveman 精简代理的对话,Ponytail 精简生成的代码,两者互补,无重叠。
你不需要。坚持的话,Ponytail 会慢慢构建,正确但缓慢,同时看着你。