Measure each chunk's reading cost from loop-claude's archive and keep it in its own record #225

Merged
lilleman merged 16 commits from reading-cost into main 2026-10-08 19:29:58 +02:00
Showing only changes of commit 5e5eea21e5 - Show all commits
+3 -3
View File
@@ -3,9 +3,9 @@
usage: reading_cost.py [--reset] [history]
Run it inside a project checkout or one of its worktrees. history defaults to docs/comprehension-
history.md there, created when missing. It reads loop-claude's archive of the project,
$LOOP_CLAUDE_TRANSCRIPTS/<key> (default ~/.claude/loop-claude-transcripts), <key> being the
Run it inside a project checkout or one of its worktrees. history defaults to
docs/comprehension-history.md there, created when missing. It reads loop-claude's archive of the
project, $LOOP_CLAUDE_TRANSCRIPTS/<key> (default ~/.claude/loop-claude-transcripts), <key> being the
checkout's path relative to ~/code, or to / outside it. For each finished chunk the history does not
yet hold, it measures what the worker and its subagents read before the worker's first commit: their
new input tokens (uncached and cache-written; cache reads excluded), and how often they opened or