Claude Code · tool · fg-0482

Claude Code ignores AGENTS.md when the repository also has a CLAUDE.md

Rules written in AGENTS.md are not followed while CLAUDE.md rules are

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

Cause

Claude Code reads AGENTS.md directly only when no CLAUDE.md or CLAUDE.local.md exists in the working directory or above it, and only from v2.1.277. When both kinds of file exist, only the CLAUDE.md files load.

Fix

Import AGENTS.md from CLAUDE.md so one file serves Claude Code and the other agents, or set Project instructions to claude-md-and-agents-md in /config (or pluginConfigs in ~/.claude/settings.json) so both load. Update Claude Code first.

Apply

echo '@AGENTS.md' >> CLAUDE.md && claude update

Affects: Claude Code before v2.1.277 (no direct AGENTS.md support), and any version when a CLAUDE.md is present, as of 2026-10

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp