Appearance
0014: Keep agent instructions in AGENTS.md and .agents
Status: accepted
Date: 2026-12-05
PR: #32
Context
Claude Code reads CLAUDE.md, and it finds skills and agents in .claude/. Other coding agents read AGENTS.md, and they do not read CLAUDE.md. Claude Code now reads AGENTS.md by default when no CLAUDE.md exists. Claude Code still reads skills and agents only from .claude/.
Options considered
- Keep a one-line
CLAUDE.mdthat importsAGENTS.md: Claude Code readsAGENTS.mdby default, so the extra file is not necessary. - Make
CLAUDE.mda symlink toAGENTS.md: the editor tools of Claude Code do not write through it. - Copy the facts into
AGENTS.mdas prose: the same fact would be in two places. - Keep skills and agents only in
.claude/: other agents would not find them.
Decision
AGENTS.md is the top layer of the docs, and CLAUDE.md goes away. AGENTS.md holds only @ import lines. Claude Code loads the files that they name, and other agents read them as a list of files.
Skills are in .agents/skills/, and agents are in .agents/agents/. .claude/skills and .claude/agents are symlinks to them, so Claude Code still finds them. .claude/ keeps only what Claude Code alone reads, such as settings.json.
AGENTS.md loads in each session. A note that only some tasks need goes on a knowledge page, and AGENTS.md does not import that page.
The symlinks need macOS, Linux or a Git with symlinks turned on.
Consequences
Claude Code, Codex, Cursor and other agents read the same instructions. The instructions of the repository do not depend on the file name of one vendor. Skills and agents are in a folder that each tool can use, and tools such as skills can install into it.