Load one instruction source in both harnesses - #43
Merged
Merged
Conversation
Codex reads AGENTS.md. Claude Code reads CLAUDE.md, and only some of its versions and settings also read AGENTS.md. A CLAUDE.md that only imports AGENTS.md makes both harnesses load the same text. A documentation test keeps it a bare import, and the exact package allowlist keeps it out of the npm tarball. AGENTS.md also gains facts that fresh sessions had to rediscover: the check command and its cost, which sibling repository owns the Service API, the Plan format, and Skill packaging, and when to get an independent review through cross-review from either harness. That review covers what machine consumers such as the Skill depend on: the accepted API-contract range and Plan formats, command names and flags, handled error values, and exit statuses. Human-readable detail text and progress lines are left out, because docs/errors.md tells consumers not to branch on them. Naming all output and errors would cover most CLI changes. In firstdraft, a trigger that broad matched 188 of 250 PRs, and 97 of those recorded no review.
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.
Summary
CLAUDE.mdcontaining@AGENTS.md, so Claude Code and Codex load the same instructions.codex-reviewfrom Claude Code,$claude-reviewfrom Codex).Part of Step 3 of the 2026-09-29 agent-documentation audit; the matching firstdraft change is firstdraft/firstdraft#910.
Docs: updated AGENTS.md and docs/README.md.
Validation
npm ci --ignore-scripts && npm run check: pass.Review
cross-review
codex-review, new session overorigin/main..HEAD, with firstdraft'sdocs/review-focus.mdas focus text. Verdict: Approve, no findings (session26de7e04-ec1b-4079-a3d8-15dcea2f1ab0).