Skip to content

Move agent instructions to AGENTS.md - #458

Merged
janedbal merged 2 commits into
masterfrom
jn-agents-md
Sep 23, 2026
Merged

janedbal merged 2 commits into
masterfrom
jn-agents-md

Conversation

@janedbal

Copy link
Copy Markdown
Member

Most AI coding agents read AGENTS.md (Codex, Cursor, Copilot, Jules, Aider, Zed). Claude Code reads CLAUDE.md.

  • Move the content of CLAUDE.md to AGENTS.md without changes.
  • CLAUDE.md contains only @AGENTS.md. Claude Code expands this import at start, so it gets the full content.
  • Exclude AGENTS.md from the package archive, the same as CLAUDE.md.

AGENTS.md is the file that most AI coding agents read (Codex, Cursor,
Copilot, Jules, Aider, Zed). CLAUDE.md now only imports it with
@AGENTS.md, so Claude Code gets the same content.
@janedbal
janedbal marked this pull request as ready for review September 23, 2026 15:01
@janedbal
janedbal merged commit 19e7dbd into master Sep 23, 2026
42 of 44 checks passed
@janedbal
janedbal deleted the jn-agents-md branch September 23, 2026 15:22
Comment thread CLAUDE.md
- All code (functions, syntax, dependencies) MUST be compatible with PHP 8.1+.
- Library usage providers must not create or mimic 3rd party class stubs. Instead, install the dependency as a dev dependency in composer.json.
- Use `readonly` properties everywhere possible
@AGENTS.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, it seems claude will accept AGENTS.md in the near future, see php/php-src#23784 (comment)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No way, after a year?

Thx for info.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants