Comparison

AGENTS.md vs CLAUDE.md

CLAUDE.md is what Claude Code looks for; AGENTS.md is the tool-neutral version other agents also read. They hold the same kind of content — so the goal is one source, not two hand-written files.

The short version

 AGENTS.mdCLAUDE.md
Read byMost major agents (Cursor, Codex, Copilot, Gemini…)Claude Code
ScopeTool-neutral conventionClaude-specific filename
ContentEffectively identical — setup, code style, structure, guardrails
Best asSingle source of truthA generated copy / symlink

They’re not really rivals

The content of a good CLAUDE.md and a good AGENTS.md is the same. The only real difference is the filename a given tool looks for. So the question isn’t “which one” — it’s “how do I avoid maintaining the same instructions twice.”

Recommended setup

Keep AGENTS.md as canonical and point CLAUDE.md at it with a symlink (ln -sf AGENTS.md CLAUDE.md), or generate both from one source. Now Claude Code and every other agent read identical rules, and you edit in one place.

Do it automatically

The generator emits AGENTS.md and CLAUDE.md together, plus a symlink script, so they can never disagree.

Frequently asked

Should I use AGENTS.md or CLAUDE.md?

Use AGENTS.md as the source and keep CLAUDE.md as a symlink or generated copy, so Claude Code and other agents stay in sync.

Does Claude Code read AGENTS.md?

Claude Code looks for CLAUDE.md; point it at AGENTS.md via symlink so there’s a single source of truth.

Is the content different between them?

No — same sections and rules. Only the filename differs.

Other stacks & guides

Build yours in thirty seconds

Detect your stack, tune the guardrails, export to every agent format. Free.

Open the generator