Skip to content
Agent Friendly Code

Claude Code vs Cursor: which do top repos set up for?

Claude Code averages higher: 71.9 for Claude Code and 63.5 for Cursor, across 402 repos. Claude Code scores higher on 388, Cursor on 12, and 2 tie.

Scores measure how well each repo is set up for an agent: instruction files, tests, CI and the other checks, weighted by what each agent's docs say it uses, not which agent writes better code.

Which files does each one read?

Reads from the repo
Claude Code: CLAUDE.md.claude/CLAUDE.md.claude/rules/CLAUDE.local.mdAGENTS.md.claude/AGENTS.md
Cursor: .cursor/rules/*.mdcAGENTS.mdCLAUDE.md.agents/skills/
Reads AGENTS.md
Claude Code: Only when there is no CLAUDE.md
Cursor: Always
Reads CLAUDE.md
Claude Code: Yes
Cursor: Yes
From its docs
Claude Code: Reads AGENTS.md only when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md is found (v2.1.277 and later). A CLAUDE.md that imports @AGENTS.md loads both, as does a setting.
Cursor: Project rules are .mdc files in .cursor/rules/, subfolders included; a plain .md there is ignored. AGENTS.md is read at the root and in subdirectories, combined, the more specific winning. CLAUDE.md is read the same way; the docs describe one at the root. A root .cursorrules is legacy and will be deprecated.
Repos with its own file
Claude Code: CLAUDE.md only: 18 of 402 (4%)
Cursor: .cursor/rules or .cursorrules: 18 of 402 (4%)

AGENTS.md and CLAUDE.md mean the file at the repo root; a repo with both counts under AGENTS.md, and empty files don't count. Every agent's files.

Which checks does each weigh more?

Share of each agent's score that a check carries, where Claude Code and Cursor differ most
CheckClaude CodeCursor
Cursor rules (.cursor/rules)0%11%
Reproducible dev env12%6%
Test suite13%8%
Skills (.agents/skills)0%5%
AGENTS.md / CLAUDE.md13%9%
Type configuration8%11%

Each figure is the check's share of the agent's total weight, from the docs linked below. A check few repos pass, such as an agent's own file, lowers that agent's scores wherever it carries weight. The methodology lists every weight.

Which repos are set up better for Claude Code than Cursor?

Which repos are set up better for Cursor than Claude Code?

Which one leads in each language?

Average Claude Code and Cursor scores of the repos in each language; the higher is in bold
LanguageReposClaude CodeCursor
TypeScript8377.068.3
Python5675.666.9
Rust4574.967.8
Go4076.767.6
Java2866.958.4
C++2164.054.9
JavaScript1579.269.4

What if I use both?

  1. Write the shared instructions once, in AGENTS.md at the repo root. What to put in it.
  2. Claude Code: import @AGENTS.md in a CLAUDE.md; without that, a CLAUDE.md hides AGENTS.md from it.
  3. Cursor: put rules in .cursor/rules/*.mdc; a plain .md there is ignored. It reads AGENTS.md too.

AGENTS.md vs CLAUDE.md · Which files each agent reads · Make a repo agent-ready

From the docs: code.claude.com/memory (new tab) · code.claude.com/skills (new tab) · cursor.com/docs/rules (new tab) · cursor.com/skills (new tab) · cursor.com/context/rules (new tab) · cursor.com/customization/rules (new tab) · cursor.com/using (new tab)

Boards: best set up for Claude Code · best set up for Cursor

More comparisons: Claude Code vs Codex · Gemini CLI vs Claude Code · Cursor vs Codex · Aider vs Claude Code · OpenHands vs Claude Code · Pi vs Claude Code · Kimi Code CLI vs Claude Code · Devin vs Claude Code · Codex vs Gemini CLI