Repository navigation
docs: split AGENTS.md into a root file and package-local ones - #95
Merged
Merged
Conversation
AGENTS.md had grown to 1,582 lines and 102 KB, loaded whole into every agent run and skimmed by every person. The root file keeps what binds the whole tree — the one rule, layer discipline, golden files and FMA, the pool and the allocation gate, parallel equals serial, transitions, open questions and the cross-cutting part of Scope — and ends with an index of eleven package files: data, stat, scale, coord, geom, render, three, ir, interact, spec and backend. Each holds that package's "things that will bite", and geom and coord their "deliberately not done" lists. The text is moved, not edited: every non-blank line of the old file appears exactly once in the new ones, in its original order within each file, with relative links rebased by "../". The only new prose is a two-sentence header per package file, the index and one pointer in Scope. Root is now 328 lines and 21 KB; AGENTS.md#scope, which CONCEPT.md links to, still exists. Fixes #87 Claude-Session: https://claude.ai/code/session_015BfhXWEPyCFY4fZhg5nzsh
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.
Fixes #87.
Pure move. A script split the file block by block (each bold-lead rule, each "Deliberately not done" paragraph) and asserted that every non-blank line of the old AGENTS.md appears exactly once in the new files, modulo the
../prefix on relative links. All relative links resolve. Only new prose: a two-sentence header per package file, the index in root, one pointer in Scope.AGENTS.md==on device coords, transitions, open questions, cross-cutting Scope, indexgeom/AGENTS.mdcoord/AGENTS.mdbackend/AGENTS.mdthree/AGENTS.mdrender/AGENTS.mdscale,stat,data,interact,spec,irWhere to put a rule was a judgement call; the test I used was "does it bind more than one package" → root. Easy to move a block if you see it differently.
AGENTS.md#scope(linked from CONCEPT.md) still exists.https://claude.ai/code/session_015BfhXWEPyCFY4fZhg5nzsh