Searching for agents.md vs claude.md vs cursor rules usually means you already keep durable guidance for coding agents—and now more than one tool wants its own file. This page is an engineering note on how those surfaces differ in intent, loading model, and maintenance cost. It is not a product catalog, not a ranking of vendors, and not advice to invent yet another mega-doc. Prefer one clear statement of each convention, then mirror only what a second tool cannot discover on its own.

01

Independence note

02

Why teams compare these instruction files

Coding agents forget house style between sessions. Humans forget which command is canonical after a toolchain bump. Project instruction files— whether named AGENTS.md, CLAUDE.md, or Cursor .cursor/rules—exist to encode durable contracts: stack pins, route registration, verification commands, and hard non-goals. The friction starts when two tools each ship a preferred path and contributors paste the same wall of text into both, then let them drift.

  • Same job, different packaging: durable repo memory vs per-session briefs.
  • Different loaders: always-on markdown vs scoped rule files with globs.
  • Different audiences: Claude Code-oriented workflows vs Cursor IDE sessions vs multi-agent CLIs.

Session-level craft still belongs in a good agent prompt. This comparison is about the durable layer underneath those prompts.

03

AGENTS.md vs CLAUDE.md vs Cursor rules (side by side)

SurfaceTypical shapeBest fitWatch-outs
AGENTS.md (or similar root agent notes)Single markdown checklist at repo rootMulti-tool teams that want one human-readable “how we work with agents” fileName and auto-load behavior vary by product; easy to become a second README—see how to write AGENTS.md
README.mdHuman-facing project front doorOnboarding humans: what the repo is, how to install, linksEasy to overload with agent ops; keep agent playbooks in AGENTS.md—see AGENTS.md vs README
CLAUDE.mdProject memory markdown loaded by Claude-oriented toolingRepos that standardize on Claude Code-style sessionsTicket narratives go stale; see how to write CLAUDE.md
Cursor rules (.cursor/rules)Small focused files, often with scope/globsIDE-heavy workflows that need always-on vs path-scoped contractsOver-long or contradictory rules; see cursor rules examples
GEMINI.mdProject memory markdown for Gemini CLI / Antigravity-style hostsRepos that standardize on Gemini-oriented sessionsPrefer shared facts in AGENTS.md; keep GEMINI thin—see how to write GEMINI.md
.github/copilot-instructions.mdRepo instructions for GitHub Copilot surfacesTeams whose primary agent surface is Copilot Chat / coding agentEasy to duplicate AGENTS.md; see copilot-instructions.md examples
Skills / SKILL.md (Agent Skills)Task-shaped playbooks with triggers, steps, done checksRepeatable jobs (“add page”, “verify before done”) rather than always-on styleDo not dump house style here; see cursor skills examples

In practice, all three answer the same questions: How do we build? Where do routes live? What must the agent never touch? The difference is packaging and which host loads the file—not a magical superiority of one filename over another.

04

AGENTS.md vs README.md

Searching for agents.md vs readme is usually a division-of-labor question. README.md is thehuman-facing front door: what this repo is, how a person installs and runs it, where docs live.AGENTS.md is the agent operations handbook: stack pins, verify commands, forbidden paths, and how coding agents should work here. Humans still read AGENTS.md; agents should not have to mine a marketing README for “never touch wrangler.”

  • README.md: product/repo pitch, install for humans, badges, links.
  • AGENTS.md: durable agent contracts—build/verify, registry paths, non-goals.
  • Anti-pattern: pasting the entire agent handbook into README “so nobody misses it,” then never reconciling the two.

Writing tips for the agent file: how to write AGENTS.md. Keep README short enough that a new hire finishes it; keep AGENTS.md short enough that a model will actually follow it.

05

AGENTS.md vs skills.md / SKILL.md

Searching for agents.md vs skills.md mixes two layers that should stay distinct. AGENTS.md (and siblings likeCLAUDE.md / Cursor rules) is durable project memory: how we build, what we never touch. Skills (SKILL.md / Agent Skills) are triggered procedures for a named job. Put “always true” contracts in AGENTS.md or rules; put “when the user asks for X, follow these steps” in a skill. Writing tips for the durable file: how to write AGENTS.md; playbook patterns: cursor skills examples.

  • AGENTS.md: stack, registry path, verify command, deploy non-goals.
  • SKILL.md: trigger, inputs, steps, done checks for one workflow.
  • Anti-pattern: copying the entire AGENTS.md into every skill “just in case.”

06

GEMINI.md vs AGENTS.md

Searching for gemini.md vs agents.md is usually a sync-cost question. Many Gemini CLI builds already loadAGENTS.md. Put shared stack, verify commands, and non-goals in AGENTS.md; putGemini-specific overrides only inGEMINI.md (or keep a stub that points back). Writing tips: how to write GEMINI.md · how to write AGENTS.md. For Antigravity-oriented rule files, see antigravity rules examples.

  • Shared → AGENTS.md: build command, registry path, deploy non-goals.
  • Gemini-only → GEMINI.md: host-specific quirks that other tools must not inherit.
  • Anti-pattern: two full novels that drift after the next toolchain bump.

07

copilot-instructions.md vs AGENTS.md

Searching for github copilot instructions vs agents.mdhits the same packaging fork. Prefer one clear statement of each convention in AGENTS.md, then a thin.github/copilot-instructions.md that points at it or holds Copilot-only deltas. Templates: copilot-instructions.md examples.

  • AGENTS.md: human source of truth across hosts.
  • copilot-instructions.md: Copilot consumer packaging.
  • Anti-pattern: pasting the identical wall into both and never reconciling.

08

When to use which

  1. Primary tool is Cursor in the IDE. Start with a short always-on conventions file under .cursor/rules/, plus one scoped file for the area you edit most. AddCLAUDE.md or AGENTS.md only if another agent host cannot see those rules.
  2. Primary tool is Claude Code (or similar). Invest in a skimable CLAUDE.md—stack, layout, commands, non-goals. Keep Cursor rules thin if editors still need local guardrails.
  3. Multiple agents, one repo. Prefer a single human source of truth (often AGENTS.md or README “Agent” section) and generate or mirror short tool-specific stubs. Do not maintain three novels by hand.
  4. One-off ticket work. None of these files. Put goals and acceptance in the session prompt.

09

Shared facts, one source of truth

The facts that belong in every durable surface are few: package manager and Node pin, route/sitemap registry path, canonical verify command, indent and language defaults, and absolute non-goals (deploy, DNS, secrets). Write them once in the file your team will actually update. If a second tool needs a copy, keep it short and point back:

# CLAUDE.md (stub pointing at shared notes)
See AGENTS.md for stack, commands, and non-goals.
Only Claude-specific overrides belong below.

## Claude-only
- Prefer reading sibling EN how-to pages before inventing layout

When README, AGENTS.md, CLAUDE.md, and Cursor rules disagree, the agent will pick whichever is convenient. Update all durable surfaces in the same PR—or delete the stale copy. Skills and procedural playbooks are a different layer; if you use Cursor Agent Skills /SKILL.md, keep them task-shaped rather than duplicating house style—see cursor skills examples.

10

Practical migration tips

  • Inventory every instruction file; mark which host loads each one.
  • Extract a one-screen “contracts” list; delete ticket leftovers and generic advice.
  • Make one file canonical; turn others into stubs or scoped deltas.
  • Add a PR checklist item: “Did process change? Update durable agent files.”
  • Re-verify after tool upgrades—discovery paths and front matter evolve.

Related reading: How to write AGENTS.md · copilot-instructions.md examples · How to write CLAUDE.md · How to write GEMINI.md · Cursor rules examples · Windsurf rules examples · Continue rules examples · Cline rules examples · Antigravity rules examples · Kilo code rules examples · Amazon Q rules examples · JetBrains AI Assistant rules examples · Junie guidelines examples · Good agent prompts · Cursor skills examples · Cursor agent tips · Git worktree for coding agents · Agent engineering notes

11

FAQ

Is AGENTS.md the same as CLAUDE.md?

Conceptually both are durable project memory for agents. Naming, auto-load rules, and community conventions differ by tool. Treat them as packaging choices, not different engineering philosophies. Keep overlapping facts in sync—or stop maintaining the unused file. Writing tips: how to write AGENTS.md.

Do I need Cursor rules if I already have CLAUDE.md?

Only if Cursor sessions do not reliably load your CLAUDE.md (or you want path-scoped rules that a single root markdown file cannot express cleanly). Many teams keep a thin .cursor/rules set for IDE habits and a richer project markdown for CLI agents. Avoid duplicating paragraphs word-for-word.

Where should ticket goals live?

In the session prompt—not in AGENTS.md, CLAUDE.md, or rules. Durable files that absorb every ticket become stale instruction landfills. Use how to write a good agent prompt for acceptance checks and temporary non-goals.

AGENTS.md vs SKILL.md—which should I write first?

Start with a short durable AGENTS.md (or rules) so every session shares stack and non-goals. Add SKILL.md playbooks only when the same multi-step job repeats. See AGENTS.md vs SKILL.md and cursor skills examples.

GEMINI.md vs AGENTS.md—where should shared facts live?

Put cross-tool stack, verify commands, and non-goals inAGENTS.md when Gemini CLI (and other hosts) already load it. Keep GEMINI.md thin for Gemini-only overrides. See GEMINI.md vs AGENTS.md, how to write GEMINI.md, and how to write AGENTS.md.

copilot-instructions.md vs AGENTS.md—do I need both?

Same job, different consumers. Prefer AGENTS.md as the human source of truth and a thin.github/copilot-instructions.md that points at it (or holds Copilot-only deltas). See copilot-instructions vs AGENTS.md and copilot-instructions.md examples.

AGENTS.md vs README.md—what goes where?

README is the human front door (what / install / links). AGENTS.md is the agent operations handbook (verify, non-goals, stack pins). See AGENTS.md vs README. Do not maintain two full novels that drift.

Is this official product guidance?

No. This is an unofficial engineering comparison on codemo.fun. Product docs, pricing, and support remain with their vendors. Re-check file discovery after upgrades before treating any path as permanent.