Make the judge's prompt readable on its own, ask once before the full scan, and sort imports by their first binding

This commit is contained in:
2026-10-03 16:02:02 +02:00
parent e9365c26fc
commit ce1ee9b6d2
19 changed files with 81 additions and 62 deletions
+5 -4
View File
@@ -1,11 +1,11 @@
from loop_claude.claude_code.entries import assistant_parts, ends_stream, hit_limit, limit_said, parse_entry, rejected_until
from loop_claude.claude_code.session import Session
from loop_claude.claude_code.transcript import part_line
from loop_claude.cycle.limited import Limited
from loop_claude.cycle.verdicts import QuotedAnswer
from loop_claude.effects import Effects
from loop_claude.failure import Failure
from loop_claude.cycle.limited import Limited
from loop_claude.claude_code.transcript import part_line
from loop_claude.project.records import QUOTE_SOURCES
from loop_claude.cycle.verdicts import QuotedAnswer
from loop_claude.claude_code.session import Session
PRINTED_TOOL_INPUT = 160
@@ -46,6 +46,7 @@ def worker_args(task: str, session: Session, model: str, resuming: bool, answere
start = ["-p", "Continue the task; the previous run stopped before it was finished.", "--resume", str(session.id)]
else:
start = ["-p", f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.", "--name", session.name, "--session-id", str(session.id)]
# --session-id starts a session under the id loop-claude keeps, which --resume continues; -p needs --verbose for stream-json, one JSON event a line, the last a result event.
return [
*start,
"--output-format", "stream-json",