Claude Code Adds Configurable AGENTS.md Support
Claude Code 2.1.277 adds AGENTS.md support through a built-in mod. In its default mode, Claude Code reads AGENTS.md when a project has no CLAUDE.md, and users can change the project-instruction behavior from /config. The release is not yet available on Bedrock, Vertex, or Foundry.
Claude Code 2.1.277 adds support for AGENTS.md project instructions. When a project has no CLAUDE.md, Claude Code can now read AGENTS.md instead, and the behavior can be changed from the Project instructions setting in /config. (Claude Code team member Thariq on X; Claude Code v2.1.277 release)
This is a fallback, not a rename of Claude Code's existing file. The default built-in mod checks whether the project has its own CLAUDE.md before adding AGENTS.md, so a repository does not silently switch instruction sources just because it updates Claude Code. (Anthropic's agents-md mod source; agents-md README)
Key Takeaways
- Claude Code 2.1.277 reads
AGENTS.mdas a fallback when a project has noCLAUDE.md. - The behavior is configurable from
/configunder Project instructions. - The built-in mod has multiple modes, including fallback, Claude-only, both file types, and managed-only instructions.
CLAUDE.mdstill wins in the default fallback mode when a project has its own file.- The feature is not yet available on Bedrock, Vertex, or Foundry, according to the release entry.
- Anthropic published the built-in mod's source, including its hook implementation and tests.
A Shared Fallback, Not a Forced Migration
Claude Code has historically looked for CLAUDE.md files in the project tree. The 2.1.277 change makes AGENTS.md usable without asking every repository to add a second Claude-specific file. The release's wording is deliberately narrow: if a project has no CLAUDE.md, Claude Code reads AGENTS.md instead. (Claude Code v2.1.277 release)
That default matters for existing repositories. A project that already has a CLAUDE.md does not begin loading AGENTS.md merely because Claude Code was updated. The published mod README says the default claude-md-or-agents-md mode stands down when the project has a CLAUDE.md of its own, leaving that file to the Claude Code engine. (agents-md README)
The practical effect is a low-friction adoption path: repositories that already carry an AGENTS.md can let Claude Code use it when no Claude-specific instruction file exists, while repositories with an intentional CLAUDE.md keep their current default behavior. That is a compatibility layer, not a deprecation notice for CLAUDE.md.
Four Project-Instruction Modes
The source for the built-in mod documents four values for the instructionFiles option. The default is claude-md-or-agents-md, which uses AGENTS.md only when the project has no CLAUDE.md of its own. (agents-md README)
The other modes make the policy explicit:
claude-mdkeeps the existing Claude-only behavior. The mod adds nothing.claude-md-or-agents-mdusesAGENTS.mdas the fallback when the project's ownCLAUDE.mdis absent.claude-md-and-agents-mdloads both kinds of project instruction files through the mod's documented walk.managed-onlyremoves project, local, and user instruction files while retaining managed policy and memory files.
Users change the setting in /config under Project instructions. The README also documents the corresponding pluginConfigs entry for people managing the option in settings.json. (agents-md README)
The distinction between fallback and both-files mode is important. A team that wants one shared instruction file can use the default fallback. A team that deliberately maintains Claude-specific guidance alongside a cross-tool file can opt into the mode that loads both, then review the resulting instruction order and overlap.
What the Built-In Mod Adds
Anthropic's implementation is not only a filename check. The published source describes a built-in mod that hooks into Claude Code's context flow. It can walk project ancestors for AGENTS.md, add those files as project instruction files, and attach nested AGENTS.md files when Claude reads files in subdirectories. (agents-md README)
The source also includes a mods/agents-md package with a plugin manifest, hooks, tests, and a README. The README says the mod's session.start, prompt.context, agent.spawn, and tool.call hooks handle the configuration row, instruction-file discovery, fork behavior, and nested files. (Anthropic's agents-md mod source)
That makes the feature notable beyond the immediate compatibility behavior. Thariq described it as a built-in mod and said users will be able to build custom versions of project instructions themselves. The public source gives developers a concrete example of how that customization layer is structured. (Thariq on X; agents-md README)
Availability and Upgrade Notes
The release entry identifies the change as part of Claude Code v2.1.277 and says it is not yet available on Bedrock, Vertex, or Foundry. Users on supported Claude Code installations can change the behavior under /config rather than editing a separate configuration file as their first step. (Claude Code v2.1.277 release)
If a repository already uses CLAUDE.md, the safest first check is to leave the default fallback mode in place and confirm that Claude Code continues to use the intended file. If a repository has only AGENTS.md, the update creates a path to use those instructions without duplicating them into a second file. If both files should apply, select the explicit both-files mode and review the project's instruction boundaries before relying on it. (agents-md README)
Bottom Line
Claude Code 2.1.277 turns AGENTS.md into a supported project-instruction fallback without forcing existing repositories to abandon CLAUDE.md. The built-in mod keeps the default conservative, exposes an explicit both-files mode for teams that need it, and publishes the implementation for developers interested in customizing the Claude Code harness. (Claude Code v2.1.277 release; agents-md README)
Sources
- Thariq, “We're adding support for AGENTS.md to Claude Code,” X, September 18, 2026: https://x.com/trq212/status/2101009392611278961
- Thariq, “AGENTS.md support is built off of Claude Code mods,” X, September 18, 2026: https://x.com/trq212/status/2101009393731223817
- Anthropic, Claude Code v2.1.277 release notes: https://github.com/anthropics/claude-code/releases/tag/v2.1.277
- Anthropic,
agents-mdbuilt-in mod source: https://github.com/anthropics/claude-code/tree/main/mods/agents-md - Anthropic,
agents-mdREADME: https://github.com/anthropics/claude-code/blob/main/mods/agents-md/README.md
Read next
Keep building the workspace playbookClaude Code Adds Plugin Evals for Regression Testing and No-Plugin Baselines
Claude Code now includes `claude plugin eval`, a testing workflow for plugin and skill authors. The command can create cases and graders, run a plugin in isolated non-interactive sessions, compare results with a no-plugin baseline, generate an HTML report, and support CI gates for plugin changes. Evals require Claude Code v2.1.269 or later and consume model usage.
Claude Code Projects Turn One Conversation Into Parallel Cloud Sessions
Anthropic is rolling out a redesigned Projects experience in Claude Code. A project gives Claude one coordinating conversation that can delegate work to parallel cloud sessions, share repository context and memory, and continue after you close your laptop.
Claude Code Subagent Patterns: 10 Reusable Agent Definitions
A Claude Code subagent is a delegated worker with its own context window, defined as a markdown file with YAML frontmatter in .claude/agents/. Subagents can edit files when you grant Edit or Write, nest three layers deep by default, and run 20 at a time. These 10 definitions cover the highest-value delegations.
Frequently Asked Questions
What changed in Claude Code 2.1.277?
Claude Code can now read AGENTS.md as project instructions when a project has no CLAUDE.md. The behavior is controlled from the Project instructions setting in /config.
Does AGENTS.md replace CLAUDE.md in Claude Code?
No. The default behavior is a fallback: when a project has its own CLAUDE.md, the built-in agents-md mod does not add AGENTS.md. The source also exposes modes for Claude-only instructions, both files, or managed instructions only.
How do I change the AGENTS.md behavior?
Open /config in Claude Code and change the Project instructions setting. The built-in mod documents four modes, including the default CLAUDE.md-or-AGENTS.md fallback and a mode that loads both file types.
Where is AGENTS.md support available?
The Claude Code 2.1.277 release notes say the feature is not yet available on Bedrock, Vertex, or Foundry.