From 56b9077e4c3b3c76a88712b76a1ebb25a65b7a19 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 27 Oct 2026 00:45:38 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20cut=20the?= =?UTF-8?q?=20help=20paragraph=20to=20one=20sentence=20and=20tie=20its=202?= =?UTF-8?q?00k=20to=20COMPACT=5FWINDOW?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/loop_claude/loop/main.py | 7 +++---- bin/loop_claude/test_loop_claude.py | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/loop_claude/loop/main.py b/bin/loop_claude/loop/main.py index c9997b93..3b3c2bf1 100644 --- a/bin/loop_claude/loop/main.py +++ b/bin/loop_claude/loop/main.py @@ -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 in ~/.claude/loop-claude-models.json and read each cycle, unless routing, below, puts the worker, diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index 3e536840..40b7a64c 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -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):