Answer architecture round 1: measure from loop-claude's archive in the CLI, file the reading-cost item only on a rise, keep only tracked files

This commit is contained in:
2026-10-08 16:10:23 +02:00
parent 1b8142e7e5
commit 13d8b167a7
17 changed files with 468 additions and 327 deletions
+1 -4
View File
@@ -32,9 +32,6 @@ 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
@@ -53,7 +50,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 reading cost cannot be measured or kept, or its session deleted
- a finished chunk's session cannot be 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