Give the worker's claude a 200k auto-compact window, from item 231's evaluation of context cost, and file items 235 to 241 #376

Merged
lilleman merged 14 commits from item-231 into main 2026-10-27 09:16:10 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 56b9077e4c - Show all commits
+3 -4
View File
@@ -47,10 +47,9 @@ time. The layout, and when a copy is replaced, are in bin/transcript_archive/__i
Before each worker starts, loop-claude waits until at least a quarter of the machine's memory is available
(bin/machine_load/memory.py).
Each worker's claude, and the session /talk opens, runs with a 200k auto-compact window, handed as
CLAUDE_CODE_AUTO_COMPACT_WINDOW (bin/loop_claude/cycle/worker.py), so it compacts its context at
about 170k tokens and a long chunk re-reads less each turn.
~/.claude/CLAUDE.md → "Compact instructions" says what the summary keeps.
Each worker's claude, and the session /talk opens, runs with a 200k auto-compact window
(CLAUDE_CODE_AUTO_COMPACT_WINDOW, bin/loop_claude/cycle/worker.py), so it compacts its context at
about 170k tokens.
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,
+1
View File
@@ -1516,6 +1516,7 @@ class HelpLimits(unittest.TestCase):
self.assertIn(f"retried {retry.PAST_RESET // 60} minutes after the limit resets, or every {retry.UNKNOWN_RESET_POLL // 60} minutes", said)
self.assertIn(f"still running after {PYTHON_TIMEOUT} s", said)
self.assertIn(f"Once {measure.CYCLES_PER_CHECK} cycles have closed across all projects", said)
self.assertIn(f"runs with a {worker.COMPACT_WINDOW // 1000}k auto-compact window", said)
class ExitContract(unittest.TestCase):