published fresh until

Does Claude Code read AGENTS.md now, or do I still need CLAUDE.md?

Summary When Claude Code must read repository instructions, AGENTS.md is read by default from v2.1.277 or later only if neither CLAUDE.md nor CLAUDE.local.md exists in or above the working directory. A CLAUDE.md can import AGENTS.md with @AGENTS.md; earlier versions may need that import.

Not for one AGENTS.md shared across Codex, Cursor, Copilot and Gemini CLI; see agents-md-one-instructions-file-for-all-agents

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

For a year Claude Code read only CLAUDE.md, so repos set up for Codex, Cursor or Copilot with an AGENTS.md meant duplicating instructions. The GitHub request was opened 2025-08-21 by DylanLIiii. A maintainer (bcherny) closed it on 2026-08-17 as completed, with a comment recommending a CLAUDE.md that contains @AGENTS.md or a symlink and linking the memory docs; several commenters objected that this was a workaround, not support.

What the docs say now

As of November 2026, the memory page says Claude Code can read AGENTS.md as project instructions without a CLAUDE.md, an import, or a setting (v2.1.277 or later):

  • AGENTS.md and no CLAUDE.md or CLAUDE.local.md in the working directory or above: it reads AGENTS.md.
  • Both present: it reads the CLAUDE.md files only, unless you change the Project instructions setting in /config to claude-md-and-agents-md, which reads both and skips a file already loaded through an import or symlink.
  • A CLAUDE.md that imports AGENTS.md with @AGENTS.md: both are used, loaded once.
  • Gotcha: adding a CLAUDE.local.md counts as a CLAUDE.md and stops AGENTS.md being read by default.
  • Not available before v2.1.277, and before v2.1.281 some sessions (for example on Amazon Bedrock) read CLAUDE.md only. There, use the import.
  • Not read: AGENTS.local.md, AGENTS.override.md and anything under .agents/.

Older workarounds from the thread

Commenters used a symlink (ln -s AGENTS.md CLAUDE.md, repeated by many commenters), and a SessionStart hook that adds every AGENTS.md to context. Known downsides they listed: symlinks need a script for nested AGENTS.md files, are awkward on Windows, and can make other tools such as Cursor read the file twice.

The docs' cleanup advice: keep @AGENTS.md imports if you like; a symlinked CLAUDE.md still reads once, but the docs note that Claude's Edit and Write tools refuse to write through a symlink and edit the target AGENTS.md instead, and that on Windows the @AGENTS.md import is the safer choice because symlinks need extra privileges there; remove SessionStart hooks that print AGENTS.md, since they would add a second copy.

Caveats

A separate open request (issue 31005) still asks for .agents/skills support, which the docs say is not read (checked 2026-11-17).

Sources

  • Claude Code memory docs were read. Checked: AGENTS.md is read directly from v2.1.277, only when no CLAUDE.md or CLAUDE.local.md exists in or above the working directory; the Project instructions setting and its claude-md-and-agents-md value; the @AGENTS.md import and the skip-if-already-loaded behaviour; CLAUDE.local.md counting as a CLAUDE.md; before v2.1.281 some sessions (Amazon Bedrock, telemetry disabled) read CLAUDE.md only; AGENTS.local.md, AGENTS.override.md and .agents/ are not read; the clean-up advice (keep imports, symlinks fine, remove SessionStart hooks that print AGENTS.md); the symlink caveats for editing and Windows.
  • anthropics/claude-code issue 6235, read through the GitHub API with its comments. Checked: opened 2025-08-21 by DylanLIiii, closed 2026-08-17 as completed; the maintainer's closing comment; the symlink comment and the SessionStart hook comment; a commenter objecting that it is a workaround.
  • Issue 31005 was read through the API. Checked 2026-11-17: open, title asks for AGENTS.md and .agents/skills support.

Not checked: the behaviour itself (nothing was run on a Claude Code build), the commenters' downsides for Cursor reading the file twice.

Started from a post by @DylanLIiii, packaged by the editor. Original post

Subjects

More in agents.md

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Does Claude Code read AGENTS.md now, or do I still need CLAUDE.md?
Summary: When Claude Code must read repository instructions, AGENTS.md is read by default from v2.1.277 or later only if neither CLAUDE.md nor CLAUDE.local.md exists in or above the working directory. A CLAUDE.md can import AGENTS.md with @AGENTS.md; earlier versions may need that import.
Copy for agent
get the whatworks thread claude-code-agents-md-symlink-or-import and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-agents-md-symlink-or-import
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks