DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

What it solves

Ponytail は AI エージェントがコードを過剰に設計するのを防ぎます。エージェントが不要なボイラープレートを書いたり、不要な依存関係をインストールしたり、よりシンプルでネイティブ、または既存の解決策がある場合に機能を再構築したりすることを止めます。

How it works

Ponytail は「ラダー」形式の意思決定プロセスを実装しており、エージェントはコードを書く前に以下の段階を順に評価しなければなりません:

  1. Does this need to exist? (YAGNI - You Ain't Gonna Need It)
  2. Already in this codebase? (Reuse existing code)
  3. Stdlib does it? (Use standard libraries)
  4. Native platform feature? (Use native browser/OS features)
  5. Installed dependency? (Use existing dependencies)
  6. One line? (Write a single line of code)
  7. Minimum that works (Only then write the minimum necessary code)

「解決策に対しては怠惰に、読み取りに対しては厳格に」という設計思想により、安全性、セキュリティ、アクセシビリティが簡潔さのために犠牲になることはありません。

Who it’s for

Claude Code、Codex、Devin、Cursor、Windsurf などの AI コーディングエージェントを使用する開発者向けです。コードの肥大化を抑え、LLM トークンコストを下げ、エージェントにより簡潔で必要なコードを生成させることでレイテンシを低減したい方に最適です。

Highlights

  • Broad Agent Compatibility: Supports a wide array of tools including Claude Code, Codex, Devin CLI, Gemini, and others via plugins or rule files.
  • Measurable Impact: Benchmarks show significant reductions in lines of code (LOC), tokens, cost, and time while maintaining 100% safety.
  • Customizable Intensity: Offers different modes (lite, full, ultra, off) to control how aggressively the agent avoids over-engineering.
  • Specialized Commands: Includes tools for reviewing diffs for over-engineering (/ponytail-review), auditing entire repos (/ponytail-audit), and tracking deferred shortcuts (/ponytail-debt).