Skip to content

docs(agents): AGENTS.md is the single entry point; CLAUDE.md removed - #115

Merged
ryota-murakami merged 2 commits into
mainfrom
codex/agents-md-single-entry
Oct 22, 2026
Merged

ryota-murakami merged 2 commits into
mainfrom
codex/agents-md-single-entry

Conversation

@ryota-murakami

@ryota-murakami ryota-murakami commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The owner asked (2026-10-22): merge CLAUDE.md into AGENTS.md and delete it ("CLAUDE.mdの内容をAGENTS.mdにマージして削除して"). Claude Code and Codex both load AGENTS.md as the project instructions, so the pointer file is no longer needed, and a CLAUDE.md in the repository would make Claude Code read it instead of AGENTS.md.

  • AGENTS.md: a new opening paragraph says AGENTS.md is the single operational entry point for every coding agent (Codex, and Claude Code v2.1.281 or later), and that a CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the repository or a directory above it would make Claude Code read that file instead. CLAUDE.md leaves /ship's documentation roots.
  • CLAUDE.md: deleted. Its only content pointed to AGENTS.md.
  • README.md: the entry sentence says Codex and Claude Code load AGENTS.md; the CLAUDE.md sentence goes.
  • .gitignore: the !/CLAUDE.md exception goes. With the user-global ignore rule, a local CLAUDE.md now stays untracked, as intended.

No other tracked file names CLAUDE.md (git grep). The change was made in the owner's session and moved here unchanged, so that Cycle 0049's PR-B1 checkout stays clean (Issue #107, Owner decisions D24).

Observed in a Claude Code session on 2026-10-22 with this change in the working tree and no CLAUDE.md in the repository: the session loaded the repository's AGENTS.md as its project instructions.

Review

  • Local CodeRabbit CLI 0.9.1 (coderabbit review --agent --committed --base-commit 36a83b4 -c .coderabbit.yaml AGENTS.md; configuration valid; free CLI allowance): completed, 4 files, 1 minor finding, fixed in the second commit: README.md said that Claude Code always loads AGENTS.md, hiding the condition AGENTS.md states. It now says Claude Code loads it while no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md overrides it.
  • open-code-review-delegate: 1 of 4 files eligible (.gitignore), reviewed by the host: no finding (the removed exception only stops sharing a file that must not exist). AGENTS.md, CLAUDE.md and README.md are default exclusions (unsupported_ext), reviewed by the host and CodeRabbit.

Checks

  • node --test .codex/restore-product-context.test.mjs: 6 of 6 pass. The hook prints ## Mandatory entry and ## Owner directions in force, which this change does not touch.
  • Required CI on the exact head.

…(owner, 2026-10-22)

The owner asked to merge CLAUDE.md into AGENTS.md and delete it. Claude Code
(v2.1.281 or later) and Codex both load AGENTS.md as the project instructions,
so the pointer file is no longer needed.

- AGENTS.md: an opening paragraph says it is the single operational entry
  point for every coding agent, and that a CLAUDE.md, .claude/CLAUDE.md or
  CLAUDE.local.md in the repository or a directory above it would make Claude
  Code read that file instead; CLAUDE.md leaves /ship's documentation roots.
- README.md: Codex and Claude Code load AGENTS.md; the CLAUDE.md sentence goes.
- .gitignore: the CLAUDE.md exception goes.
@ryota-murakami
ryota-murakami merged commit 068fec6 into main Oct 22, 2026
5 of 21 checks passed
@ryota-murakami
ryota-murakami deleted the codex/agents-md-single-entry branch October 22, 2026 10:25
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.

1 participant