OmniscioGuidesRelease notes2.1.277
Claude Code 2.1.277: Claude reads AGENTS.md
Plenty of repositories already carry an AGENTS.md for other coding agents. Before this release, Claude Code ignored it and needed a CLAUDE.md, an import, or a setting. Now it reads the file directly, as long as you have not also got a CLAUDE.md.
Below: the rule for which file Claude reads, how to change it, the cases where AGENTS.md is silently ignored, and the rest of the release.
Last checked against Anthropic's changelog entry for 2.1.277 and its documentation on November 25, 2026. By the Omniscio team. Updated .
Which file Claude reads
The default is one sentence: AGENTS.md is read only when there is no CLAUDE.md. Anthropic's table makes the three cases concrete.
| Your repository has | Claude reads |
|---|---|
An AGENTS.md, and no CLAUDE.md or CLAUDE.local.md in your working directory or above it | Your AGENTS.md |
An AGENTS.md and a CLAUDE.md or CLAUDE.local.md in your working directory or above it | Your CLAUDE.md files only |
A CLAUDE.md that already imports AGENTS.md | Your CLAUDE.md, with AGENTS.md included through the import |
"Above it" is doing real work in that first row: a CLAUDE.md, or a project's .claude/CLAUDE.md, anywhere from your working directory up to the filesystem root suppresses AGENTS.md. Three things do not count for that check and load alongside it: your own ~/.claude/CLAUDE.md, your organization's managed CLAUDE.md, and .claude/rules/ files.
To check whether Claude read your file, run /memory and look for your AGENTS.md path in the list. Anthropic's own checklist when one seems ignored: look for a CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in your working directory or any directory above it, other than ~/.claude/CLAUDE.md; run claude --version and confirm v2.1.277 or later; then open /config and confirm Project instructions is not set to claude-md or managed-only.
One wrinkle for this version: before v2.1.280, /memory and /context did not list an AGENTS.md that Claude read directly, so on 2.1.277 or 2.1.278 ask Claude what its project instructions say instead.
The AGENTS.md guide covers this in more depth, and the CLAUDE.md guide covers the file itself.
Sources: the "Added AGENTS.md support" line in the 2.1.277 entry of Claude Code changelog, and "AGENTS.md" plus "When Claude Code reads AGENTS.md" in Manage Claude's memory, read November 25, 2026.
Changing the rule
The switch is Project instructions in /config, with four values. The one to know is the default, claude-md-or-agents-md; the change this page is about is claude-md-and-agents-md, which reads both.
| Value | What Claude reads |
|---|---|
claude-md-or-agents-md | Your CLAUDE.md files, or your AGENTS.md files when you have no CLAUDE.md or CLAUDE.local.md in your working directory or above it. This is the default. |
claude-md-and-agents-md | Both, each directory's CLAUDE.md files first and its AGENTS.md after them. An AGENTS.md your CLAUDE.md imports or symlinks to is not read twice. |
claude-md | Your CLAUDE.md files only. |
managed-only | Only the managed CLAUDE.md and auto memory at launch. |
A change made in /config applies from your next message and in every new session. To set it from a settings file instead, the value goes under pluginConfigs, at cc-plugin-agents-md@builtin, in options.instructionFiles:
"pluginConfigs": {
"agents-md@builtin": {
"options": { "instructionFiles": "claude-md-and-agents-md" }
}
}Where that entry is honoured matters, and so does which id you use. Anthropic says the entry is read from ~/.claude/settings.json, a --settings file or managed settings, and ignored in project and local settings files, so a repository cannot change the rule for you. The id changed with version: before v2.1.285 it was agents-md@builtin, and an entry under cc-plugin-agents-md@builtin was ignored; v2.1.285 and later reads either. On 2.1.277, the version this page is about, write agents-md@builtin.
Source: "Choose which instruction files load" in Manage Claude's memory, read November 25, 2026.
When AGENTS.md is ignored
If your AGENTS.md is being ignored, one of these is why — and in each of the first three cases, Project instructions will not even appear in /config:
- Your version. Reading
AGENTS.mddirectly needs v2.1.277 or later. - The plugin is off. If you used
/pluginto disable the built-in plugin that readsAGENTS.md(agents-md@builtinon this version), Claude readsCLAUDE.mdonly. - The first session after upgrading. Upgrading from v2.1.276 or earlier can leave the first session reading
CLAUDE.mdonly; it works from the next session on. - Certain sessions before v2.1.281. On versions before v2.1.281, some sessions — for example ones on Amazon Bedrock or with telemetry disabled — read
CLAUDE.mdfiles only. Anthropic counts these with the rest: if Project instructions is not in/configat all, the session cannot loadAGENTS.md.
In any of those, the workaround Anthropic gives is the same one that worked before this release: import AGENTS.md from a CLAUDE.md. The AGENTS.md guide covers that import.
Source: "When AGENTS.md support is unavailable" in Manage Claude's memory, read November 25, 2026.
Subagent results arrive marked
One line in this release reads like a security fix, and it is worth understanding: subagent results now reach the main agent under a header marking them as subagent output, with the result indented, "so text in a subagent's result cannot pass as the session's own instructions".
The problem it addresses is real. A subagent reads files, web pages and command output, and anything it reads can contain text that looks like an instruction. Without a marker, that text arrives in the main conversation looking like the subagent's own words. With it, the model has a boundary to read.
It is a prompt-level boundary, not a sandbox: nothing here changes what a subagent may do, only how its answer arrives. The subagents guide covers what a subagent can reach, and security guidance covers the wider picture.
Source: the "Changed subagent results to reach the main agent under a header marking them as subagent output" line in the 2.1.277 entry of Claude Code changelog, read November 25, 2026.
The smaller changes worth knowing
- TaskOutput is gone. Claude now reads a background task's output file with Read instead, and the
taskOutputMaxCharssetting andTASK_MAX_OUTPUT_LENGTHno longer have any effect. See background tasks. - A Claude apps gateway behind a proxy.
CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY=1makes every outbound request hand the proxy the hostname instead of resolving it locally, for a Claude apps gateway whose only egress is a forward proxy. An optionalheaders:map on Claude apps gateway upstreams sends static headers to a proxy you run in front of a provider. - Fable in
/model. On the Anthropic API, Fable always appears in/modelnow, and is greyed out only when your organization's settings disable it. - A waiting background task. When a background task finishes while a panel such as
/tasksis open, a line says its update is waiting. - VS Code. A Sign out row in the panel menu, background shells and other running tasks in the agent map with a Stop, a Copy response button, and an "Unarchive all" action on archived sessions.
Sources: the "Removed the deprecated TaskOutput tool", "Added `CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY=1`", "Added an optional `headers:` map", "Changed Fable to always appear in `/model`", "Added a line saying a background task's update is waiting" and the `\[VSCode]` Added lines in the 2.1.277 entry of Claude Code changelog, read November 25, 2026.
What got fixed
The entry's bug-fix list holds 57 items. These are the ones most likely to have been your problem:
- A headless run that hung.
claude -pand Agent SDK sessions could hang with no result after an internal error; they now report the error and exit with code 1. - Being logged out for no reason. An older Claude Code build on the same machine, such as an IDE extension's bundled CLI, could log you out of the current one.
- Greps that found nothing. Grep and Glob reported no matches when the search could not start because the system was out of processes, memory or file handles; they now return an error saying so.
- Write into a directory. The Write tool silently ended the turn as a declined permission when the target path was an existing directory; it now reports a clear error.
- Update checks failing. Update checks errored every 30 minutes, and
claude updatehung, when a minimum or maximum version was set and a proxy returned an invalid version.
Sources: the "Fixed" lines under "57 bug fixes" in the 2.1.277 entry of Claude Code changelog, read November 25, 2026.
Who 2.1.277 matters to
| If you… | Read this part |
|---|---|
Keep an AGENTS.md for other coding tools | Which file Claude reads |
| Want both instruction files loaded | Changing the rule |
Have an AGENTS.md that seems to be ignored | When AGENTS.md is ignored |
| Run subagents on untrusted content | Subagent results arrive marked |
If you have no AGENTS.md anywhere, nothing on this page changes your setup; the fixes are the part worth having.
2.1.277 is not the newest release: the release notes hub lists what came after it. If you are not on this version yet, claude --version prints the version you have and claude update updates the install; the update guide covers each install type.
This table is our summary of the sections above; every row rests on the changelog and documentation lines cited in those sections, read November 25, 2026.
Where these answers come from
- The release, its date and every change listed: the 2.1.277 entry in Claude Code changelog, generated from CHANGELOG.md, read November 25, 2026.
- Which instruction file Claude reads, the four setting values, where the settings-file key is honoured, and when support is unavailable: Manage Claude's memory, read the same day.
claude updateandclaude --version: CLI reference, read the same day.
No Claude Code release was installed on this site's machine to check this page. Every claim about 2.1.277 is taken from Anthropic's changelog entry and the documentation pages named above.
Common questions
What changed in Claude Code 2.1.277?
Claude Code gained AGENTS.md support: in a project with no CLAUDE.md, it reads AGENTS.md as the project instructions. The release also marks subagent results as subagent output, adds a gateway setting for proxy-only egress, and removes the deprecated TaskOutput tool.
Does Claude Code read AGENTS.md instead of CLAUDE.md?
By default it reads AGENTS.md only when your working directory and every directory above it have no CLAUDE.md or CLAUDE.local.md. If a CLAUDE.md exists, Claude reads your CLAUDE.md files only, unless you change the Project instructions setting to read both.
How do I make Claude Code read both files?
In /config, set Project instructions to claude-md-and-agents-md. In a settings file it goes under pluginConfigs, at cc-plugin-agents-md@builtin, in options.instructionFiles — read from user, --settings or managed settings, and ignored in project and local files. On 2.1.277 the plugin id is agents-md@builtin; the longer id works from v2.1.285.
Why is my AGENTS.md being ignored?
Anthropic names three cases where Project instructions does not even appear in /config: a Claude Code version before v2.1.277, the built-in plugin that reads AGENTS.md disabled in /plugin, or the first session after upgrading from v2.1.276 or earlier, where it works from the next session. Before v2.1.281 there was a fourth: sessions on Bedrock or with telemetry disabled could not load AGENTS.md either. Run /memory to see whether Claude read your file at all.