I Picked a Tool Based on "78% First-Pass Accuracy" and Got It Wrong
Last year I chose an AI coding tool by reading the numbers in comparison articles. First-pass accuracy percentages. "About 12% faster on simple tasks." When numbers are lined up in a table, it feels like you have done your research.
Then I ran both tools against my own repositories, and almost none of it held. The reason was not mysterious. The tasks in those benchmarks had nothing to do with what I actually do every day — bouncing between a Kotlin Android app and a Next.js site. That combination appears in no benchmark suite anywhere.
I do not think the numbers were fabricated. But a number produced in someone else's measurement environment does not predict yours.
What follows is limited to things you can check against official pages, plus a procedure for measuring the rest yourself. I rewrote the pricing section after Cursor overhauled how it bills in November.
The Short Version
If I had to put it in one line: pick based on when you want to review, not on which tool is "better." With billing as it stands in November 2026, the decision mostly falls out of this table.
| Your situation | Lean toward | Why |
|---|---|---|
| You run Claude models for long stretches every day | Claude Code (on a Claude subscription) | Usage comes out of your plan's allowance. In Cursor, Claude bills at API list price from the very first request |
| You want to approve diffs one step at a time, or can't give up VS Code extensions | Cursor | The whole design centers on accepting and rejecting suggestions inside the editor |
| Grok or Composer is good enough for most of your work | Cursor (Plus or Premium) | The weekly usage pool covers Cursor's own models |
| You want it running unattended in CI, over SSH, or inside a container | Claude Code | It is built around the terminal and non-interactive mode (-p) |
| Several of the above | Both, in separate working trees | See the section on boundaries near the end |
If the table doesn't settle it for you, the second half has a script that runs the same task from your own history through both CLIs.
The Real Difference Is When Review Happens
Claude Code is Anthropic's agentic coding tool. You can drive it from the terminal, VS Code, JetBrains, or the desktop app. Hand it a task and it reads files, writes code, runs commands, and handles Git operations on its own. Your job shifts toward describing intent and reviewing results.
Cursor is an AI-native IDE built on VS Code. Tab completion, inline chat, and agent-driven multi-file edits are woven into the editing surface, and you confirm changes as they happen. You stay in the driver's seat. Cursor also ships a terminal command, agent (the Cursor CLI), which the measurement section uses.
# Claude Code: hand over a task from the terminal
claude "Add user authentication to this project with
JWT-based login, logout, and token refresh,
plus tests for each."
# → creates and edits files, then runs the tests on its own
# Cursor: inline chat inside the editor
# Press Cmd+K and ask, for the selection, "add error handling to this function"
# → the diff appears inline; Accept or Reject to applyThis is not a matter of taste. It is a question of when review happens. Claude Code has you review after the work is done; Cursor has you review each step. Which rhythm keeps you focused is not something a benchmark can tell you.
Pricing: Look at the Shape of Billing, Not the Sticker (as of November 2026)
This is the part of the article most likely to go stale. Everything below was checked in November 2026 against the Claude pricing page, the Cursor pricing page, Cursor's Models & Pricing docs, and the Claude Platform pricing docs.
Cursor is now sold as part of "The X Subscription," one subscription covering Grok, Cursor, and X. The Pro $20 / Pro+ $60 / Ultra $200 lineup I described earlier is now classed as a legacy plan; if you are on it, it keeps working as before. For new sign-ups, the picture looks like this.
| Dimension | Claude (including Claude Code) | Cursor (The X Subscription) |
|---|---|---|
| Main individual plans | Pro $20 ($17/month billed annually) / Max $100 / Ultra $200 | Plus $8 / Premium $30 / Super $100 / Ultra $200 |
| What the plan includes | Limits every 5 hours and every week. Max gives 5x Pro; Ultra gives 10x Pro weekly and no 5-hour limit for verified accounts | A weekly pool for Cursor's own models (Grok 4.7 / 4.6 / 4.5, Composer 2.5), shared with the Grok apps |
| Using Claude models | Inside your plan's allowance | Outside the pool. On Premium and above, billed at API list price from prepaid credit. Not available on Plus or Free |
| Claude API rates (per million tokens) | Sonnet 5.5 at $2 in / $10 out; Opus 5.5 at $4 in / $20 out | Listed at the same rates inside Cursor |
Here is how I read it. If Claude is your main model, Cursor charges you API rates for every one of those requests, so the real comparison is "my Claude subscription's allowance" against "how fast I burn Cursor credit." If Grok or Composer handles most of your work, on the other hand, Cursor's weekly pool goes a long way.
Two $200 plans run out in different places. Claude's Ultra hits a weekly ceiling; Cursor's Ultra has two places to run dry — the weekly pool and your prepaid balance.
Three Misreadings Worth Correcting
- "A paid Cursor plan means unlimited Claude." On the new plans, third-party models such as Claude, GPT, and Gemini sit outside the included usage. On Premium and above they bill at API list price from the first request (Cursor's Models & Pricing docs). Legacy plans work differently.
- "Claude Code only works on pay-as-you-go API billing." It works on Pro, Max, Ultra, and other subscriptions. You pay per token when you use an API key, or when you go past your allowance and draw on usage credits.
- "Just use Max Mode in Cursor for long context." Max Mode now exists only on the legacy request-based plans. On Plus, Grok 4.7 is fixed at a 256k context window.
Context and Model Choice
In Claude Code, current models such as Sonnet 5 and later and Opus 4.7 and later run with a 1M-token context window by default, no [1m] suffix needed. The Claude Platform price list also bills Claude 4.6 and later models (Haiku 5.5 excepted) at the same per-token rate all the way to 1M. The default model on Pro, Max, Ultra, Team, Enterprise, and the API is Opus 5.5 (all from Claude Code's model configuration docs).
Cursor indexes your whole project and lets you point at exactly the files you need with @codebase or @file. When you already know where the change goes, that precision is fast. How much context a single request can carry depends on the model and the plan you pick.
Cursor wins on model choice. On Premium and above you can switch between Claude, GPT, Gemini, and Grok per task. Claude Code sticks to Anthropic's models, balances cost and quality by moving between Sonnet and Opus, and reaches outside tools through MCP.
Agent Features, and Writing Hooks Correctly
Claude Code's autonomous execution pays off once you pair it with Hooks. I keep seeing setups that misread the documented syntax, so here is the correct shape.
// .claude/settings.json
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"if": "Bash(git commit *)",
"command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/pre-commit-check.sh",
"onFailure": "block"
}
]
}
]
}
}There are three levels: the event name (PreToolUse), a matcher group that narrows when it fires, and an array of hook handlers that actually run. Two mistakes come up again and again.
The first is putting permission-rule syntax in matcher, as in Bash(git commit*). matcher compares against tool names only. Any character other than letters, digits, _, -, spaces, commas, and pipes makes it a JavaScript regular expression, so Bash(git commit*) never matches the tool named Bash, and the hook simply never runs. To filter on the command itself, use the handler's if field.
The second is writing the handler key as "hook". It is "hooks", an array, and each entry has a type and a command.
And to stop a tool call from PreToolUse, exit with code 2.
#!/bin/bash
# .claude/hooks/pre-commit-check.sh
npm test && npm run lint || {
echo "Tests or lint did not pass" >&2
exit 2 # 2 is what blocks the tool call
}
exit 0By default, exit code 1 does not block. Claude Code treats anything other than 0 and 2 as a non-blocking error and carries on. Write 1 out of habit and you get a gate that looks like a gate and lets everything through. I shipped exactly that once.
These days, adding "onFailure": "block" as in the example above (Claude Code v2.1.295 or later) means a PreToolUse hook that can't start, times out, or exits with something other than 2 also stops the tool call. The docs describe if filtering as best-effort, though, so anything that must never run belongs in a permissions deny rule rather than a hook.
Cursor's agent mode can also run terminal commands and edit files on its own. Because a diff-review step sits in the middle, running a task to completion unattended still leans toward Claude Code.
Why "About 12% Faster" Does Not Transfer to You
Back to where I started. Numbers like "about 12% faster on simple tasks" or "78% versus 73% first-pass accuracy" lose almost all their value as decision inputs the moment they are quoted without measurement conditions.
Three reasons. First, models turn over every few weeks; there is no guarantee the model measured is the one you use today. Second, the task set is different. A benchmark's "simple bug fix" is usually one file in one language, and if your work is not like that, the ratio does not carry over. Third, repositories differ. How config files are scattered, how long tests take, how thick the type definitions are — these drive elapsed time directly, and benchmarks flatten them out.
When you see a percentage, check whether it comes with a date, a model name, a task list, and a trial count. If it doesn't, it says nothing about your environment.
A Minimal Procedure for Measuring on Your Own Repository
What I settled on is building tasks from my own recent commits. It takes more effort than reading someone else's benchmark, but the numbers come from my environment, so I can act on them.
1. Pull candidate tasks from your history
This script finds past commits of a workable size.
#!/bin/bash
# pick-bench-tasks.sh — extract candidate comparison tasks from recent history
# Commits touching 2-8 files and 40-400 lines are the easiest to work with
git log --no-merges --since="3 months ago" --format='%H %s' | while read sha subject; do
files=$(git show --stat --format='' "$sha" | tail -1 | grep -oE '^ [0-9]+' | tr -d ' ')
lines=$(git show --numstat --format='' "$sha" | awk '{a+=$1+$2} END {print a+0}')
[ -z "$files" ] && continue
if [ "$files" -ge 2 ] && [ "$files" -le 8 ] && [ "$lines" -ge 40 ] && [ "$lines" -le 400 ]; then
printf '%s\t%s files\t%s lines\t%s\n' "${sha:0:8}" "$files" "$lines" "$subject"
fi
done | head -20Pick one, check out its parent commit, and hand the commit message to the tool as the instruction. The answer is sitting in your git history, so you can judge the output yourself. That is the biggest advantage of measuring this way.
2. Run both CLIs under the same conditions
I used to time the Cursor side by hand in the editor. Now the Cursor CLI's agent -p with --output-format json returns a JSON object that includes elapsed time (duration_ms). Claude Code's claude -p --output-format json returns total_cost_usd and the turn count. Calling both from one script makes it much easier to keep conditions equal.
#!/bin/bash
# run-bench.sh <claude|cursor> <parent-commit-SHA> <instruction>
# Appends one row per run to bench-results.tsv
set -euo pipefail
TOOL="$1"; PARENT="$2"; PROMPT="$3"
ROOT="$(git rev-parse --show-toplevel)"
WT="$ROOT/../bench-${TOOL}-$(date +%s)"
git worktree add --detach "$WT" "$PARENT" >/dev/null
cd "$WT"
START=$(date +%s)
if [ "$TOOL" = "claude" ]; then
claude -p "$PROMPT" --output-format json > result.json
else
# Without --force, actions that need approval are rejected (workspace file edits still go through)
agent -p --force --output-format json "$PROMPT" > result.json
fi
END=$(date +%s)
# Keep the size of the change so you can compare it with the original commit
CHANGED=$(git diff --numstat | awk '{a+=$1+$2} END {print a+0}')
python3 - "$TOOL" "$PARENT" "$((END - START))" "$CHANGED" "$ROOT/bench-results.tsv" <<'PY'
import json, sys
tool, parent, secs, changed, out = sys.argv[1:]
d = json.load(open("result.json"))
cost = d.get("total_cost_usd", "") # Claude Code only; blank for Cursor
turns = d.get("num_turns", "")
api_ms = d.get("duration_api_ms", "")
with open(out, "a") as f:
f.write("\t".join(map(str, [tool, parent[:8], secs, api_ms, turns, cost, changed])) + "\n")
print(tool, parent[:8], f"{secs}s", f"cost={cost or '-'}", f"changed={changed} lines")
PYThe docs say plainly that total_cost_usd is a client-side estimate and can differ from your bill. Cursor doesn't put cost in its JSON, so note your usage in the editor settings or under Usage at grok.com/dashboard before and after each run.
Same parent commit, same instruction, and the same model where you can manage it. If any of the three differs, I don't keep the result.
3. Line the results up, and stop deliberating
bench-results.tsv ends up with tool, parent commit, seconds, API milliseconds, turns, cost, and lines changed. Comparing lines changed against the original commit shows immediately when one run wandered off. Even three tasks are enough to see which way you lean.
The point is not to crown a winner. "On my typical work, it made little difference" is a common result. Once you know that, you can stop reading comparison articles.
Where Measurement Tends to Go Wrong
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
| The Cursor run finishes having done nothing | Print mode rejects actions that need approval | Look for a rejection in the text of result.json | Add --force, only inside the throwaway worktree |
| You can't select a Claude model in Cursor | Plus and Free don't include third-party models | The editor's model list and your current plan | Move to Premium or above, or record the comparison honestly as "each tool's default model" |
| Claude's cost suddenly jumps | --continue or --resume report the whole conversation's total | Check the command for those flags | One task, one fresh session |
git worktree add fails | A directory with that name already exists, or the branch is checked out twice | git worktree list | Open the parent commit directly with --detach, and git worktree remove when done |
| Cost doesn't match the billing screen | total_cost_usd is a local estimate | Compare against the Console or your plan's usage page | Use it only for relative comparison; treat billing as the source of truth |
Which Way to Lean
- Lean Claude Code if you do migrations spanning dozens of files, live in the terminal, need it working over SSH or inside Docker, want AI inside CI, or run Claude models for long stretches every day
- Lean Cursor if you won't give up your VS Code extensions, write in the rhythm of tab completion, want to switch between vendors' models per task, or prefer watching diffs go by
Most people find both descriptions fit. If that is you, read the next two sections.
The New Axis: How Parallel Work Gets Surfaced
One axis has been added to this comparison in recent months: running multiple agents at once.
Cursor offers Cloud Agents that run in the cloud and Automations that run on a schedule; on the new plans both start at Premium. If you want parallel work laid out visually without loading your own machine, that is a real draw.
Claude Code surfaces it differently. git worktree runs branches side by side, SubAgents split a task and work in parallel, and Hooks wrap processing around tool calls. The design leans toward pipeline integration rather than visualization. For how to assemble that, see Claude Code Multi-Agent Parallel Execution — Task Tool and SubAgent Patterns, and for the worktree side, Parallel Development with Claude Code Worktrees.
I am deliberately not putting an "N times more efficient" number on this section either. Token consumption under parallel execution swings hard with model choice and how you split the work, and someone else's single task does not predict your operation. The measurement procedure above applies unchanged.
If You Run Both, Draw the Boundary First
"Just use both" falls apart the moment you try to live with it. My first attempt had Claude Code performing a sizeable refactor while I edited other files in Cursor — on the same branch. The two built diffs on top of incompatible assumptions, and I spent the evening untangling conflicts by hand, with a knot in my stomach the whole time.
What I use now is a split based on the length of the task.
- Hand to Claude Code: migrations spanning dozens of files, adding test coverage, swapping dependencies — anything that doesn't need a human watching from start to finish
- Do in Cursor: rewriting a single function, adjusting names, small fixes you notice mid-review — anything you want to see land in front of you
And I never run the two in the same working tree at the same time. Claude Code gets a separate directory cut with git worktree; Cursor stays in the original. That alone made conflicts almost disappear.
For the record of splitting work across three tools, see A Hybrid Setup with Claude Code, Cursor, and Devin Desktop (formerly Windsurf).
In the end, thirty minutes spent deciding the boundary did more for my productivity than any amount of time spent ranking the tools.
What Tends to Trip You Up Next
If you lean toward Claude Code, the next thing you are likely to hit is a hook that is in place but not actually doing anything. I wrote up a case where onFailure was set to block and an official-style rm -rf guard still let everything through because a command the script depended on was missing: I Set onFailure to block, and the Docs' rm -rf Guard Still Let Everything Through Without jq. For design decisions across the events, see Claude Code Hooks: A Field Guide to the 8 Core Hooks — and the 33-Event Catalog They Now Live In.
If you lean toward Cursor, the first decision is probably whether to stay on a legacy plan or move to a new one. Legacy plans keep working the same way while your subscription continues, so there is no need to rush. Before you switch, it helps to take stock of whether the models you actually use are Cursor's own or third-party ones; that tells you which plan is enough.
What to Do Next
Pull two or three tasks from your git history, check out each parent commit, and send the same instruction through both CLIs. Once bench-results.tsv has seconds and cost side by side, you will have something more reliable than any number of other people's benchmarks. It takes about an hour.
Since I switched to measuring this way, I spend noticeably less time going back and forth over tools. With billing reshuffled the way it just was, I think now is a good moment to check again against your own numbers.