Answer architecture round 1: Failure and the file modules get truthful homes, the interrupt question is a pure function, the judge grounds on what it saw

This commit is contained in:
2026-10-03 18:06:56 +02:00
parent ae7c332ba3
commit d3613f45d4
31 changed files with 217 additions and 85 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ Every claude loop-claude starts runs the project's model, saved per <key> in
run, is asked for one. LOOP_CLAUDE_JUDGE_MODEL overrides it for the judge, LOOP_CLAUDE_WORKER_MODEL
for the worker and the interrupt; with both set, nothing is asked.
A change to bin/loop-claude, bin/file_io/**/*.py or bin/loop_claude/**/*.py takes effect at the next
cycle boundary, once loop-claude --help succeeds: the loop reloads into the edited script.
A change to bin/loop-claude or any bin/**/*.py takes effect at the next cycle boundary, once
loop-claude --help succeeds: the loop reloads into the edited script.
Exit 1, saying why, when:
- no task is given
+1 -2
View File
@@ -8,7 +8,6 @@ import typing
from loop_claude.effects import Effects
from loop_claude.stop import Stop
PACKAGES = ("file_io", "loop_claude")
RELOAD_FLAG = "--reloaded"
T = typing.TypeVar("T")
@@ -37,7 +36,7 @@ def decode_handed(handed: str, kind: type[T]) -> T | None:
def fingerprint(launcher: pathlib.Path) -> str:
digest = hashlib.sha256()
for path in [launcher, *sorted(path for package in PACKAGES for path in (launcher.parent / package).rglob("*.py"))]:
for path in [launcher, *sorted(launcher.parent.rglob("*.py"))]:
try:
content = path.read_bytes()
except OSError as failure: