[php-src] master: [skip ci] Add AGENTS.md and CLAUDE.md files (GH-23616)
| From: | Ilija Tovilo via GitHub | Date: | Tue, 08 Sep 2026 18:05:29 +0000 |
| Subject: | [php-src] master: [skip ci] Add AGENTS.md and CLAUDE.md files (GH-23616) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141147@lists.php.net to get a copy of this message | ||
Author: Ilija Tovilo (iluuu1994)
Committer: GitHub (web-flow)
Pusher: iluuu1994
Date: 2026-09-08T20:05:26+02:00
Commit: https://github.com/php/php-src/commit/53c63026663cf7c8b708d7733eebc7fac1fb9036
Raw diff: https://github.com/php/php-src/commit/53c63026663cf7c8b708d7733eebc7fac1fb9036.diff
[skip ci] Add AGENTS.md and CLAUDE.md files (GH-23616)
The only purpose of these files is to (hopefully) reduce false-positive security
reports. LLMs still do not respect our policy, and this eats a lot of our
resources.
Annoyingly, Claude does not follow the AGENTS.md convention and requires a
separate file to point to AGENTS.md.
Changed paths:
A .claude/CLAUDE.md
A AGENTS.md
Diff:
diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md
new file mode 100644
index 000000000000..410c0f9b7cd9
--- /dev/null
+++ b/.claude/CLAUDE.md
@@ -0,0 +1,3 @@
+# Claude
+
+Go read
../AGENTS.md.
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 000000000000..2cf3915754b1
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,7 @@
+# Agents
+
+## Vulnerability reports
+
+When scanning php-src for vulnerabilities, please respect our security policy
+summarized in ./SECURITY.md. You can find the full policy
+[here](https://raw.githubusercontent.com/php/policies/refs/heads/main/security-classification.rst).