Claude Code reads AGENTS.md only when telemetry is on [fixed]
TL;DR Highlight
With telemetry off, Claude Code silently skipped AGENTS.md because of a remote flag
Who Should Read
A developer who shares one AGENTS.md across several agents but finds Claude Code ignoring it
Core Mechanics
- The AGENTS.md loader sits behind a remote flag
- The loader is a built-in plugin called agents-md, and its isOnByDefault value is false.
- It asks a remote feature flag, tengu_agents_md_mod, whether it is available and falls back to false if it cannot fetch it.
- With telemetry off, it skips silently
- Setting either DISABLE_TELEMETRY=1 or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 kept AGENTS.md from loading.
- There is no warning, so it looks as if the model ignores your instructions.
- Setting the variables to 0 does not help
- Any value counts as set, so 0 keeps the block in place.
- Clearing them in the project's .claude/settings.json env had no effect.
- A --settings override works from the second session
- The first session only fetches the flag, and the second one uses it.
- The issue says Bedrock, Vertex and third-party gateways have the same problem because the flag cannot resolve to true.
- A one-line CLAUDE.md works around it
- @path imports in CLAUDE.md do not depend on the flag, so echo '@AGENTS.md' > CLAUDE.md loads it with telemetry off.
- The cost is one extra file per repo.
- Share skills with a symlink
- A canary skill in .agents/skills was not listed by Claude Code, while the same skill in .claude/skills was.
- Linking .claude/skills to ../.agents/skills works because Claude Code follows the symlink.
Community Reactions
- Anthropic's reply: a rollout artifact, fixed in v2.1.281
- A commenter explained they needed a remote kill-switch, and with telemetry off you don't receive flags.
- They said it was fixed in v2.1.281 releasing that day and apologized for a human error.
- Experience: AGENTS.md is skipped by default when CLAUDE.md exists
- One comment says even a ~/CLAUDE.md prevents any AGENTS.md from being read.
- To read both, switch the Project instructions setting to claude-md-and-agents-md.
- Many commenters say existing workarounds work fine
- One comment uses ln -s AGENTS.md CLAUDE.MD in new projects.
- Another keeps a CLAUDE.md that references @AGENTS.md and says it still works.
- Counterpoint: feature flags are normal practice
- One view is that separating deployment from activation is a standard distributed-systems approach.
- Others still criticized the failure to decouple flags from telemetry and the lack of any warning.
- Complaints about a startup message and other telemetry-gated features
- One comment says Claude Code now prints agents-md: no CLAUDE.md found; AGENTS.md loaded on every startup.
- Another says Remote control also works only with telemetry enabled.
How to Apply
- Run the canary test in an empty folder
- Create an empty directory with an AGENTS.md containing a canary word and ask for it with claude -p.
- Run it twice in a shell with telemetry off and check the second session.
- Add a one-line CLAUDE.md to repos that use AGENTS.md
- Run echo '@AGENTS.md' > CLAUDE.md at each repo root and commit it.
- This matters most for teams that block nonessential traffic via telemetry or gateway policy.
- Link shared skills with a symlink
- Keep skills in .agents/skills and link .claude/skills to ../.agents/skills.
- Use the link instead of /import copies, which drift from the source.
- Upgrade to v2.1.281 or later and re-verify
- After updating, rerun the canary test with telemetry off.
- Even if it passes, remember AGENTS.md is skipped by default when a CLAUDE.md exists.
Try It
# Paste into your shell (bash/zsh): check whether AGENTS.md loads with telemetry off
mkdir /tmp/canary && cd /tmp/canary
echo 'The canary word is PERIWINKLE.' > AGENTS.md
export DISABLE_TELEMETRY=1
# Run twice. The first session only fetches the flag; the second uses it
for i in 1 2; do
claude -p 'What is the canary word from the project instructions? Answer NONE if you have none. Do not read files.'
done
# If you get NONE, work around it: import via CLAUDE.md
echo '@AGENTS.md' > CLAUDE.md
claude -p 'What is the canary word from the project instructions? Answer NONE if you have none. Do not read files.'
# Next to try: share skills
# ln -s ../.agents/skills .claude/skillsTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques