Make CLAUDE.md a short router, and move each topic's rules to a file under rules/ that loads when a session touches a matching file

This commit is contained in:
2026-10-13 00:24:17 +02:00
parent 72fd688d81
commit 6f8a650ac0
22 changed files with 183 additions and 130 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ usage: loop-claude <task>
Run it anywhere inside a project checkout whose README.md has ## Goals and ## Audience, the
premises; the task runs at the checkout root. Each cycle a worker runs the task. A judge then reads
the transcript's end, the premises, and the records: the project's AGENTS.md and docs/decisions.md
and the human's ~/.claude/CLAUDE.md, where they exist. It rules whether the chunk, the work of one
and the human's ~/.claude/CLAUDE.md and ~/.claude/rules/*.md, where they exist. It rules whether the chunk, the work of one
PR, is finished. A chunk stays unfinished until each answer the human typed in it that a later chunk
could need is recorded: the premises or the records hold it, or the transcript shows the worker
writing it into the premises, AGENTS.md, docs/decisions.md, todo.md or a code comment. A choice the
@@ -44,8 +44,8 @@ loop-claude --help succeeds: the loop reloads into the edited script.
Exit 1, saying why, when:
- no task is given
- git cannot start or finds no checkout
- README.md, or AGENTS.md, docs/decisions.md or ~/.claude/CLAUDE.md where they exist, cannot be
read or is not UTF-8
- README.md, or AGENTS.md, docs/decisions.md, ~/.claude/CLAUDE.md or ~/.claude/rules/*.md where they
exist, cannot be read or is not UTF-8
- README.md holds no premises
- the models file cannot be read or written
- claude leaves no transcript