Claude Code, OpenAI Codex, Cursor, GitHub Copilot cloud agent, Devin Desktop, Cline, OpenCode and Amp ranked on autonomy, where they run, model choice and how you control what they execute.
AI coding agents now plan changes, edit many files, run tests and open pull requests with little supervision. The leaders differ less on raw model quality than on fit, and what decides fit is where the agent works, terminal, editor or a cloud runner that returns a pull request, and how well you can bound what it executes.
This guide ranks eight agents for professional backend and full-stack work on those two questions, with model choice and licence as the tie-breakers.
What a team needs from an AI coding agent:
Claude Code is Anthropic's agent for the terminal, with IDE extensions and a web version. It reads the codebase before it edits, handles changes that span many files in large repositories, and follows project instructions from a CLAUDE.md file. It installs with curl -fsSL https://claude.ai/install.sh | bash, and claude in a repository starts a session. Teams that buy models through their cloud can run it on Amazon Bedrock or Google Vertex AI.
Its controls are the strongest part of the case. Permission rules in settings.json allow or deny commands, deny rules win over allow rules, and an optional sandbox limits what shell commands can reach. MCP servers, subagents and hooks extend it.
Good to know: it needs a Pro, Max, Team or Enterprise subscription or a Console account with API billing, and the free Claude plan does not include it. It uses Anthropic models only.
Codex runs as an open source CLI under the Apache 2.0 licence, in IDEs, and as Codex Cloud, which works on tasks in remote sandboxes and returns changes for review. The CLI installs with npm install -g @openai/codex or brew install --cask codex, and codex app opens the desktop app. Approval modes decide which commands and edits run without asking.
The draw is moving work between your terminal and several cloud tasks without switching tools. You sign in with ChatGPT on a Plus, Pro, Business, Edu or Enterprise plan, or use an API key. Codex Cloud is proprietary, and the agent is built around OpenAI models.
Cursor is an AI code editor with an agent mode and Cloud Agents, formerly Background Agents, that run tasks remotely. Run modes and a terminal allowlist in .cursor/permissions.json decide which commands run on their own, and models come from several providers. It suits developers who want to watch and review each edit as it happens. Terminal-first workflows fit Claude Code or Codex better.
Copilot cloud agent works from GitHub: assign it an issue and it plans the change in a GitHub Actions environment and opens a pull request, and you ask for changes with @copilot on the PR. A .github/workflows/copilot-setup-steps.yml workflow installs dependencies so the agent can build and test. Every change arrives through the review process the team already has, which makes it the easiest agent to adopt on GitHub. It fits well-scoped issues more than exploratory work.
Devin Desktop is the editor formerly called Windsurf, renamed by Cognition in June 2026. Devin Local is its default agent, the older Cascade agent was removed in version 3.9.19 on September 8, 2026, and the editor supports the Agent Client Protocol for other agents. It links to Cognition's cloud Devin. The product changed names and default agents in 2026, so older guides and settings may not match.
Cline is an open source agent for VS Code under the Apache 2.0 licence, with a JetBrains plugin and an SDK. It works with your own API keys for any major provider and asks for approval before edits and commands by default. It runs commands in your terminal and watches the output, which lets it react to failing builds and tests during a task, and plan and act modes separate thinking from editing.
The extension is free and you pay the model provider for tokens, so cost depends on the provider you pick. Per-action approvals slow long tasks unless you relax them.
OpenCode is an MIT-licensed agent for the terminal, with desktop and IDE versions, that works with many model providers. It installs with curl -fsSL https://opencode.ai/v2/install | bash or brew install opencode, and opencode in a repository starts the terminal interface. Permissions are configurable. It moves fast, and teams that pin versions avoid surprises between releases.
Amp, spun out of Sourcegraph in December 2025, is an agent for the terminal and editors with several model providers and thread sharing for teams. It can be used for free with your own keys and compute. As a new independent company, its features are still settling.
Public benchmarks such as SWE-bench, which tests fixes to real GitHub issues, and Terminal-Bench, which tests tasks in a terminal, are useful for comparing models, and results on your own repository matter more. For open source agents, the Apache 2.0 licence allows commercial use and modification with a patent grant.
Start from where you want the agent to work. Terminal agents suit developers who live in a shell and want large changes, editors suit people who review every edit as it happens, and cloud agents suit well-scoped tasks that come back as pull requests. Then decide on models: a single vendor's agent tends to be tuned for its models, while open source agents let you switch providers and control cost. Check how each agent limits shell commands, network access and file writes before you give it a repository with production credentials nearby.
An agent that writes backend code also writes the assumptions behind it: a database, a queue, a bucket. Those have to exist somewhere, and the agent works best when it can run them locally before a deploy. One option is Encore, an open source infrastructure SDK for TypeScript and Go where the agent declares databases and Pub/Sub topics in code, tests them with encore run, and Encore provisions them in your own AWS or GCP account on push. Its MCP server gives the agent local traces and endpoint calls.
Run in your terminal to get started locally.
For most developers, Claude Code is the strongest general agent for multi-file changes from the terminal, with OpenAI Codex close behind and Cursor the best fit for working inside an editor. The right choice depends on where you work and which models you want.
Cline is Apache 2.0, OpenCode is MIT and the Codex CLI is Apache 2.0. Claude Code, Cursor, Copilot and Devin Desktop are proprietary.
Codex Cloud, Cursor Cloud Agents and the GitHub Copilot cloud agent run tasks in remote environments and return a branch or pull request. Copilot starts when you assign it an issue.
Deploy to your cloud on AWS and Google Cloud
without managing infrastructure
Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.