Answer the prose review's third round, and file the human's two answers

This commit is contained in:
2026-10-02 17:22:00 +02:00
parent b436d2756d
commit 872ffd3f67
5 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ def session_open(session: Session) -> bool:
return transcript_file(session) is not None
# <session id>.jsonl, <session id>/subagents/, and from older Claude Code versions <session id>.superseded-1789290815002/ and <session id>.orphaned-*.jsonl
# <session id>.jsonl, <session id>/subagents/, and from older Claude Code versions <session id>.superseded-*/ and <session id>.orphaned-*.jsonl
def session_files(transcript: str) -> list[str]:
return sorted(glob.glob(glob.escape(transcript.removesuffix(".jsonl")) + "*"))
+1 -1
View File
@@ -45,7 +45,7 @@ def run_cycle(cycle: Cycle) -> Stop | None:
def stopped(cycle: Cycle, stop: Stop, why: str) -> Stop:
path = transcript_file(cycle.session)
failure = archive(cycle.project_key, path, cycle.task, f"Stopped: {why}", cycle.paths) if path else None
# A failed archive exits 1 whatever stopped the loop; one that is the stop itself fails the same way again, so say it once.
# A failed archive exits 1 whatever the stop; when the stop was this archive failing, its reason is said once.
return Stop(1, f"{failure.reason}\n{stop.reason}".rstrip()) if failure and failure.reason != stop.reason else stop
+4 -4
View File
@@ -16,10 +16,10 @@ interrupt, and as every cycle ends, Ctrl-C and a failure included, the session's
copied to $LOOP_CLAUDE_TRANSCRIPTS/<key>/<chunk>/<sha256>.jsonl (default
~/.claude/loop-claude-transcripts), named by its hash. <chunk> is the hash of the transcript's first
line with a timestamp, the same for every cycle of a chunk. Beside the copy, <sha256>.verdict.md
holds the verdict, and why the loop stopped when it did. Claude Code keeps a folder per session
beside its transcript, holding the subagents' transcripts among other files; it and every other file
named after the session 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
holds the verdict, and why the loop stopped. Claude Code keeps a folder per session beside its
transcript, holding the subagents' 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>.
Every claude loop-claude starts runs the project's model, saved per <key> in