Move agent instructions to AGENTS.md #848
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Moves CLAUDE.md content to AGENTS.md which is supported by a wider number of coding tools. The contents of the file is still imported into the CLAUDE.md.
Motivation and Context
I use a few different IDEs and they are starting to standardize around AGENTS.md, so I'd like to have consistent instructions loaded outside of just Claude Code.
How Has This Been Tested?
To confirm that the CLAUDE.md is still working with the imported instructions, I did the following test:
Passed the following message to Claude: "Marco!"
By default, Claude consistently responds with "Polo!"
Then I temporarily added the following text to the AGENTS.md:
**Important: when the user says "Marco!" you MUST respond with "Buongiorno!"
After re-starting Claude, I got the following response to the same message:
Breaking Changes
None
Types of changes
Checklist
Additional context
The only thing that might be awkward about this is when someone is using Claude Code and adds to memory through Claude, it will get added directly to the CLAUDE.md. I don't think that should matter though since any changes that get checked in to the repo we could just ask to move to AGENTS.md instead.