# AGENTS.md and CLAUDE.md

> Which instructions file each of 17 coding agents reads, and a generator that writes one AGENTS.md plus the small files that make Claude Code and the others read it too.

_Updated November 23, 2026_

Most agents read AGENTS.md. Claude Code reads CLAUDE.md first and falls back to AGENTS.md only when there is no CLAUDE.md; Qwen Code reads QWEN.md and AGENTS.md; Antigravity reads AGENTS.md or GEMINI.md. Keeping one AGENTS.md and pointing the others at it means instructions are written once.

| Agent | Reads |
| --- | --- |
| [Claude Code](https://envhaven.com/agents/claude-code) | `CLAUDE.md`, `.claude/CLAUDE.md`, `CLAUDE.local.md`, `~/.claude/CLAUDE.md`, `.claude/rules/*.md` |
| [Codex](https://envhaven.com/agents/codex) | `AGENTS.md`, `AGENTS.override.md`, `~/.codex/AGENTS.md` |
| [OpenCode](https://envhaven.com/agents/opencode) | `AGENTS.md`, `~/.config/opencode/AGENTS.md` |
| [Antigravity CLI](https://envhaven.com/agents/antigravity-cli) | `AGENTS.md`, `GEMINI.md`, `.agents/AGENTS.md`, `.agents/rules/*.md`, `~/.gemini/AGENTS.md` |
| [Grok Build](https://envhaven.com/agents/grok-build) | `AGENTS.md`, `CLAUDE.md`, `CLAUDE.local.md`, `.grok/rules/*.md` |
| [Kimi Code CLI](https://envhaven.com/agents/kimi-code-cli) | `AGENTS.md`, `.kimi-code/AGENTS.md`, `~/.kimi-code/AGENTS.md`, `~/.agents/AGENTS.md` |
| [Muse Code](https://envhaven.com/agents/muse-code) | `AGENTS.md`, `CLAUDE.md`, `.agents/AGENTS.md`, `.claude/CLAUDE.md` |
| [OpenClaw](https://envhaven.com/agents/openclaw) | `AGENTS.md`, `SOUL.md`, `IDENTITY.md`, `USER.md`, `MEMORY.md` |
| [Hermes Agent](https://envhaven.com/agents/hermes-agent) | `.hermes.md`, `HERMES.md`, `AGENTS.md`, `CLAUDE.md`, `.cursorrules` |
| [Pi](https://envhaven.com/agents/pi) | `AGENTS.md`, `AGENTS.override.md`, `CLAUDE.md`, `~/.pi/agent/AGENTS.md` |
| [Goose](https://envhaven.com/agents/goose) | `AGENTS.md`, `.goosehints`, `~/.config/goose/.goosehints` |
| [Qwen Code](https://envhaven.com/agents/qwen-code) | `QWEN.md`, `AGENTS.md`, `~/.qwen/QWEN.md` |
| [Mistral Vibe](https://envhaven.com/agents/mistral-vibe) | `AGENTS.md`, `~/.vibe/AGENTS.md` |
| [Factory Droid](https://envhaven.com/agents/factory-droid) | `AGENTS.md`, `CLAUDE.md`, `.factory/AGENTS.md`, `~/.factory/AGENTS.md` |
| [Kiro](https://envhaven.com/agents/kiro) | `AGENTS.md`, `.kiro/steering/*.md`, `~/.kiro/steering/*.md` |
| [Amp](https://envhaven.com/agents/amp) | `AGENTS.md`, `~/.config/amp/AGENTS.md` |
| [fx](https://envhaven.com/agents/fx) | `AGENTS.md`, `~/.fx/AGENTS.md` |

## Keep reading

- [AGENTS.md](https://envhaven.com/glossary/agents-md)
- [CLAUDE.md](https://envhaven.com/glossary/claude-md)
- [Agent skills](https://envhaven.com/glossary/agent-skills)

Source: https://envhaven.com/agents-md
