Agent Tool Radar field guide
Use AGENTS.md and CLAUDE.md without duplicating project rules
Use repository instructions for stable facts an agent needs while working in your project. AGENTS.md is an open convention; CLAUDE.md is Claude Code’s instruction file. Check your client and version before deciding how to share their content.
Choose the content before choosing the filename
A useful instruction file answers questions the repository cannot answer cheaply: which package owns a feature, which command validates that package, which generated files must not be edited and which architectural boundary matters. It should help an agent make a better decision on its next task.
For example, a monorepo contains a storefront and a background worker. The root instructions can explain the workspace structure and shared conventions. Storefront-specific instructions can name its browser checks. Worker-specific instructions can explain queue fixtures. Copying all three sets into a huge root file makes unrelated work harder to interpret and increases the chance of contradictory commands.
Keep secrets, short-lived task status and long API manuals elsewhere. Link to maintained documentation when detailed background is needed. Project instructions should identify the right source and decision, not reproduce a handbook whose examples will drift. A reusable procedure for release review or testing may belong in a skill instead.
- Root rules
Workspace map and shared conventions.
- Package rules
Commands and constraints for the affected package.
- Task procedure
A skill supplies a repeatable review or implementation method.
- Evidence
The agent reports the checks it actually performed.
Current Claude Code behavior deserves a version check
Claude Code’s current documentation describes native AGENTS.md loading, available from version 2.1.277, when no applicable CLAUDE.md or CLAUDE.local.md takes precedence under the default setting. When an applicable CLAUDE.md is present, the default loads those Claude instructions instead. The documented Project instructions setting can change that choice.
For sessions that need a shared file explicitly, Claude documents an @AGENTS.md import inside CLAUDE.md. This is also useful for older or differently configured sessions. Do not assume that simply placing both files in a directory causes every client to load both, or that a sentence saying “please read AGENTS.md” behaves identically to the documented import.
The practical step is to inspect the installed client, its loading setting and the actual session context. Do that before deleting an older compatibility file. Documentation can describe the latest behavior while your team still uses an earlier release or a surface with different support.
AGENTS.md and CLAUDE.md examples for a small monorepo
The following is an illustrative layout, not a universal discovery contract. Put the cross-client rules in AGENTS.md. If your Claude Code sessions need the import, keep the root CLAUDE.md short and add only genuinely Claude-specific guidance below it. Keep deeper package instructions near the files they govern.
Use verified package commands in the real file. The example deliberately focuses on ownership and boundaries so it does not pretend your project has a particular test script. A command copied from another repository is worse than a clear instruction to consult the package’s maintained scripts.
repository/
AGENTS.md
CLAUDE.md
packages/
storefront/
AGENTS.md
worker/
AGENTS.md
# Root AGENTS.md
Storefront UI belongs in packages/storefront.
Queue consumers belong in packages/worker.
Read the affected package instructions before editing.
Find validation commands in that package’s maintained scripts.
Do not edit generated API clients; update their schema source.
# Root CLAUDE.md, when an explicit shared import is needed
@AGENTS.mdCodex custom instructions use their own discovery rules
OpenAI’s current AGENTS.md guide describes a chain built from global guidance and project directories down to the current working directory. In each directory, AGENTS.override.md takes priority over AGENTS.md; configured fallback names are considered after those. This differs from assuming every file anywhere below the repository root is loaded automatically.
For a monorepo, start the session in the intended package or verify which instructions the session actually received. Keep shared architecture at the root and package-specific rules near the package. Do not copy Claude’s @import syntax into Codex instructions and assume the same loader implements it. Client-specific discovery is why a shared convention still requires a setup check.
Keep a single owner for each rule
If both files contain separate copies of the same architecture rule, one will eventually be changed without the other. Choose a canonical location and make the relationship visible. The import approach is easy to inspect in source control; a generated-copy approach needs a maintained generation command and drift check. Avoid introducing generation machinery for a tiny file unless it solves a real team need.
Do not describe all instruction files as interchangeable. A client can have distinct search roots, precedence and nested-file behavior. The AGENTS.md convention encourages a predictable repository location, but the client implements discovery. Review that client’s own documentation before relying on a nested override or a personal instruction file.
Treat changes to these files as changes to the development process. Review whether a new instruction applies to every task, whether it contradicts a narrower rule and whether it names an existing command or path. Remove obsolete exceptions when the architecture changes.
| Information | Recommended home | Reason |
|---|---|---|
| Shared repository boundaries | Canonical project instruction file | Relevant to routine work across clients. |
| Package-only validation details | Nearby package instructions | Keeps unrelated packages out of scope. |
| Repeated specialist workflow | A task-specific skill | Loaded when the procedure is relevant. |
| Secrets or credentials | Approved secret storage | Instructions should never distribute credentials. |
Troubleshoot loading before rewriting the prose
When an agent ignores a rule, first establish whether it received that rule. Check the working directory, filename and client’s loading evidence. In Claude Code, inspect the documented context or memory views and Project instructions setting. Check whether a CLAUDE.local.md changed the default selection. In another client, use its own discovery diagnostics.
If the file loaded, look for conflicts and ambiguity. “Run tests” leaves the agent to guess which package and script. “For storefront changes, use its maintained validation commands and report any unavailable check” is more operational. Long files can also bury the decision among irrelevant details; shorten the content around the tasks it must guide.
Finally, separate instructions from enforcement. A sentence telling the agent not to modify generated code does not change filesystem permissions. A sentence requiring approval does not configure a client approval policy. Use the platform’s real controls for access boundaries, and keep the instruction file as clear guidance about how the team expects work to proceed.
CLAUDE.md vs AGENTS.md
CLAUDE.md is Claude Code’s instruction-file convention; AGENTS.md is a shared convention used across coding agents. Put portable repository guidance in the shared file and keep client-specific behavior explicit. Current Claude Code documentation supports AGENTS.md loading with conditions, so the difference is no longer simply that one filename works and the other never does.
Does Claude Code support AGENTS.md?
Yes, current Claude Code documentation describes direct AGENTS.md support. By default, Claude reads it when there is no applicable CLAUDE.md or CLAUDE.local.md in the working directory or above. Support depends on the installed client and its Project instructions setting; inspect /memory to check loaded files. Where direct loading is unavailable, a CLAUDE.md containing @AGENTS.md is the documented import approach.
Documentation reviewed 2026-12-02 · Agent Tool Radar editorial. Source-based guidance; no independent benchmark implied.