Key points
- AGENTS.md is the open format for coding agents: Codex, Cursor, GitHub Copilot, Gemini CLI and many other tools read it.
- CLAUDE.md is Claude Code's context file. With the import line @AGENTS.md it pulls in the shared rules, so you maintain one source.
- Put in commands, project structure, conventions and clear boundaries. Leave out secrets, long docs and anything your linter already enforces.
- Keep both files short (under 200 lines) and add to them whenever the agent repeats a mistake.
PebbleByte, a software agency in Vienna, works with coding agents in client projects every day and shows engineering teams how to do it safely in our agentic coding workshops. The ingredient that matters most is almost always the same: good context. This generator builds it in a few minutes, using the structure we use in our own repos.
Sources
- AGENTS.md: official description of the format
- Anthropic: Claude Code memory and CLAUDE.md
- Anthropic: Claude Code best practices
- OpenAI: AGENTS.md in Codex
Last reviewed: