Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ a coding agent working in this repository. For repository shape, ownership
boundaries, the component model, and validation commands, read
[`README.md`](README.md) first.

This file lives at the repository root only. Do not add a nested copy —
Codex concatenates every `AGENTS.md` it finds rather than having the nearest
one override, so a nested copy would compound instructions instead of
scoping them; use a nested `CLAUDE.md` or a `.claude/rules/` overlay for a
subtree-local instruction instead.
This file lives at the repository root only. Do not add a nested copy of
it — its content (dogfooding, cross-doc reconciliation, PR conventions) is
repository-wide, not subtree-scoped, so a nested copy would duplicate
root-wide instructions rather than add anything new. For a genuine
subtree-local instruction, add a nested `AGENTS.md` in that subtree instead
(or `AGENTS.override.md` to fully replace rather than append): Codex
concatenates every `AGENTS.md` it finds root-down, joining them with blank
lines, and a file closer to the working directory is read later in that
combined prompt and can supersede the broader guidance above it —
`AGENTS.override.md` at a directory level replaces rather than appends.
Codex does not read a nested `CLAUDE.md` or a `.claude/rules/` overlay for
this purpose.

## Before changing anything here

Expand Down
34 changes: 34 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@AGENTS.md
Comment thread
kyle-sexton marked this conversation as resolved.
Resolved

## Claude Code

<!--
Provisional shape: root CLAUDE.md = @AGENTS.md import + this delta section,
per code.claude.com/docs/en/memory's own documented pattern for repos that
already have an AGENTS.md.

Open question this repository has not fully closed: whether managed Code
Review's CLAUDE.md consumption expands @import the same way normal session
loading does. code.claude.com/docs/en/memory describes CLAUDE.md @import
expansion as unconditional ("Imported files are expanded and loaded into
context at launch") with no carve-out for Code Review. By contrast,
code.claude.com/docs/en/code-review explicitly calls out REVIEW.md, and only
REVIEW.md, as NOT expanding @import ("pasted verbatim... referenced files
are not read into the prompt"). The absence of a similar carve-out for
CLAUDE.md is documentation-level evidence that CLAUDE.md's @AGENTS.md import
IS expanded for Code Review too — but it is not an explicit statement to
that effect, and it is not empirically verified on a live repo (Code Review
is Team/Enterprise-only; untestable on a Max-plan subscription). Re-verify
empirically, or get Anthropic support confirmation, before relying on a
mostly-@AGENTS.md CLAUDE.md for managed Code Review's nit-level checks on a
Team-plan rollout. Trigger: this repository or any consumer gains
Team/Enterprise Code Review access.
-->

Review-specific guidance belongs in `REVIEW.md`, not here. That file does
not exist in this repository yet (tracked separately); once it lands, link
to it here instead of naming it in prose. Managed Code Review reads
`CLAUDE.md` as general project context (nit-level findings only) and
`REVIEW.md` as review-only, highest-priority instructions — duplicating
review rules into this file would create two sources of truth for the same
behavior.