Prefix the model overrides LOOP_CLAUDE_; name the session-id cause in the fixed-id decision

This commit was merged in pull request #26.
This commit is contained in:
2026-09-25 00:19:02 +02:00
parent 69384ea1d6
commit 8b8d1d12bf
4 changed files with 10 additions and 9 deletions
+6 -6
View File
@@ -17,10 +17,10 @@ worktree is marked trusted in ~/.claude.json.
Each project has one session, "A <path> loop-claude", <path> being the checkout relative to ~/code,
or to / outside it, deleted when the chunk finishes. Its transcript is archived under
$LOOP_CLAUDE_TRANSCRIPTS (default ~/.claude/loop-claude-transcripts/<path>/) whenever the human is
asked and when the chunk finishes.
JUDGE_MODEL and WORKER_MODEL override the model the project's Claude Code settings pick. A change to
this file takes effect at the next cycle boundary, once the new file answers --help.
$LOOP_CLAUDE_TRANSCRIPTS/<path>/ (default ~/.claude/loop-claude-transcripts) whenever the human is
asked and when the chunk finishes. LOOP_CLAUDE_JUDGE_MODEL and LOOP_CLAUDE_WORKER_MODEL override the
model the project's Claude Code settings pick. A change to this file takes effect at the next cycle
boundary, once the new file answers --help.
Claude Code internals this rests on, observed on 2.1.282:
- The transcript is ~/.claude/projects/*/<session-id>.jsonl, one JSON object per line. A <session-id>/
@@ -239,7 +239,7 @@ def worker_args(task, name, session_id, resuming):
"--output-format", "stream-json",
"--permission-mode", "bypassPermissions",
"--verbose",
*model("WORKER_MODEL"),
*model("LOOP_CLAUDE_WORKER_MODEL"),
]
@@ -278,7 +278,7 @@ def judge(task, premises, transcript):
args = [
"-p",
"--json-schema", json.dumps(JUDGE_SCHEMA),
*model("JUDGE_MODEL"),
*model("LOOP_CLAUDE_JUDGE_MODEL"),
"--no-session-persistence",
"--output-format", "json",
"--permission-mode", "bypassPermissions",