Hold each heavy command for one of a heavy slot per 4 CPUs, and each worker until a quarter of memory is available

This commit is contained in:
2026-10-23 10:40:57 +02:00
parent 9df08bd41e
commit 6c823de29c
19 changed files with 303 additions and 6 deletions
+5
View File
@@ -44,6 +44,11 @@ copied into a folder per chunk under $LOOP_CLAUDE_TRANSCRIPTS/<key> (default roo
then each verdict, quoted answer, rejected judge reply, step-up and stop, each opened by its UTC
time. The layout, and when a copy is replaced, are in bin/transcript_archive/__init__.py.
Before each worker starts, loop-claude waits while less than a quarter of the machine's memory is
available, as /proc/meminfo's MemAvailable and MemTotal state, saying so once on stderr and reading
again each minute, so loops running at once do not push the machine into swap. Where the file cannot
be read, as off Linux, the worker starts at once.
Every claude loop-claude starts runs the project's model, saved per <key> in
~/.claude/loop-claude-models.json and read each cycle, unless routing, below, puts the worker,
the session /talk opens and the judge on another rung, a model at an effort. A project without an