"""The archive of loop-claude's transcripts: where each file lives, what it holds, and when a copy is replaced. ///.jsonl ///.outcomes.md ///session/... - The archive root is $LOOP_CLAUDE_TRANSCRIPTS, or ~/.claude/loop-claude-transcripts (location.archive_root). - The project key is the checkout's path relative to ~/code, or to / outside it (project_key.project_key). - is the hash of the transcript's first line with a timestamp (location.chunk_folder). It is the same for every cycle of a chunk, and differs between chunks, since a finished chunk's session is deleted and the next chunk's transcript starts afresh. - .jsonl is a copy of the session's transcript, named by the hash of its bytes, so each distinct transcript is kept once. - .outcomes.md sits beside the copy and holds the task, then each outcome opened by its UTC time (outcomes.py). - session/ holds every other file of the session, such as the subagents' transcripts, which Claude Code keeps in a folder named after the session, beside the transcript. A file there is replaced only by a version that grew from it. A file Claude Code rewrote whole lands beside its copy as . (write.copy_for). write.archive writes the layout, at every interrupt and as every cycle ends. read.py and the tools that measure finished chunks read it. """