{
 "schema_version": 1,
 "generated": "2026-10-27",
 "url": "https://dedupedai.com/best-ai-repos-for/ai-coding-agents/",
 "task": "AI coding agents",
 "question": "What is the best open-source AI coding agent?",
 "answer": "The best open-source AI repos for AI coding agents right now are Claude Code, OpenCode and Gemini CLI. All three run in your terminal and are the most starred coding agents we track; Cline also works inside your IDE, and goose runs as a desktop app, a CLI and an API.",
 "md": "https://dedupedai.com/best-ai-repos-for/ai-coding-agents/index.md",
 "repos": [
  {
   "repo": "anthropics/claude-code",
   "title": "Claude Code",
   "url": "https://dedupedai.com/use-cases/anthropics-claude-code/",
   "github": "https://github.com/anthropics/claude-code",
   "what": "Claude Code is an agentic coding tool that runs in your terminal, reads your codebase, and carries out coding and git tasks from natural language commands.",
   "who": "Developers who work in a terminal and want an AI agent to explain code, run routine tasks, and handle git workflows inside a project.",
   "stars": 152856,
   "language": "TypeScript",
   "requirements": [
    "A terminal on macOS, Linux, or Windows",
    "A local project directory you want Claude Code to work in",
    "Permission to run one of the install methods listed in the README"
   ],
   "uc_count": 3,
   "use_cases": [
    {
     "title": "Explain complex code in an unfamiliar project",
     "url": "https://dedupedai.com/use-cases/anthropics-claude-code/explain-unfamiliar-codebase/"
    },
    {
     "title": "Delegate routine coding tasks from the terminal",
     "url": "https://dedupedai.com/use-cases/anthropics-claude-code/delegate-routine-coding-tasks/"
    },
    {
     "title": "Handle git workflows with natural language",
     "url": "https://dedupedai.com/use-cases/anthropics-claude-code/handle-git-workflows-in-chat/"
    }
   ],
   "best": {
    "title": "Explain complex code in an unfamiliar project",
    "url": "https://dedupedai.com/use-cases/anthropics-claude-code/explain-unfamiliar-codebase/",
    "difficulty": "Intermediate",
    "time": "15 minutes",
    "agents": [
     "claude-code"
    ],
    "steps": [
     "Install Claude Code with one of the README methods, for example curl -fsSL https://claude.ai/install.sh | bash on macOS or Linux.",
     "Navigate to your project directory.",
     "Run claude.",
     "Ask in natural language to explain how a named module or feature works, and to list the files it depends on.",
     "Ask follow-up questions about any part that is still unclear."
    ],
    "md": "https://dedupedai.com/use-cases/anthropics-claude-code/explain-unfamiliar-codebase/index.md"
   }
  },
  {
   "repo": "anomalyco/opencode",
   "title": "OpenCode",
   "url": "https://dedupedai.com/use-cases/anomalyco-opencode/",
   "github": "https://github.com/anomalyco/opencode",
   "what": "OpenCode is an open source AI coding agent that runs as a command-line tool and as a beta desktop app.",
   "who": "Software developers and engineering teams who want an AI coding agent they can inspect, run locally, and switch between read-only and full-access modes.",
   "stars": 219977,
   "language": "TypeScript",
   "requirements": [
    "A terminal on macOS, Linux, or Windows, or the desktop app installer for your platform",
    "One package manager available: npm, bun, pnpm, yarn, or brew",
    "A local project folder you want the agent to work in",
    "Configuration for OpenCode as described in the docs at opencode.ai/docs (the README only links to them)"
   ],
   "uc_count": 5,
   "use_cases": [
    {
     "title": "Explore an unfamiliar codebase without risking edits",
     "url": "https://dedupedai.com/use-cases/anomalyco-opencode/explore-unfamiliar-codebase-read-only/"
    },
    {
     "title": "Hand multistep code searches to a subagent",
     "url": "https://dedupedai.com/use-cases/anomalyco-opencode/delegate-multistep-code-search/"
    },
    {
     "title": "Build a code change with the default full-access agent",
     "url": "https://dedupedai.com/use-cases/anomalyco-opencode/build-feature-with-full-access-agent/"
    }
   ],
   "best": {
    "title": "Explore an unfamiliar codebase without risking edits",
    "url": "https://dedupedai.com/use-cases/anomalyco-opencode/explore-unfamiliar-codebase-read-only/",
    "difficulty": "Intermediate",
    "time": "30 minutes",
    "agents": [],
    "steps": [
     "Run npm i -g @opencode/cli@latest (or use brew install anomalyco/tap/opencode-v2 on macOS and Linux).",
     "Change into the project folder and start OpenCode with opencode.",
     "Press the Tab key until the plan agent is selected.",
     "Ask it to map the main modules, entry points, and how the tests are run.",
     "Ask for a step-by-step plan for your change and review it before switching to the build agent."
    ],
    "md": "https://dedupedai.com/use-cases/anomalyco-opencode/explore-unfamiliar-codebase-read-only/index.md"
   }
  },
  {
   "repo": "google-gemini/gemini-cli",
   "title": "Gemini CLI",
   "url": "https://dedupedai.com/use-cases/google-gemini-gemini-cli/",
   "github": "https://github.com/google-gemini/gemini-cli",
   "what": "Gemini CLI is Google's open-source AI agent for the terminal. It reads your codebase, runs commands and answers prompts with Gemini models, and can run headless with JSON or streaming JSON output for scripts and CI. The README notes that unpaid tier and Google One users were moved to Antigravity CLI on June 18, 2026 and that Gemini CLI is not optimized for the newest Gemini models, so it now fits API key and Vertex AI users best.",
   "who": "Developers with a Gemini API key or Google Cloud project who want a scriptable terminal agent.",
   "stars": 108198,
   "language": "TypeScript",
   "requirements": [
    "Node.js (npm), Homebrew, MacPorts or conda",
    "A Gemini API key from AI Studio or a Google Cloud project for Vertex AI"
   ],
   "uc_count": 3,
   "use_cases": [
    {
     "title": "Ask Gemini to explain a codebase from the terminal",
     "url": "https://dedupedai.com/use-cases/google-gemini-gemini-cli/ask-gemini-about-your-codebase-from-the-terminal/"
    },
    {
     "title": "Run Gemini headless in scripts and CI with JSON output",
     "url": "https://dedupedai.com/use-cases/google-gemini-gemini-cli/run-gemini-headless-in-scripts-and-ci/"
    },
    {
     "title": "Use Gemini CLI through your company's Vertex AI project",
     "url": "https://dedupedai.com/use-cases/google-gemini-gemini-cli/use-gemini-cli-through-vertex-ai/"
    }
   ],
   "best": {
    "title": "Ask Gemini to explain a codebase from the terminal",
    "url": "https://dedupedai.com/use-cases/google-gemini-gemini-cli/ask-gemini-about-your-codebase-from-the-terminal/",
    "difficulty": "Beginner",
    "time": "10 minutes",
    "agents": [
     "gemini-cli"
    ],
    "steps": [
     "Try it without installing: npx @google/gemini-cli, or install with npm install -g @google/gemini-cli or brew install gemini-cli",
     "Set your key: export GEMINI_API_KEY=\"YOUR_API_KEY\"",
     "In the repo run gemini, and add sibling folders with gemini --include-directories ../lib,../docs",
     "Ask it to explain the architecture or summarize recent changes"
    ],
    "md": "https://dedupedai.com/use-cases/google-gemini-gemini-cli/ask-gemini-about-your-codebase-from-the-terminal/index.md"
   }
  },
  {
   "repo": "cline/cline",
   "title": "Cline",
   "url": "https://dedupedai.com/use-cases/cline-cline/",
   "github": "https://github.com/cline/cline",
   "what": "Cline is an open source autonomous coding agent that runs as an SDK, an IDE extension, a terminal CLI, or a desktop app.",
   "who": "Developers and engineering teams who want an AI agent that edits code, runs commands, and automates recurring coding tasks.",
   "stars": 70700,
   "language": "TypeScript",
   "requirements": [
    "Node.js with npm available, since the README installs the CLI with npm",
    "Access to an AI model provider that Cline supports, such as Anthropic, OpenAI, Google, OpenRouter, or a local model through Ollama or LM Studio",
    "A git repository or project folder you want the agent to work in",
    "For the VS Code path: the VS Code editor and the VS Code Marketplace extension"
   ],
   "uc_count": 5,
   "use_cases": [
    {
     "title": "Fix failing tests automatically in a CI pipeline",
     "url": "https://dedupedai.com/use-cases/cline-cline/fix-failing-tests-in-ci/"
    },
    {
     "title": "Review a branch diff for issues before merging",
     "url": "https://dedupedai.com/use-cases/cline-cline/review-git-diff-before-merge/"
    },
    {
     "title": "Plan a feature in VS Code and approve each edit",
     "url": "https://dedupedai.com/use-cases/cline-cline/plan-then-approve-feature-edits-in-vscode/"
    }
   ],
   "best": {
    "title": "Fix failing tests automatically in a CI pipeline",
    "url": "https://dedupedai.com/use-cases/cline-cline/fix-failing-tests-in-ci/",
    "difficulty": "Intermediate",
    "time": "30 minutes",
    "agents": [],
    "steps": [
     "Install the CLI with npm i -g cline.",
     "Open a terminal in the root of the repository that has the failing tests.",
     "Run cline \"Run tests and fix any failures\".",
     "Review the file changes with git diff before committing.",
     "Commit the changes on a branch and let your normal CI rerun the tests."
    ],
    "md": "https://dedupedai.com/use-cases/cline-cline/fix-failing-tests-in-ci/index.md"
   }
  },
  {
   "repo": "charmbracelet/crush",
   "title": "Crush",
   "url": "https://dedupedai.com/use-cases/charmbracelet-crush/",
   "github": "https://github.com/charmbracelet/crush",
   "what": "Crush is Charm's agentic coding tool for the terminal. It works with many LLMs through OpenAI- and Anthropic-compatible APIs, lets you switch models mid-session while keeping context, keeps multiple sessions per project, uses LSPs for extra context and adds capabilities through MCP servers. It runs on macOS, Linux, Windows, Android and the BSDs and is configured with a Bash-like crushrc.",
   "who": "Developers who live in the terminal and want a polished coding agent that works with the model provider of their choice, including local models.",
   "stars": 28821,
   "language": "Go",
   "requirements": [
    "A terminal on macOS, Linux, Windows, Android or BSD",
    "An LLM provider: Charm's Hyper subscription, an API key for Anthropic, OpenAI, Gemini or OpenRouter, or a local server such as Ollama"
   ],
   "uc_count": 3,
   "use_cases": [
    {
     "title": "Start an AI coding session in your terminal with Crush",
     "url": "https://dedupedai.com/use-cases/charmbracelet-crush/start-coding-with-crush-in-your-terminal/"
    },
    {
     "title": "Run Crush on a local Ollama model",
     "url": "https://dedupedai.com/use-cases/charmbracelet-crush/run-crush-on-a-local-ollama-model/"
    },
    {
     "title": "Give Crush extra tools with MCP servers",
     "url": "https://dedupedai.com/use-cases/charmbracelet-crush/connect-mcp-servers-to-crush/"
    }
   ],
   "best": {
    "title": "Start an AI coding session in your terminal with Crush",
    "url": "https://dedupedai.com/use-cases/charmbracelet-crush/start-coding-with-crush-in-your-terminal/",
    "difficulty": "Beginner",
    "time": "10 minutes",
    "agents": [],
    "steps": [
     "Install with brew install charmbracelet/tap/crush or npm install -g @charmland/crush",
     "On Windows use winget install charmbracelet.crush",
     "Start Crush in your project, press ctrl+l to open the model picker and choose a provider",
     "Paste your API key, or set a provider environment variable such as ANTHROPIC_API_KEY",
     "Switch models mid-session when a task needs a different one"
    ],
    "md": "https://dedupedai.com/use-cases/charmbracelet-crush/start-coding-with-crush-in-your-terminal/index.md"
   }
  },
  {
   "repo": "aaif-goose/goose",
   "title": "Goose",
   "url": "https://dedupedai.com/use-cases/aaif-goose-goose/",
   "github": "https://github.com/aaif-goose/goose",
   "what": "goose is a general-purpose, open-source AI agent that runs on your machine as a desktop app for macOS, Linux and Windows, a CLI and an API. It is built in Rust, works with 15+ providers including Anthropic, OpenAI, Google, Ollama and OpenRouter (or your existing Claude, ChatGPT or Gemini subscriptions via ACP), connects to 70+ extensions through the Model Context Protocol, and is part of the Agentic AI Foundation at the Linux Foundation.",
   "who": "Developers and knowledge workers who want one local agent for code, research, writing and automation with the model provider of their choice.",
   "stars": 55769,
   "language": "Rust",
   "requirements": [
    "macOS, Linux or Windows",
    "An LLM provider API key, a local Ollama model, or an existing subscription via ACP"
   ],
   "uc_count": 3,
   "use_cases": [
    {
     "title": "Install the Goose CLI and hand it a real task",
     "url": "https://dedupedai.com/use-cases/aaif-goose-goose/install-goose-cli-and-run-a-task/"
    },
    {
     "title": "Use Goose with your existing Claude, ChatGPT or Gemini subscription",
     "url": "https://dedupedai.com/use-cases/aaif-goose-goose/use-goose-with-your-existing-subscription/"
    },
    {
     "title": "Extend Goose with MCP extensions for research and automation",
     "url": "https://dedupedai.com/use-cases/aaif-goose-goose/connect-goose-to-mcp-extensions/"
    }
   ],
   "best": {
    "title": "Install the Goose CLI and hand it a real task",
    "url": "https://dedupedai.com/use-cases/aaif-goose-goose/install-goose-cli-and-run-a-task/",
    "difficulty": "Beginner",
    "time": "20 minutes",
    "agents": [],
    "steps": [
     "Install the CLI with curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash",
     "Follow the Quickstart to configure a provider such as Anthropic, OpenAI or Ollama",
     "Start a session in your project folder",
     "Describe a task such as writing a script or migrating code",
     "Review and approve its changes"
    ],
    "md": "https://dedupedai.com/use-cases/aaif-goose-goose/install-goose-cli-and-run-a-task/index.md"
   }
  }
 ]
}
