Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Comparison

Claude Code vs Codex vs Cursor

One task walked through in Claude Code, Codex and Cursor, plus where each runs, how it is priced, its skills and MCP support, and who each one suits.

By 10 min readUpdated
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

Claude Code, Codex and Cursor are the three coding agents most of our readers choose between. All three can read a repository, plan a change, edit files across a codebase, run tests and explain what they did. All three read AGENTS.md, load Agent Skills and connect to MCP servers. The differences are in where they run, how they ask for permission, how you pay, and which models you get.

The short answer: choose Claude Code if you work in the terminal and want fine control through permission rules and hooks. Choose Codex if you want an operating-system sandbox by default and background cloud tasks that come back as pull requests. Choose Cursor if you want the agent inside a full editor with visual diffs. Many developers use two.

This comparison was checked against each product’s documentation and pricing pages on 20 November 2026, and the recent changes and scheduled runs below against each vendor’s own changelog and documentation on 25 November 2026. We do not publish benchmark scores or “who won” timings from single runs: agent results vary run to run and by model, and a number from our repository says little about yours. Run the task below in your own codebase instead.

At a glance

Claude Code Codex Cursor
Made by Anthropic OpenAI Anysphere
Main form Terminal agent, plus IDE extensions Terminal agent, plus IDE extension, desktop app and cloud tasks AI code editor (VS Code-based), plus the Agents Window, CLI and cloud agents
Other surfaces VS Code and JetBrains extensions, desktop app, web, Slack IDE extension, ChatGPT desktop and web, cloud tasks, GitHub code review, Slack Cloud agents, automations, Bugbot code review (higher tiers)
Models Claude models OpenAI models Models in the included allowance (shared with Grok), plus third-party models on higher tiers at API list price
How you pay Claude subscription (Pro and above) or API usage ChatGPT plan or API usage Cursor subscription with a usage allowance that refreshes weekly, plus top-ups
Open source No CLI is open source (Apache-2.0) No
Instruction file CLAUDE.md; reads AGENTS.md when there is no CLAUDE.md AGENTS.md AGENTS.md, .cursor/rules/*.mdc
Agent Skills folder .claude/skills/ .agents/skills/ .cursor/skills/ or .agents/skills/ (also reads .claude/skills/)
MCP config claude mcp add, .mcp.json codex mcp add, ~/.codex/config.toml .cursor/mcp.json
Safety model Permission modes and rules, optional OS sandbox, hooks OS sandbox by default with approval policies Approval prompts for commands and MCP tools; run modes
Scheduled runs Cloud scheduled tasks (formerly routines): schedule, API or GitHub triggers, at most hourly Scheduled tasks in the Codex app, locally or in a worktree, results in a Scheduled inbox Automations: cloud agents on a schedule or on GitHub, Slack, Linear or webhook events

The same task in each

The task: in a small web app, the signup form accepts an empty display name. Make it required, show an error consistent with the email field, and add a test. A good agent should find the form and its validation, change both client and server checks if both exist, write a test that fails without the change, and run the suite.

Claude Code

cd your-app && claude
/plan the signup form accepts an empty display name. Make it required,
show the same error style as the email field, and add a test.

Plan mode explores read-only and comes back with a plan. You approve it, choose whether to approve each edit, and Claude runs your tests (asking first, unless you pre-approved the test command). /diff shows the changes; /rewind rolls back code and conversation if it went wrong.

What it is like: conversational and explicit. You see each tool call and approve what your permission rules do not cover. Hooks and permission rules give fine control. It works the same in a terminal over SSH as on a laptop.

Codex

cd your-app && codex
Plan first, then implement: the signup form accepts an empty display name.
Make it required, match the email field's error style, and add a test.

Codex runs commands inside an OS sandbox. In a Git repository it starts with workspace writes allowed and asks before stepping outside the sandbox, for example to use the network. /review reviews the working tree. For the same task as a background job, you can send it to a cloud task from the IDE extension or ChatGPT and get a diff or pull request back.

What it is like: the sandbox-first design means fewer prompts for ordinary edits and test runs, with hard limits enforced by the OS rather than by rules. Cloud tasks suit work you want to hand off and review later.

Cursor

Open the folder in Cursor, open the agent panel, switch to Plan mode with Shift+Tab, and give the same request.

Cursor shows its plan and then edits inline in the editor, where you review each change as a diff in the file. Checkpoints in the chat let you restore files. Terminal commands ask for approval unless you have set them to run automatically.

What it is like: the review happens in the editor you are already using, with completions, chat and the agent side by side. Cloud agents (on higher tiers) run tasks remotely and return branches.

Skills, MCP and instruction files

All three support the open Agent Skills format, so a SKILL.md folder you write once can work in each. The differences are in folders and extras:

  • Claude Code reads .claude/skills/ and supports extra frontmatter fields (context: fork, allowed-tools, hooks) that other agents ignore.
  • Codex reads .agents/skills/ and adds optional agents/openai.yaml metadata.
  • Cursor reads its own folder plus .agents/skills/ and .claude/skills/, which makes it the easiest of the three to share skills with.

For one skill folder that loads in all three, see Port a skill across agents. The Agent Skills cheat sheet lists the paths.

MCP works in all three with slightly different config syntax; Connect MCP servers to Claude Code, Codex and Cursor shows each. For instruction files, write AGENTS.md once; Claude Code reads it when there is no CLAUDE.md, or you can import it from one with @AGENTS.md.

Pricing models, not prices

Prices change too often to print, so compare the shape:

  • Claude Code comes with Claude subscriptions, which have usage limits that reset on rolling windows, or bills per token through the API (useful for CI and for teams that want spend reports per workspace).
  • Codex comes with ChatGPT plans or bills per token through the API. The CLI itself is free and open source.
  • Cursor is a subscription with an included usage allowance, refreshed weekly, and optional top-ups. Third-party models on higher tiers are billed at API list price.

For heavy daily use, the subscription routes are usually cheaper than paying per token. For automation in CI, API keys with workspace spend limits are easier to control. Check current plans on each vendor’s pricing page.

Scheduled and background runs

All three now run agent tasks with nobody at the keyboard, and they differ in where the run happens and what it can reach.

  • Claude Code cloud scheduled tasks, formerly called routines, are a saved prompt, repositories and connectors that run on Anthropic’s infrastructure, so they keep working when your laptop is closed. Triggers are a schedule, an HTTP call to the task’s own endpoint, or a GitHub event. You create them with /schedule, on the web or in the Desktop app; cron expressions that run more often than once an hour are rejected, and each run starts in auto mode. The feature is in research preview (Claude Code docs).
  • Codex scheduled tasks run from the app, either as a fresh chat per run or by returning to an existing thread, and report into a Scheduled view that acts as an inbox. Tasks that need local files need the computer on and the app running; in a Git repository they can use a separate worktree. OpenAI warns that full access in background tasks “carry elevated risk” and recommends workspace-write (OpenAI docs).
  • Cursor Automations start cloud agents on a schedule or a cron expression, or on GitHub, Slack, Linear and webhook events. Runs are billed as cloud agent usage, and an optional memory lets the agent keep notes between runs of the same automation (Cursor docs).

If unattended work is the main reason you are choosing, the deciding question is where the run executes. Cloud runs (Claude Code, Cursor) need no machine of yours but only reach what you connect to them. Local runs (Codex scheduled tasks on your files) can use your environment, which is also what makes their sandbox setting matter. Agent observability covers what to record when nobody watches a run.

Recent changes, from each vendor’s changelog

All three ship weekly, so treat this list as a snapshot and check the linked changelogs before you decide.

Claude Code (changelog):

  • Code Mode (experimental). With CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 on v2.1.323 or later, Claude writes JavaScript that makes several tool calls in one step instead of asking for each one. It changes how auto mode, hooks and the sandbox see tool calls; Code Mode and programmatic tool calling explains what to check first.
  • v2.1.331 (23 November 2026) added Code Mode for terminal sessions on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude Platform on AWS, and a batch of VS Code extension additions such as “Fix with Claude Code” on errors and failed tests.

Codex (changelog):

  • CLI 0.171.0 (20 November 2026) added GPT-6.2 Sol and Astra to the model catalogue, with Sol as the default selection, turned on the TUI workspace by default, and added a --remote option to codex exec that starts or resumes non-interactive sessions on an existing app server.
  • CLI 0.172.0 (24 November 2026) added Tab completion for slash-command arguments and starts optional stdio MCP servers on their first tool call.
  • Codex app 26.1120 (23 November 2026) previews CSV files as tables.

Cursor (changelog):

  • Agents Window. Cursor 3, released on 2 April 2026, made the Agents Window generally available: one place to run local, cloud and remote agents, each in its own Git worktree (Cursor docs).
  • Voice chat with agents (6 November 2026) in the Agents Window, the IDE, the web and Cursor for iOS, running on Grok Voice.
  • Build live apps (5 November 2026): a cloud agent scaffolds, hosts and shares a web app, on paid plans with cloud agents enabled.
  • Agent SDK (20 October 2026): define an agent as a code project, test it with evals, and deploy it to Cursor or your own infrastructure.

None of these changes the recommendation below. Code Mode is the one to watch if you rely on Claude Code hooks for safety.

Who each one suits

Choose Claude Code if you live in the terminal or want the same agent across terminal, IDE, desktop and CI; you want fine-grained control through permission rules and hooks; and you are happy with Claude models. Subagents, hooks and the extra skill fields are worth having once you rely on it daily.

Choose Codex if you want sandboxing enforced by the operating system as the default, an open-source CLI you can inspect, or background cloud tasks that come back as pull requests; or your organisation already standardises on ChatGPT and OpenAI models.

Choose Cursor if you want the agent inside a full editor with completions, inline diffs and checkpoints, prefer reviewing changes visually, or want to switch between model providers in one tool.

Many developers use two: an editor (Cursor, or VS Code with an extension) for day-to-day work, and a terminal agent for long tasks, scripted runs and CI.

How to decide for your team

Run a short trial with a real task list:

  1. Pick five tasks from your backlog: a bug fix, a small feature, a refactor, a test-writing task and a “find out how X works” question.
  2. Run each in two or three agents, from the same commit, with the same AGENTS.md.
  3. Record for each run: did the change work, how many corrections it needed, how long the review took, and what it cost.
  4. Have the person who would normally review the code judge the diffs without knowing which agent made them.

That takes a day and tells you more than any published comparison, including this one. Evaluate coding agents on your own repository turns it into a script you can rerun.

Next steps

Covers

Back to top