Repository navigation
docs: AGENTS.md for every agent; CLAUDE.md imports it - #409
Merged
Merged
Conversation
The repo's agent instructions move from CLAUDE.md to AGENTS.md, the file Codex, Cursor and other agents read, in the root and each area. Each directory keeps a one-line CLAUDE.md that imports it (`@AGENTS.md`; the root's imports CONTRIBUTING.md too): Claude Code reads AGENTS.md only as a fallback, which a CLAUDE.md overrides and which needs its feature flags. References in docs, code comments and the markdown bench's sample follow the move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
foxnne
force-pushed
the
docs/agents-md
branch
from
October 14, 2026 17:13
eed63b5 to
86a7643
Compare
foxnne
marked this pull request as ready for review
October 14, 2026 17:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes
Other coding agents can now read the repo's instructions.
AGENTS.md. The instructions in the root and insdk/,app/,core/,backend/,plugins/,tests/andweb/now live inAGENTS.md, the file Codex, Cursor and other agents read.CLAUDE.mdstub. It reads@AGENTS.md. The root stub importsCONTRIBUTING.mdtoo, since other agents don't follow@imports and the rootAGENTS.mdnow tells them to read it.AGENTS.mdsupport: since 2.1.277 Claude Code readsAGENTS.md, but only when noCLAUDE.mdexists in the directory chain. That support also depends on Claude Code's feature flags: on Bedrock, Vertex or Foundry, or with telemetry off, it isn't there. A stub that imports the file loads it every time, while the content stays in one place. The rootAGENTS.mdsays to edit theAGENTS.mdand leave the stubs alone.CONTRIBUTING.md;docs/PITFALLS.md;build.zig,build.zig.zon,sdk/,app/layout/,src/editor/Editor.zig);bench-markdown, which embedded the rootCLAUDE.mdas its medium sample and would otherwise have measured a two-line stub.core/fuzzy.zig's tests keep the string"CLAUDE.md". It's a test input for case-folding, not a reference to the file.SDK impact
sdk/AGENTS.mdandsdk/CLAUDE.mdaren't insdk/build.zig.zon's.paths.core/is vendored whole into the tarball, stub included, and the stub resolves there too.Verified
scripts/check-fmt.shpasses.zig build -lconfigures.zig build bench-markdownruns on the new sample ("medium (AGENTS.md), 19106 bytes").CLAUDE.mdreference left outside the stubs, the rootAGENTS.md's note about them, andcore/fuzzy.zig's test strings.🤖 Generated with Claude Code