Preflight Checklist
Type of Behavior Issue
Claude ignored my instructions or configuration
What You Asked Claude to Do
~/.claude/CLAUDE.md includes @~/.claude/AGENTS.md and states "Follow all rules in AGENTS.md above." The model confirms it sees AGENTS.md content when asked.
What Claude Actually Did
Instructions defined inline in CLAUDE.md are consistently followed. Identical instructions in @-included files are selectively ignored under the same conditions. Moving an instruction verbatim from AGENTS.md into CLAUDE.md improves compliance immediately, with no other change.
Observed examples (both instructions were already in AGENTS.md before being added to CLAUDE.md):
- "Always branch from
origin/<target>" — ignored from AGENTS.md; followed after adding to CLAUDE.md
- "NEVER add Co-Authored-By trailers referencing Claude or Anthropic" — ignored from
AGENTS.md; followed after adding to CLAUDE.md
Expected Behavior
Instructions in @-included files should carry the same authority as inline instructions, especially when the including file explicitly states they must be followed.
Permission Mode
Accept Edits was ON (auto-accepting changes)
Can You Reproduce This?
Yes, every time with the same prompt
Claude Model
Sonnet 4.6
Claude Code Version
2.1.74 (Claude Code)
Platform
AWS Bedrock
Additional Context
Related: #28158, #29236, #19471
Preflight Checklist
Type of Behavior Issue
Claude ignored my instructions or configuration
What You Asked Claude to Do
~/.claude/CLAUDE.mdincludes@~/.claude/AGENTS.mdand states "Follow all rules in AGENTS.md above." The model confirms it seesAGENTS.mdcontent when asked.What Claude Actually Did
Instructions defined inline in
CLAUDE.mdare consistently followed. Identical instructions in@-included files are selectively ignored under the same conditions. Moving an instruction verbatim fromAGENTS.mdintoCLAUDE.mdimproves compliance immediately, with no other change.Observed examples (both instructions were already in
AGENTS.mdbefore being added toCLAUDE.md):origin/<target>" — ignored fromAGENTS.md; followed after adding toCLAUDE.mdAGENTS.md; followed after adding toCLAUDE.mdExpected Behavior
Instructions in
@-included files should carry the same authority as inline instructions, especially when the including file explicitly states they must be followed.Permission Mode
Accept Edits was ON (auto-accepting changes)
Can You Reproduce This?
Yes, every time with the same prompt
Claude Model
Sonnet 4.6
Claude Code Version
2.1.74 (Claude Code)
Platform
AWS Bedrock
Additional Context
Related: #28158, #29236, #19471