{
  "schemaVersion": "1",
  "revision": "22ce5d34dbcb5a78",
  "id": "factory-tools-coding-agents",
  "slug": "tools-coding-agents",
  "title": "Terminal coding agents",
  "summary": "Tool roles, alternatives, selection tradeoffs, and compatibility caveats.",
  "category": "Tools",
  "tags": [
    "tools",
    "coding-agents"
  ],
  "sources": [
    {
      "label": "Tool comparison reference",
      "url": "https://dewy-sleet-n5zs.here.now/#coding-agents"
    }
  ],
  "sourceUnits": [
    "resources/index.html#coding-agents"
  ],
  "collection": "factory",
  "categoryId": "tools",
  "wordCount": 452,
  "url": "/topics/factory-tools-coding-agents/",
  "markdownUrl": "/markdown/factory-tools-coding-agents.md?raw=1&v=22ce5d34dbcb5a78",
  "jsonUrl": "/api/v1/documents/factory-tools-coding-agents.json",
  "headings": [
    {
      "id": "terminal-coding-agents",
      "text": "Terminal coding agents",
      "level": 2
    },
    {
      "id": "pick-this-if",
      "text": "Pick this if…",
      "level": 3
    }
  ],
  "markdown": "# Terminal coding agents\n\nTool roles, alternatives, selection tradeoffs, and compatibility caveats.\n\n## Terminal coding agents\n\n**John uses:** [pi](https://github.com/earendil-works/pi) (71.9k, MIT) as his primary agent — an AI agent toolkit with a unified LLM API, agent loop, TUI, and an extension system (section 01's `pi-session-id` is a pi extension; section 06's swarms use pi's subagent tool). He runs [Codex CLI](https://github.com/openai/codex) (99k, Apache-2.0), [Claude Code](https://github.com/anthropics/claude-code) (138k), and Grok side by side behind two-letter zsh wrappers (section 02) — the whole point of that section is that the wrapper pattern is agent-agnostic.\n\n| Alternative | What it is | How it differs | License |\n|----|----|----|----|\n| [OpenCode](https://github.com/anomalyco/opencode) | Open-source terminal coding agent, provider-agnostic (any model) | Community-run and model-agnostic where pi/Codex/Claude Code are single-author or lab-tied; largest OSS coding agent by stars | MIT |\n| [Gemini CLI](https://github.com/google-gemini/gemini-cli) | Google's open-source terminal agent for Gemini models | Free tier with a Google account; the Gemini-lab counterpart to Codex/Claude Code | Apache-2.0 |\n| [Goose](https://github.com/aaif-goose/goose) | Extensible AI agent (Block) that installs, executes, edits, and tests with any LLM | Extension/MCP-first architecture; works with any LLM rather than one vendor | Apache-2.0 |\n| [Aider](https://github.com/Aider-AI/aider) | AI pair programming in your terminal; git-native diff/commit workflow | Pair-programming/chat-over-git model rather than an autonomous agent loop; slower release cadence lately (check repository activity before adoption) | Apache-2.0 |\n| [Crush](https://github.com/charmbracelet/crush) | Charm's glamorous terminal coding agent (successor to OpenCode's original TUI) | Strongest TUI polish; multi-provider; source-available license (FSL-family, SPDX NOASSERTION) | NOASSERTION |\n| [OpenHands](https://github.com/OpenHands/OpenHands) | AI-driven development platform (formerly OpenDevin) with CLI, GUI, and cloud runtimes | Heavier platform (sandboxed runtimes, web UI) vs a single terminal binary | NOASSERTION |\n| [Grok Build (official)](https://x.ai/cli) / [superagent-ai grok-cli (OSS)](https://github.com/superagent-ai/grok-cli) | xAI's official terminal coding agent (subscription); an OSS coding agent for the Grok API | Grok Build is subscription-gated (SuperGrok/X Premium+) with plan mode and 8 parallel subagents; the superagent-ai CLI is MIT OSS against the Grok API | MIT (OSS one); Grok Build is proprietary |\n\n### Pick this if…\n\n- **OpenCode** — you want one agent that isn't tied to any lab and takes any model/provider.\n- **Gemini CLI** — you want a capable agent on a free tier with just a Google account.\n- **OpenHands** — you want sandboxed/cloud execution and a web UI, not just a terminal.\n- **Goose** — your leverage is custom extensions/MCP tools rather than the agent loop itself.\n- **Aider** — you want a human-in-the-loop pair programmer with clean git commits, not autonomy.\n- **Crush** — you live in the terminal and want the nicest TUI (mind the source-available license).\n- **Grok Build / grok-cli** — you're already paying for SuperGrok / have Grok API credits."
}
