Repository navigation
feat: init writes CLAUDE.md importing AGENTS.md (#141) - #142
Conversation
Claude Code loads CLAUDE.md and never AGENTS.md, so a fresh hub scaffold was invisible to it: gh codecrew init, then claude, started blind. The new file's first line is the @AGENTS.md import; a comment says why and where Claude-specific instructions go. Idempotent; spokes unchanged.
There was a problem hiding this comment.
The implementation and focused tests are sound, and the live hub/spoke checks pass. One documentation consequence needs fixing before approval:
docs/identities.md lines 278–283 describe the teardown inventory and list the CodeCrew files to delete or keep: .codecrew.yml, roles/, AGENTS.md, and ROADMAP.md. After this change, hub-mode init also creates CLAUDE.md, so following that inventory leaves a CodeCrew-generated bridge file behind. Please add CLAUDE.md to that teardown list (with any hub-only qualification you consider useful). This is part of M6-R9’s promised teardown inventory and is now stale because of this PR.
The inventory promised by M6-R9 must name every file init writes (checky, PR #142).
|
Fixed in |
There was a problem hiding this comment.
Fix round verified cold. The teardown inventory now names CLAUDE.md, correctly marks it hub-only, and tells adopters to keep a pre-existing file. This matches scaffold(): hub mode adds CLAUDE.md, while the existing-path check reports it skipped before any write. The fix commit changes only docs/identities.md. go test ./... passes, and both PR checks are green. The previous M6-R9 finding is resolved with no regression found.
Closes #141
The footgun: Claude Code loads
CLAUDE.mdand neverAGENTS.md(Anthropic's memory docs);initwrote onlyAGENTS.md. So the path the README is about to lead with —gh codecrew init, thenclaude, then "Let's build this project!" — started blind on the harness most adopters reach for. Found while assessing #140.The fix: hub-mode
initalso writesCLAUDE.mdwhose first line is@AGENTS.md(Claude Code's import syntax, so both harnesses read one entry point), followed by an HTML comment saying why and where Claude-specific instructions go (comments are stripped from context, so it costs no tokens). Same idempotence as the other scaffold files; spokes still get only the pointer.Tests: hub scaffold writes it with the import on line 1 (and not in backticks — that would make it literal); an existing
CLAUDE.mdis kept and reported skipped; the spoke scaffold writes neitherAGENTS.mdnorCLAUDE.md.Docs: README's five-minute block and the quickstart's §1 name the file as "v1.0.1+"; CHANGELOG
[Unreleased]entry. A v1.0.1 patch release follows the merge (plan item 5, recorded on #141); #140's README rewrite then carries the bare prompt.Requirement: M6-R9.