Talk to me

Claude Code, Cursor or Codex: which coding agent for which job in 2026?

Claude Code, Cursor and OpenAI Codex compared on five real jobs: big refactors, quick edits, cloud tasks, pull request review and a new codebase. With the limits from each tool’s own docs, October 2026.

Three places a coding agent can work: a terminal, a code editor and the cloud with a stack of parallel tasks.
Figure 1. Three places a coding agent works: the terminal, the editor and the cloud.

Pick by the job, and by where you already work. For long, multi-step work in a real repo, I use Claude Code. For quick edits while I read code, an editor agent like Cursor is the fastest. For many small tasks in parallel, I send them to a cloud agent: Codex was built for that, and Cursor and Claude Code do it now too.

I use all three every day. They run side by side in tabs in my own Mac app, VShell, and my agent team is spread across them.

Claude Code vs Cursor vs Codex in one table

All three read your code, edit files, run commands and check their own work. They differ in where they live and how they like to work.

Figure 2. Claude Code, Cursor and Codex side by side. Entry plans from the official pricing pages, 15 October 2026.

For me the rules file column matters most. All three read AGENTS.md now, so one file can serve a team that uses two tools. How to write it is in my article on a good CLAUDE.md.

Which coding agent for which job

JobClaude CodeCursorCodex
Big refactor, long tasksubagents, 1M contextProjects (beta)worktrees, subagents
Quick edits while you readVS Code extensionbuilt for itIDE extension
Many small tasks in the cloudcloud sessions, GitHub onlycloud VMs, API pricesone workspace per task
Review a pull requestTeam and EnterpriseBugbot@codex review
Learn a new codebasepick where you readpick where you readpick where you read

My marks from daily use, checked against each tool’s docs, October 2026.

Figure 3. Five coding jobs and three coding agents, with one to three dots for how well each agent fits each job.

These are my marks from daily use, checked against each tool’s docs. Three dots: the one I reach for first. Two dots: it does the job well, but it is not my first pick.

Video, 2 min 43 s, two voices, quiet music. A renovation company owner with three kinds of work on her booking app, and a software engineer who matches each job to the terminal, the editor or the cloud. Open the video page.

Big refactor or a long, multi-step task

I reach for Claude Code. It works in my real repo and can split the work. A lead agent hands parts to subagents, each with its own context and, if I ask, its own copy of the repo in a git worktree. Opus 5.5 takes up to 1 million tokens of context, and Anthropic says its Fable models are “suited to tasks larger than a single sitting”.

Watch out: subagents draw on the same usage limit as the main session. A big refactor can use up a five-hour window.

Quick edits while you read code

I reach for the editor. To read a file, change three lines and see the diff right there, an editor agent is faster. Cursor is built for this. Codex and Claude Code have VS Code extensions too, and OpenAI’s own advice is to “keep quick iterations local”.

Watch out: on Cursor’s new US$8 Plus plan you get Grok models only. Claude and GPT models start at Premium, and you pay their API list price from the first request.

Many small tasks in parallel, in the cloud

Any of the three can do it now. Codex started in May 2025 as a cloud agent with one sandbox per task, and each task “can keep working while your computer is asleep”. Cursor runs “as many agents as you want in parallel” in cloud VMs. Claude Code’s cloud sessions keep running after you close your laptop.

The differences are cost and hosting. Cursor charges cloud agents at API prices and asks you to set a spend limit first. Claude’s cloud sessions need GitHub, while Cursor also clones from GitLab, Azure DevOps and Bitbucket. I give the cloud only small, clear tasks with a test that proves them, like “add the missing test for the refund rule”.

Review of a pull request

Codex or Cursor’s Bugbot, then a person. Codex review on GitHub is generally available: write “@codex review” in the pull request. Bugbot runs on every update of a pull request, on GitHub, GitLab, Bitbucket and Azure DevOps. Claude’s managed Code Review is a research preview for Team and Enterprise, at US$15 to 25 per review on average, billed on top of the plan. On any plan you can mention @claude in a pull request through its GitHub Action.

None of these bots approve or block your merge by default. That part stays with a person. How I check AI-written code is in my article on checking AI code quality.

Learning a new codebase

All three are good here. Pick the one where you like to read. None of them builds a vector index of your code now. They search it with fast text search, much like you would with grep. Cursor stopped storing embeddings for search in July 2026 (its docs). I like to ask for a map of the modules and the path of one request, with the agent reading only. More in my article on RAG in daily coding.

Honest limits of each, from their own docs

Claude Code

  • from the docsClaude models only
  • from the docsOne usage pool with Claude chat: 5-hour window + weekly limit
  • from the docsAuto mode is the default since 14 Aug 2026
  • from the docsCloud sessions need GitHub

Cursor

  • from the docsPlus plan: Grok models only
  • from the docsClaude and GPT at API prices, Premium and up
  • from the docsCloud agents billed at API prices
  • from the docsTurn Privacy Mode on

Codex

  • from the docsOpenAI models only
  • from the docsModels change fast (GPT-5.5 left on 14 Oct 2026)
  • from the docsPlus: 15 to 160 Sol messages per 5 hours
  • from the docsNetwork off by default
Figure 4. The main limits of Claude Code, Cursor and Codex, taken from each tool’s own documentation in October 2026.

Claude Code. It runs Claude models only. Claude chat and Claude Code share one usage pool, with a five-hour window and a weekly limit on paid plans. Since 14 August 2026, auto mode is the default for new sessions on Pro, Max and Team. In auto mode, “a classifier reviews actions instead of you”. It is faster. Know that it is on.

Cursor. SpaceX bought Cursor, and the deal closed on 14 August 2026. Cursor is now sold inside “The X Subscription” with Grok and X. The old Pro and Teams plans are “legacy” and keep working. With Privacy Mode off, Cursor “may use and store codebase data” to train its models. Turn it on.

Codex. It runs OpenAI models only, and they change fast: GPT-5.5 left Codex on 14 October 2026. On the Plus plan you get 15 to 160 local messages with GPT-6.1 Sol per five hours, and “cloud tasks may use more of your allowance”. The network is off by default. That is safe, but a task that must install packages needs it on.

In daily use, the limit I hit most is usage. When one account runs low in the middle of a task, I move the task to another account or another tool.

What matters more than the tool

Rules file

Tests it can run

the agent

Small tasks

Your review

Figure 5. Swap the agent and these four still decide the result: a rules file, tests it can run, small tasks and your review.

A 2026 study of 7,156 agent pull requests found that the kind of task mattered a lot: 82.1% of documentation changes were accepted, against 66.1% of new features. In the authors’ words, “No single agent performs best across all task types”.

Two Carnegie Mellon studies of open-source projects found that the speed boost after a team adopts Cursor or an agent fades, while linter warnings and code complexity stay higher. Tests and review keep that in check. Boris Cherny, who created Claude Code, said that giving the agent a way to verify its work will “2-3x the quality of the final result” (quoted by paddo.dev).

So four things decide most of my results, whatever the tool: a short rules file, tests the agent can run, tasks small enough to review in one sitting, and a person who reads the diff. Setting this up for a team’s agents is part of what my team does; here is how we work.

Many teams use two of them

  1. Editor agentread, steer, small edits
  2. bigger than a quick editTerminal agentthe long task, on a branch
  3. split into small ticketsCloud agentssmall tasks in parallel

Cloud back to editor: review the diff

Shared: AGENTS.md, tests, CI

Figure 6. How one team can use two or three coding agents together: an editor agent, a terminal agent and cloud agents, sharing one AGENTS.md file and the same tests.

In The Pragmatic Engineer’s survey of 906 engineers (February 2026), 70% used two to four AI tools and only 15% used one. Andrej Karpathy described his setup in January 2026: “a small few CC sessions on the left” (CC is Claude Code) “and an IDE on the right for viewing the code + manual edits”.

In my agent team, the developer agent runs on Claude Code and the research agent on Codex. One rule makes the mix work: each agent gets its own branch and its own part of the code. In a July 2026 study of pull requests open at the same time, two from the same agent clashed in 19.8% of pairs, and two from different agents in 41.7%.

How many developers use each one: 2025, 2026 and a guess for 2027

Coding agents used at workShare of professional developers, JetBrains surveys. The 2027 zone is a guess, with no numbers.

  • Claude Code
  • Codex
  • Cursor
  • GitHub Copilot
Use of coding agents at work, JetBrains, mid-2025 to mid-2026 Claude Code rose from about 3% in April to June 2025 to 18% in January 2026 and 39% in May to July 2026. Codex rose from 3% to 16%. Cursor fell from 18% to 12% and GitHub Copilot from 29% to 21%. 2027 is a guess zone with no numbers. 0%10%20%30%40%50% Apr-Jun 2025Jan 2026May-Jul 20262027 guess GitHub Copilot, Jan 2026: 29%GitHub Copilot, May-Jul 2026: 21% Cursor, Jan 2026: 18%Cursor, May-Jul 2026: 12% Codex, Jan 2026: 3%Codex, May-Jul 2026: 16% Claude Code, Apr-Jun 2025: about 3%Claude Code, Jan 2026: 18%Claude Code, May-Jul 2026: 39% Claude Code 39%Copilot 21%Codex 16%Cursor 12%

Source: JetBrains Research, AI Pulse surveys (Apr 2026, over 10,000 developers; Aug 2026, over 15,000 developers). Use at work. JetBrains gives no 2025 figure for Codex, Cursor or Copilot.

Figure 7. Use of coding agents at work. Claude Code rose from about 3% in mid-2025 to 18% in January 2026 and 39% in mid-2026. Codex rose from 3% to 16%. Cursor fell from 18% to 12% and GitHub Copilot from 29% to 21%.

The two surveys ask different people different questions, so the levels differ. The order is the same in both: Claude Code, Copilot, Codex, Cursor.

How to choose in 10 minutes

  1. Minutes 0 to 2: where do you work all day? In the terminal, start with Claude Code or the Codex CLI. In an editor, start with Cursor, or the Codex or Claude Code extension in VS Code.
  2. Minutes 2 to 4: which models do you want? Claude Code runs Claude. Codex runs OpenAI. Cursor runs its own models and Grok, and others at API prices on Premium and up.
  3. Minutes 4 to 7: check the rules for your code. Where is it hosted? Claude’s cloud sessions need GitHub. Must your code stay out of training? Use a business plan, or Privacy Mode in Cursor.
  4. Minutes 7 to 10: give one real ticket to two of them. Same AGENTS.md, same task, separate branches. Compare the diff and the test run, not the chat.
Figure 8. A 10-minute checklist on a clock face for choosing a coding agent: where you work, which models, rules for your code, and one real ticket in two agents.

Questions people ask

Is Claude Code better than Cursor?

For long tasks in a real repo, I think so. For quick edits while you read, Cursor is faster. On Terminal-Bench 4.0, a public test of terminal tasks, Claude Code with Opus 5.5 scored 64.8% and Codex with GPT-6 Astra 58.2%. Cursor has no entry, and the vendors ran the top entries themselves.

Is Codex the same as ChatGPT?

Codex is OpenAI’s coding agent. It comes with paid ChatGPT plans, and since July 2026 its desktop app is part of the ChatGPT desktop app.

Can I use Claude models inside Cursor?

Yes, on Premium and above, at the model’s API list price, paid from prepaid credit. The Plus plan has Grok models only.

Which one is safest for company code?

Anthropic does not train on Claude Code use under commercial terms. ChatGPT Business does not train on your data by default. Cursor does not train when Privacy Mode is on. Then add a sandbox and keep secrets out of reach. My CLAUDE.md article shows how to block the actions that must never happen.

If you want coding agents set up for your team, with one rules file and real checks, see how I can help or tell me about your project.

Have an app idea, a stuck app, or a daily job you want an AI agent to do?

Write three lines. I reply within one working day with a plain answer.

Sources. Anthropic: Claude Code docs (overview, agent view, subagents, Claude Code on the web, memory, code review, GitHub Actions, model configuration, permissions, what’s new, costs, data usage), Claude pricing page (read 15 Oct 2026), “Introducing Claude 4” (22 May 2025), “Claude Code on the web” (20 Oct 2025), Claude Opus 5.5 (22 Sep 2026), Series G post (12 Feb 2026). Cursor: docs (cloud agents, CLI, rules, Bugbot, models), pricing page (read 15 Oct 2026), changelog (2.0, 29 Oct 2025; 3.0, 2 Apr 2026), “Joining SpaceX” (14 Aug 2026), Cursor forum (21 Jul 2026). OpenAI: Codex docs (CLI, IDE, cloud, AGENTS.md, code review, approvals and security, models), Codex pricing page (read 15 Oct 2026), Codex changelog, “Introducing Codex” (16 May 2025). Stack Overflow Developer Survey 2025 and 2026 (6 Oct 2026). JetBrains Research (Apr 2026, Aug 2026). The Pragmatic Engineer, AI tooling 2026 (3 Mar 2026). Terminal-Bench 4.0 leaderboard (6 Oct 2026). Pinna et al., arXiv 2602.08915. He et al., arXiv 2511.04427. Agarwal et al., arXiv 2601.13597. arXiv 2607.04697 (parallel agent PRs). Andrej Karpathy on X (26 Jan 2026). Addy Osmani (2 Jul 2026). Boris Cherny via paddo.dev (5 Jan 2026).