Measure each chunk's reading cost from its transcript and keep it in the comprehension history

This commit is contained in:
2026-10-08 15:40:43 +02:00
parent cefb297e14
commit 1b8142e7e5
14 changed files with 400 additions and 12 deletions
+4 -1
View File
@@ -32,6 +32,9 @@ time. Claude Code keeps a folder per session beside its transcript, holding the
transcripts among other files; that folder, and every other file named after the session except
the transcript, are copied into <chunk>/session/. A file there is replaced only by a version that
grew from it. A file Claude Code rewrote lands beside its copy as <name>.<hash of its content>.
When a chunk finishes, the reading cost of its work before the worker's first commit is kept in
$LOOP_CLAUDE_TRANSCRIPTS/<key>/reading-cost.md; reading_cost.py --help says what it holds and how
it reaches the project.
Every claude loop-claude starts runs the project's model, saved per <key> in
~/.claude/loop-claude-models.json and read each cycle; a project without an entry, as on its first
@@ -50,7 +53,7 @@ Exit 1, saying why, when:
- the models file cannot be read or written
- claude leaves no transcript
- a transcript cannot be read or archived
- a finished chunk's session cannot be deleted
- a finished chunk's reading cost cannot be measured or kept, or its session deleted
- claude cannot start for an interrupt
- python cannot start for a reload
- a reload cannot read the state the running script handed it, likely because the edit changed that