2026-09-19 Native AGENTS.md Support Across Coding Agents
What I set out to do
Find out whether Claude Code’s new AGENTS.md support needs a setting, then check the same for Gemini.
What I actually did
- Claude Code: native support shipped in v2.1.277 (announcement, docs). The default mode
claude-md-or-agents-mdreadsAGENTS.mdonly when there is noCLAUDE.md/CLAUDE.local.mdin the working directory or above. The Project instructions option in/configswitches modes; declaratively it ispluginConfigs."agents-md@builtin".options.instructionFiles(user or managed settings only). The feature turns off silently when feature flags aren’t fetched (Bedrock or other third-party providers, telemetry off), on the first session after an upgrade, or underdisableAllHooks/allowManagedHooksOnly. None of those apply here. EveryAGENTS.mdin the dotfiles repo already has a siblingCLAUDE.mdwith@AGENTS.md, which the docs say to keep (no double load, and it still works when native support is off). The global~/.claude/CLAUDE.mdhas to stay aCLAUDE.mdbecause native support only looks in the working directory and the directories above it. Result: no change needed. - Antigravity CLI (
agy1.2.3): thegemini/gemini.nixmodule configures agy, not Gemini CLI. The Antigravity docs say it readsGEMINI.mdorAGENTS.mdat the workspace root. A behavioural canary probe confirmedAGENTS.mdloads even withcontext.fileName = "GEMINI.md"set, which is probably a leftover from Gemini CLI. - Gemini CLI 0.52.0: canary probe showed it ignores
AGENTS.mdand readsGEMINI.md. It would needcontext.fileName: ["AGENTS.md", "GEMINI.md"]. It turned out to be an unmanaged global npm install, with no live~/.gemini/settings.json(only.bak/.backup/.origcopies) and nothing referencing it in the repo. Uninstalled it withnpm uninstall -g @google/gemini-cli.
What was striking
agy -pwithout--add-dirloads no workspace instruction files, not evenGEMINI.md. Only the global~/.gemini/GEMINI.mdloads. The first probe returned NONE for both files, and only aGEMINI.mdcontrol showed that the probe was broken, not the feature. A recall-style canary (“what is the canary word”) was weaker than a behavioural one (“end every reply with X”).- Left the
~/.geministate (oauth_creds.json,google_accounts.json,trustedFolders.json,state.json,settings.json.*) in place: agy shares the directory, and which tool owns each file is unclear.