Skip to content

Add AGENTS.md#9582

Open
aclark4life wants to merge 7 commits intomainfrom
copilot-instructions
Open

Add AGENTS.md#9582
aclark4life wants to merge 7 commits intomainfrom
copilot-instructions

Conversation

@aclark4life
Copy link
Copy Markdown
Member

@aclark4life aclark4life commented Apr 22, 2026

Changes proposed in this pull request:

  • Add AGENTS.md to orient agents with project layout, build/test/lint commands, and six Pillow-specific facts that code review on recent AI-assisted PRs showed it commonly gets wrong.

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
@radarhere radarhere changed the title Add .github/copilot-instructions.md Add AGENTS.md Apr 22, 2026
Co-authored-by: Andrew Murray <[email protected]>
@aclark4life aclark4life force-pushed the copilot-instructions branch from 1d2cfe2 to d9fb08b Compare April 22, 2026 23:54
Not actionable for agents — knowing workflow names and triggers
does not help write better code.

Co-authored-by: Copilot <[email protected]>
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Apr 23, 2026

Is AGENTS.md vendor neutral?

Which of the major vendors support it? (Links to docs, please.)

@radarhere
Copy link
Copy Markdown
Member

https://github.com/agentsmd/agents.md

A simple, open format for guiding coding agents adopted by more than 60,000 open-source projects and agent frameworks including:
... Cursor ... VSCode ... Copilot

https://agents.md/

@hugovk
Copy link
Copy Markdown
Member

hugovk commented Apr 24, 2026

And Claude? Is there one that supports it as well?

@aclark4life
Copy link
Copy Markdown
Member Author

And Claude? Is there one that supports it as well?

anthropics/claude-code#6235

@radarhere
Copy link
Copy Markdown
Member

https://code.claude.com/docs/en/memory.md

AGENTS.md

Claude Code reads CLAUDE.md, not AGENTS.md. If your repository already uses AGENTS.md for other coding agents, create a CLAUDE.md that imports it so both tools read the same instructions without duplicating them. You can also add Claude-specific instructions below the import. Claude loads the imported file at session start, then appends the rest:

@AGENTS.md

## Claude Code

Use plan mode for changes under `src/billing/`.

@aclark4life
Copy link
Copy Markdown
Member Author

I'm not in a hurry to add CLAUDE.md

@radarhere radarhere force-pushed the copilot-instructions branch from cf22165 to 6305a17 Compare April 24, 2026 13:35
@radarhere
Copy link
Copy Markdown
Member

Ok, sure. It seemed harmless enough to me, considering it can be hidden within .claude.

@aclark4life
Copy link
Copy Markdown
Member Author

Ok, sure. It seemed harmless enough to me, considering it can be hidden within .claude.

It may be … but I'd like to wait for a more compelling reason to add it. Right now we're adding AGENTS.md because we believe that to be helpful to most agents which I think is more than enough for our purposes here e.g. Copilot should check that file both locally and on CI.

@hugovk
Copy link
Copy Markdown
Member

hugovk commented Apr 24, 2026

anthropics/claude-code#6235 3,696 thumbs up! Let's add a few more :)

code.claude.com/docs/en/memory.md

says:

AGENTS.md

Claude Code reads CLAUDE.md, not AGENTS.md. If your repository already uses AGENTS.md for other coding agents, create a CLAUDE.md that imports it so both tools read the same instructions without duplicating them. You can also add Claude-specific instructions below the import. Claude loads the imported file at session start, then appends the rest:

@AGENTS.md

Let's make a .claude/CLAUDE.md containing:

@../AGENTS.md

@aclark4life
Copy link
Copy Markdown
Member Author

I'm not sure who or why or what we are adding it for, but I don't feel that strongly about it so @radarhere take it away! 😄

@aclark4life
Copy link
Copy Markdown
Member Author

I'm not sure who or why or what we are adding it for, but I don't feel that strongly about it so @radarhere take it away! 😄

One reasonable answer is "make repo friendly for AI contributors" and right now that means both files. 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants