A recent experiment by the team behind KoalaFix has cracked open the black box of how modern AI coding agents ingest project instructions. By embedding unique codewords into AGENTS.md, CLAUDE.md, and Copilotβs configuration files, the researchers discovered that tool-specific behaviors vary wildly. The tests, conducted on 30 November 2026, used Claude Code 2.1.331, Codex CLI 0.164.0, and GitHub Copilot CLI 1.0.114 to determine which files are actually parsed at startup. The results highlight a dangerous fragmentation in the developer experience, where adding one configuration file can silently disable another.
Claude Codeβs Silent Priority Shift
The most critical finding involves Claude Codeβs behavior when multiple instruction files coexist. When only an AGENTS.md file was present, the agent correctly identified the codeword 'KIWI'. However, the moment a CLAUDE.md file was added to the repository, Claude Code ignored AGENTS.md entirely, reporting only 'PEAR'. This behavior aligns with Anthropicβs changelog for version 2.1.277, which introduced AGENTS.md support but restricted it to projects lacking a CLAUDE.md. For teams using mixed tools, this means a simple addition of a Claude-specific rule can inadvertently strip shared context from every session, with no warning provided to the developer.
Codex and Copilotβs Distinct Blind Spots
Codex CLI demonstrated a different kind of rigidity. It consistently read AGENTS.md ('KIWI') but ignored CLAUDE.md ('PEAR') unless explicitly configured. By adding project_doc_fallback_filenames = ["CLAUDE.md"] to its configuration, Codex could be forced to read the Claude-specific file, but only in folders where AGENTS.md was absent. Meanwhile, GitHub Copilot CLI presented a deceptive interface. When asked directly, it claimed to read no files, returning 'NONE'. However, a deep dive into its local session logs revealed that the model had actually ingested 'KIWI', 'PEAR', and 'PLUM'. The model simply refused to reveal this due to a built-in confidentiality instruction, proving that user-facing answers are not always a reliable proxy for system behavior.
Practical Mitigations for Mixed-Tool Repos
To prevent these silent failures, the KoalaFix team recommends a standardized approach: maintain a single AGENTS.md at the repository root for all shared rules. If a CLAUDE.md is necessary, its first line must be @AGENTS.md to ensure Claude Code imports the shared context. This workaround restores the 'KIWI' codeword in Claude Codeβs output. Additionally, developers should stop trusting the chat interface for debugging and instead use native commands like /memory in Claude Code or copilot instruction list to verify exactly which files are being loaded into the context window.
Key Takeaways
- Claude Code ignores AGENTS.md if CLAUDE.md exists, unless
@AGENTS.mdis imported or config is adjusted. - Codex CLI defaults to ignoring CLAUDE.md unless fallback filenames are explicitly set in
config.toml. - GitHub Copilot CLI reads all files but may hide this fact in chat responses due to confidentiality prompts; use
copilot instruction listfor truth. - Cursor rules were not read by any of the three tested command-line agents.
The Bottom Line
The fragmentation of agent configuration is a feature for vendors but a bug for users. Until a universal standard emerges, teams must actively audit their instruction files to avoid context loss.