Skip to content

docs: split AGENTS.md into a root file and package-local ones - #95

Merged
timzifer merged 1 commit into
mainfrom
docs/split-agents
Nov 20, 2026
Merged

timzifer merged 1 commit into
mainfrom
docs/split-agents

Conversation

@timzifer

Copy link
Copy Markdown
Owner

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.

File Lines Holds
AGENTS.md 328 (was 1,582) one rule, layer discipline, golden files, FMA rounding, one layout solver, pool and allocation gate, parallel = serial, Snapshotter vs Cloner, no == on device coords, transitions, open questions, cross-cutting Scope, index
geom/AGENTS.md ~460 device-space exceptions, batching, rows, stacks/groups, scratch, distribution marks, text, relational layouts, deliberately not done
coord/AGENTS.md ~215 Smith, Geo, Parallel, furniture, Cartesian identity, break-outs, deliberately not done
backend/AGENTS.md ~150 stilus/gg, pins, PDF fonts, gallery payloads, rect clips, canvas, window
three/AGENTS.md ~135 painter, depth key, occlusion, batching faces
render/AGENTS.md ~100 shared scales, tracks, layout row arithmetic, second axis, guides, watched/resized renders
scale, stat, data, interact, spec, ir 28–80 each their rules

Where 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

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
@timzifer
timzifer merged commit 00a03eb into main Nov 20, 2026
18 checks passed
@timzifer
timzifer deleted the docs/split-agents branch November 20, 2026 05:29
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.

AGENTS.md: split into a short root file and package-local files

1 participant