AI assistants: move CLAUDE.md to AGENTS.md, with CLAUDE.md importing it #939
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#939
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The instructions for AI assistants live in
CLAUDE.md, which only Claude Code reads. Move them toAGENTS.md, the shared convention that Codex, GitHub Copilot, Cursor and others read, and keepCLAUDE.mdas a one-line import of it. Then every assistant a contributor uses gets the same rules.What exists today
CLAUDE.mdat the repository root is 99 lines: Working on Postulo, What this project promises, How the code is shaped, Before saying a change is done and Working with AI. It describes itself as "the short version for an AI assistant", and it defers todocs/PLAN.mdandCONTRIBUTING.md.README.md:131links it, andCONTRIBUTING.md:335says "CLAUDE.mdin the repository root tells an assistant how this project works; keep it current when the rules change."AGENTS.mdanywhere, in core or in any plugin or extension repository.How Claude Code reads AGENTS.md
From How Claude remembers your project, v2.1.277 and later:
AGENTS.mdis read only when there is noCLAUDE.mdin the working directory or above it. ACLAUDE.mdtakes precedence.claude-md-and-agents-mdin/config. That is a per-person setting, so the project can't rely on it.@pathimports work everywhere, on every version and setting. The documentation recommends aCLAUDE.mdthat contains@AGENTS.mdplus any Claude-only notes.CLAUDE.mda symlink toAGENTS.md: it needs Developer Mode or admin rights on Windows, a clone withoutcore.symlinksturns it into a one-line text file, and Claude's Edit and Write tools refuse to write through it.What would change
Move the content to
AGENTS.md. RenameCLAUDE.mdtoAGENTS.md, keeping its history (git mv). Reword it so that no sentence assumes one particular tool: "an AI assistant", not "Claude".A new
CLAUDE.mdis one import:Add a short Claude Code section only if something genuinely applies to Claude Code alone. Nothing does today.
Update the references.
README.md:131linksAGENTS.md.CONTRIBUTING.md:335namesAGENTS.mdas the file to keep current, and says thatCLAUDE.mdonly imports it.A check. A small test asserts that
CLAUDE.mdstill importsAGENTS.md. Otherwise somebody may later add rules toCLAUDE.mdby mistake, and only Claude would see them.The other repositories. No plugin or extension repository has either file today. If any gains assistant instructions (see #938's caution about tool-specific files), it should start with
AGENTS.mdand the same one-lineCLAUDE.md.Done when
/memorylistsCLAUDE.mdwithAGENTS.mdimported.AGENTS.md.