Answer the third round: show the judge loop-claude's prompts, one records answer per cycle through an interrupt, name the answer's two sources apart

This commit is contained in:
2026-10-03 00:54:16 +02:00
parent 160b1dae5f
commit 2f46a13e5d
10 changed files with 53 additions and 38 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
import json
from loop_claude.claude_code.entries import assistant_parts, human_text, parse_entry, part_text, tool_call
from loop_claude.claude_code.entries import assistant_parts, human_text, loop_text, parse_entry, part_text, tool_call
from loop_claude.failure import Failure
JUDGED_TOOL_INPUT = 400
@@ -30,6 +30,8 @@ def render(entries: list[dict]) -> str:
lines += [line for part in assistant_parts(entry) if (line := part_line(part, JUDGED_TOOL_INPUT))]
if (text := human_text(entry)) is not None:
lines.append("[human] " + text)
elif (text := loop_text(entry)) is not None:
lines.append("[loop] " + text)
return "\n\n".join(lines)