AAgentFile Check

INSTRUCTION FILES

CLAUDE.md vs AGENTS.md: avoid two drifting truths.

Both files can guide coding agents, but their consumers and precedence rules differ. Duplication becomes a maintenance problem when commands or policy change.

AGENTS.md

AGENTS.md is a tool-neutral, plain Markdown convention supported by multiple coding agents. Root and nested files can express repository-wide and package-local context.

CLAUDE.md

CLAUDE.md is associated with Claude Code and may contain product-specific workflows or references. It is useful when instructions depend on Claude-specific behavior.

A practical split

Keep universal repository facts—setup, layout, tests, generated files, coding conventions, and handoff—in AGENTS.md. Keep only genuinely Claude-specific behavior in CLAUDE.md, and link to the shared source instead of duplicating it.

Migration checklist