Repository navigation
Reduce the agent rules to one rules-only AGENTS.md - #295
Merged
Merged
Conversation
The root AGENTS.md now holds only the rules for most changes in the repository, opens with the shared block that sends agents to the `/cgp` skill and the knowledge base to learn CGP, and indexes the guide for each kind of task. The macro crates' rules move to a new crates/macros/README.md, and the test suite's rules to crates/tests/README.md, so the two nested AGENTS.md files are gone. The root no longer tells agents to start from `cgp::prelude`, which the trimmed prelude made wrong; it points to the skill's import table and the construct reference instead. The macro review keeps its heading as a pointer to the knowledge base's procedure, which holds its rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The macro crates' rules said expansion snapshots go in cgp-macro-tests, but every snapshot lives in the cgp-tests target that owns the macro's feature; the rule now says so. AGENTS.md drops its rule on post-codegen failures, which the test suite's rules state, and folds its fixture update into the rule on propagating a construct change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Overview
[claude-opus-5.5]
cgpnow has oneAGENTS.md, and it holds only the rules that apply to most changes in this repository. The rules for a single kind of task sit beside the code they govern: the macro crates' rules in a newcrates/macros/README.md, and the test suite's rules incrates/tests/README.md, so the two nestedAGENTS.mdfiles are gone. The root names the/cgpskill and the knowledge base as the place to learn CGP, instead of teaching it.Impact
cgp::prelude.cgp-teststarget that owns its feature, where every snapshot lives. The old rule namedcgp-macro-tests.crates/tests/README.mdand the knowledge base's writing guide.