CodingSoftware & developer tools
Claude Code adds AGENTS.md support as configurable fallback for project instructions
Claude Code v2.1.277 can read AGENTS.md directly when no relevant CLAUDE.md file is found, aligning Anthropic’s coding harness with a cross-agent convention. The change reduces config duplication but does not establish model-performance gains or hard policy enforcement.
Claude Code v2.1.277 or later is reported and documented to load AGENTS.md as project guidance when no relevant CLAUDE.md-family file is found. [1] [9]
The default behavior is fallback, not automatic merging; users can change loading modes through /config or the built-in agents-md plugin configuration. [8] [9]
Evidence shows Anthropic has documented a concrete loading behavior and configuration path for AGENTS.md in Claude Code, with source-level material describing the built-in mod.
Read the full assessment
The implication for teams is operational rather than model-level: repositories can reduce duplicate instruction files across coding-agent tools. Business leaders should treat this as a configuration and governance change, not proof that Claude Code will complete more tasks correctly.
Executive brief
Anthropic’s Claude Code has added direct support for AGENTS.md, the repository-level instruction file used by several AI coding-agent ecosystems. The change is small at the user-interface level but important operationally: starting with Claude Code v2.1.277, Claude Code can read AGENTS.md as project instructions when no relevant CLAUDE.md or CLAUDE.local.md exists in the working directory or its ancestors. Simon Willison’s post is a quote from Anthropic’s Thariq Shihipar stating that support ships in v2.1.277 and is implemented as a built-in Claude Code “mod,” a forthcoming customization mechanism for the Claude Code harness.
Read the full section
Anthropic’s Claude Code has added direct support for AGENTS.md, the repository-level instruction file used by several AI coding-agent ecosystems. The change is small at the user-interface level but important operationally: starting with Claude Code v2.1.277, Claude Code can read AGENTS.md as project instructions when no relevant CLAUDE.md or CLAUDE.local.md exists in the working directory or its ancestors. Simon Willison’s post is a quote from Anthropic’s Thariq Shihipar stating that support ships in v2.1.277 and is implemented as a built-in Claude Code “mod,” a forthcoming customization mechanism for the Claude Code harness. Anthropic’s current Claude Code documentation independently corroborates the main behavior and version requirement. A quote from Thariq Shihipar
For practitioners, the main benefit is configuration consolidation: repositories that already maintain AGENTS.md for Codex-style or other agent tools can now often avoid a duplicate CLAUDE.md shim. The change is not a model-capability release; no new Claude model version, benchmark score, or coding-performance claim is documented in the cited materials. It is a harness/configuration feature in Claude Code, with the exact model used remaining dependent on the user’s Claude Code setup. Anthropic’s docs describe these instruction files as contextual guidance rather than hard enforcement; for mandatory controls, they point to settings or hooks. How Claude remembers your project - Claude Code Docs
The research context is mixed. One 2026 study reports efficiency improvements when AGENTS.md is present, while another controlled ablation across Claude Code and Codex reports no measurable correctness improvement from context-file injection on its task set. A separate paper finds widespread “configuration smells” in AGENTS.md/CLAUDE.md files, suggesting that the value of this new support depends heavily on instruction quality, size, and governance. On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents
What changed and event timeline
- Before this change
Claude Code’s native project-instruction convention was
CLAUDE.md, whileAGENTS.mdhad emerged as a cross-tool convention for coding agents. Research from June 2026 still described Claude Code as the notable exception usingCLAUDE.md, while analyzingAGENTS.mdandCLAUDE.mdas functionally similar configuration artifacts for agent behavior. Simon Willison published a post quoting Thariq Shihipar: Claude Code is adding
AGENTS.mdsupport; from v2.1.277, if noCLAUDE.mdis present in a folder, Claude checks for and usesAGENTS.md; and the implementation is built on Claude Code “mods.”Documentation state
Anthropic’s Claude Code docs now state that reading
AGENTS.mddirectly requires Claude Code v2.1.277 or later and describe default loading behavior,/configoptions, unavailable cases, and differences fromCLAUDE.md.Independent reporting
Gihyo.jp reported the same high-level change and summarized that, by default, Claude Code searches for
CLAUDE.md,.claude/CLAUDE.md, orCLAUDE.local.mdfrom the working directory upward; if none are found, it loadsAGENTS.md/.claude/AGENTS.mdin that range.More detail
This is independent reporting, but it relies substantially on Anthropic/GitHub materials rather than an independent evaluation.
Capabilities and access
Known version: Claude Code v2.1.277 or later. Anthropic’s docs explicitly require this version for direct AGENTS.md reading. How Claude remembers your project - Claude Code Docs Known capability: By default, Claude Code reads AGENTS.md only when no CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md exists in the working directory or above it.
Read the full section
Known version: Claude Code v2.1.277 or later. Anthropic’s docs explicitly require this version for direct AGENTS.md reading. How Claude remembers your project - Claude Code Docs
Known capability: By default, Claude Code reads AGENTS.md only when no CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md exists in the working directory or above it. User-level ~/.claude/CLAUDE.md, organization-managed CLAUDE.md, and .claude/rules/ do not block the AGENTS.md fallback. How Claude remembers your project - Claude Code Docs
Configuration access: Users can change the behavior through /config under Project instructions, with documented values: claude-md-or-agents-md as default, claude-md-and-agents-md, claude-md, and managed-only. The same can be configured via the built-in agents-md@builtin plugin configuration in user, --settings, or managed settings; project and local settings are ignored for this plugin option. How Claude remembers your project - Claude Code Docs
Unavailable or limited cases: Anthropic says AGENTS.md support is unavailable before v2.1.277, in sessions that do not fetch feature flags from Anthropic—such as Amazon Bedrock or another third-party provider, or when telemetry is disabled—on the first session after install/upgrade, when relevant hooks/plugin restrictions are set, or if the built-in agents-md plugin is disabled. How Claude remembers your project - Claude Code Docs
Exact model: Not specified in the story or documentation. This is a Claude Code harness behavior, not a documented model release.
Technical analysis for researchers and developers
The implementation is notable because Anthropic is using a built-in plugin/mod rather than only hard-coding the behavior into the core CLI. The public mods/agents-md README says AGENTS.md is read “the way Claude Code reads CLAUDE.md,” under a single option named instructionFiles. Architecturally, the mod participates in prompt-context construction.
Read the full section
The implementation is notable because Anthropic is using a built-in plugin/mod rather than only hard-coding the behavior into the core CLI. The public mods/agents-md README says AGENTS.md is read “the way Claude Code reads CLAUDE.md,” under a single option named instructionFiles. The default mode, claude-md-or-agents-md, loads AGENTS.md only when the project has no own instruction files recognized as CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md; the claude-md-and-agents-md mode loads both while avoiding duplicate loading for imported or symlinked files. claude-code/mods/agents-md at main · anthropics/claude-code · GitHub
Architecturally, the mod participates in prompt-context construction. The GitHub README says the engine provides instruction files behind claudeMd to a prompt.context hook; the hook can answer with a changed list; then the engine renders those files with its normal framing and downstream omission rules. That means an AGENTS.md added by this plugin becomes, downstream, a project instruction file rather than a separate memory mechanism. claude-code/mods/agents-md at main · anthropics/claude-code · GitHub
Implementation implications:
- Fallback is not merge-by-default. Existing Claude-first repositories with
CLAUDE.mdwill not automatically readAGENTS.mdunless configured to do so or unlessCLAUDE.mdimports it. How Claude remembers your project - Claude Code Docs CLAUDE.local.mdcan unexpectedly suppressAGENTS.md. Anthropic explicitly warns that adding local personal instructions inCLAUDE.local.mdin a project relying onAGENTS.mdstops default directAGENTS.mdloading; useclaude-md-and-agents-mdif both are needed. How Claude remembers your project - Claude Code Docs- Directly loaded
AGENTS.mdis less visible in some introspection surfaces. Anthropic says a directly loadedAGENTS.mdis not listed in/memoryor the Memory files list in/context; users must look for the “AGENTS.md loaded” line or ask Claude what project instructions it received. How Claude remembers your project - Claude Code Docs - Direct
AGENTS.mdhas different hook/import behavior. Anthropic documents differences fromCLAUDE.md:InstructionsLoadedhooks do not fire for directly loadedAGENTS.md;--add-dirdoes not load added directories’AGENTS.md; and external imports load only if previously approved. How Claude remembers your project - Claude Code Docs
Reproducibility is stronger than a pure vendor announcement because the agents-md mod source and tests are publicly referenced in the Anthropic GitHub repository, and the documented settings provide a concrete way to reproduce each loading mode. However, no cited source provides an independent black-box test matrix across operating systems, provider routes, symlinks, monorepos, and disabled-telemetry environments. claude-code/mods/agents-md at main · anthropics/claude-code · GitHub
Claims and evidence
- Claude Code v2.1.277 adds direct AGENTS.md support.
- Default behavior is fallback, not automatic merge.
- Implementation uses Claude Code mods / built-in plugin.
Read the full section
| Material claim | Evidence status |
Claude Code v2.1.277 adds direct AGENTS.md support. | Vendor-reported and documentation-corroborated. Simon Willison quotes Thariq Shihipar; Anthropic docs state v2.1.277+ is required. A quote from Thariq Shihipar |
| Default behavior is fallback, not automatic merge. | Vendor-documented. Anthropic docs and the mod README describe claude-md-or-agents-md as default. How Claude remembers your project - Claude Code Docs |
| Implementation uses Claude Code mods / built-in plugin. | Vendor-reported; source visible. Shihipar quote says built on mods; GitHub README describes agents-md@builtin. A quote from Thariq Shihipar |
AGENTS.md improves coding-agent outcomes. | Contested / task-dependent. One study reports reduced runtime and output tokens; another finds no measurable correctness effect on its controlled task set. On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents |
| Instruction files are enforcement mechanisms. | Not supported. Anthropic says they are context, not hard enforcement; settings and hooks are the enforcement path. How Claude remembers your project - Claude Code Docs |
Context and prior work
Repository instruction files have become part of the agentic coding stack: they encode build commands, coding conventions, architecture notes, testing workflows, and workflow constraints. Empirical evidence remains unsettled. Lulla et al. studied 10 repositories and 124 pull requests under with/without-AGENTS.md conditions, reporting lower median runtime and reduced output-token consumption while maintaining comparable task completion behavior.
Read the full section
Repository instruction files have become part of the agentic coding stack: they encode build commands, coding conventions, architecture notes, testing workflows, and workflow constraints. A June 2026 paper characterizes coding agents as a combination of a language model and harness, where the harness runs the agent loop, executes tools, and injects configuration files into context. Configuration Smells in AGENTS.md Files: Common Mistakes in Configuring Coding Agents
Empirical evidence remains unsettled. Lulla et al. studied 10 repositories and 124 pull requests under with/without-AGENTS.md conditions, reporting lower median runtime and reduced output-token consumption while maintaining comparable task completion behavior. That supports a cost/latency hypothesis, not necessarily a correctness hypothesis. On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents
Khatri’s later controlled ablation studied Claude Code and Codex across real repository tasks and found that context strategy did not measurably move correctness within its bounds; the paper argues failures were usually due to implementation skill rather than missing repository knowledge. This conflicts with simplistic claims that adding AGENTS.md will automatically make agents “better.” Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories
Dos Santos et al. add a governance caution: in 100 popular repositories with AGENTS.md or CLAUDE.md, they found widespread configuration smells including lint leakage, context bloat, skill leakage, and conflicting instructions. This is directly relevant to Claude Code’s new support because easier reuse of AGENTS.md also makes poor instructions easier to propagate across tools. Configuration Smells in AGENTS.md Files: Common Mistakes in Configuring Coding Agents
Limitations, safety, and contested findings
The main limitation is that the feature changes which text enters context, not whether the model obeys that text. Anthropic advises removing prior SessionStart-hook workarounds that print AGENTS.md, because direct loading plus hook injection can duplicate the file in context. The evidence base does not justify performance claims.
Read the full section
The main limitation is that the feature changes which text enters context, not whether the model obeys that text. Anthropic explicitly states that CLAUDE.md-style content is contextual guidance; vague or conflicting instructions may not be followed, and mandatory controls should use hooks, permissions, sandbox settings, or other managed settings. How Claude remembers your project - Claude Code Docs
Security and governance risks include accidental loading of stale instructions, duplicated context through old workarounds, and invisible divergence between tools. Anthropic advises removing prior SessionStart-hook workarounds that print AGENTS.md, because direct loading plus hook injection can duplicate the file in context. It also notes Windows symlink pitfalls and recommends @AGENTS.md imports where symlinks are unreliable. How Claude remembers your project - Claude Code Docs
The evidence base does not justify performance claims. There is no cited Anthropic benchmark showing that native AGENTS.md support improves Claude Code task success, and independent research is mixed: efficiency gains in one study, bounded-null correctness results in another. On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents
Business and practitioner implications
For engineering leaders, this reduces configuration friction in multi-agent environments. Teams can standardize on AGENTS.md for shared repository instructions and use CLAUDE.md only where Claude-specific behavior is needed. Anthropic says a CLAUDE.md containing @AGENTS.md can remain safely because Claude will not read the same content twice under documented modes.
Read the full section
For engineering leaders, this reduces configuration friction in multi-agent environments. Teams can standardize on AGENTS.md for shared repository instructions and use CLAUDE.md only where Claude-specific behavior is needed. The safest migration path is to audit existing CLAUDE.md shims, imports, symlinks, and hooks before deleting anything. Anthropic says a CLAUDE.md containing @AGENTS.md can remain safely because Claude will not read the same content twice under documented modes. How Claude remembers your project - Claude Code Docs
For platform teams, the governance pattern is: put broad policy in managed settings or managed CLAUDE.md, put project conventions in AGENTS.md/CLAUDE.md, keep files concise, and use hooks/settings for actions that must be enforced. Anthropic’s docs distinguish behavioral guidance from enforced settings such as permissions, sandbox isolation, provider routing, and login restrictions. How Claude remembers your project - Claude Code Docs
For developers, the immediate checklist is:
- Upgrade Claude Code to v2.1.277 or later.
- Run a session and verify whether
AGENTS.mdloaded. - If both files are needed, set Project instructions to
claude-md-and-agents-md. - Remove old hooks that inject
AGENTS.mdinto context. - Review
AGENTS.mdfor bloat, duplicated lint rules, stale commands, and contradictions.
Sources
- Simon Willison, “A quote from Thariq Shihipar,” 2026-09-18 — commentary quoting the announcement. A quote from Thariq Shihipar
- Anthropic Claude Code docs, “How Claude remembers your project” — official documentation for
CLAUDE.md,AGENTS.md,/config, limitations, and enforcement caveats. How Claude remembers your project - Claude Code Docs - Anthropic GitHub repository,
mods/agents-mdREADME — source-level description of the built-in mod and instruction-file modes. claude-code/mods/agents-md at main · anthropics/claude-code · GitHub
Read the full section
- Simon Willison, “A quote from Thariq Shihipar,” 2026-09-18 — commentary quoting the announcement. A quote from Thariq Shihipar
- Anthropic Claude Code docs, “How Claude remembers your project” — official documentation for
CLAUDE.md,AGENTS.md,/config, limitations, and enforcement caveats. How Claude remembers your project - Claude Code Docs - Anthropic GitHub repository,
mods/agents-mdREADME — source-level description of the built-in mod and instruction-file modes. claude-code/mods/agents-md at main · anthropics/claude-code · GitHub - Gihyo.jp, “Claude Code、AGENTS.mdに対応,” 2026-09-19 — independent reporting summarizing the change. Claude Code、AGENTS.mdに対応 ——/configで指示ファイルの読み込みを設定 | gihyo.jp
- Lulla et al., “On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents,” 2026 — empirical study on runtime/token efficiency. On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents
- Khatri, “Do Context Files Help Coding Agents?,” 2026 — controlled ablation on correctness across Claude Code and Codex. Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories
- Dos Santos et al., “Configuration Smells in AGENTS.md Files,” 2026 — catalog and prevalence study of instruction-file problems. Configuration Smells in AGENTS.md Files: Common Mistakes in Configuring Coding Agents
The source trail.
Sources (9)
A quote from Thariq Shihipar
simonwillison.netThis new Claude Code mods system looks pretty interesting - more example mods here: https://t.co/muUA4F6UiX https://t.co/WN9e20wh40
Related coverage; assess separately
x.comFinally! This is great, now I can stop dropping CLAUDEmd files which just contain "@AGENTSmd" https://t.co/9mVwfo1zuN
Related coverage; assess separately
x.com