Move the modules rank_todo.py shares into bin/file_io/, inside reload's fingerprint

This commit is contained in:
2026-10-03 17:52:02 +02:00
parent 848e25a36e
commit 9f75fe8c51
23 changed files with 37 additions and 33 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 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, 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.
Exit 1, saying why, when:
- no task is given
+2 -1
View File
@@ -8,6 +8,7 @@ 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")
@@ -36,7 +37,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((launcher.parent / "loop_claude").rglob("*.py"))]:
for path in [launcher, *sorted(path for package in PACKAGES for path in (launcher.parent / package).rglob("*.py"))]:
try:
content = path.read_bytes()
except OSError as failure: