Run every claude the loop starts in a Claude home generated outside the clone
CI / tests (pull_request) Successful in 4m45s

This commit is contained in:
2026-12-04 01:07:03 +01:00
parent 2460b9e132
commit 0203a8e0b3
48 changed files with 703 additions and 369 deletions
+7 -2
View File
@@ -27,7 +27,11 @@ chunk starts a fresh session. Cycles continue until an exit below or Ctrl-C, eit
that one chunk.
Words: the setup's CLAUDE.md → "Vocabulary".
build-release needs tmux 3.2 or later, and checks it before it starts anything. Each chunk runs in
build-release runs every claude in the loop's Claude home, ~/.local/share/build-release/claude-home,
which it builds from the clone it ships in before it starts anything. Until someone has signed in
there, it stops and prints the line that does so. README.md → Install says what the home holds.
build-release needs tmux 3.2 or later, and checks that first too. Each chunk runs in
its own window of one tmux session per project, named loop-<key>, such as loop-claude-config. <key>
is the checkout's path relative to ~/code, or to / outside it, with a dash for each character other
than a letter, a digit, _ or -. The tmux session's @loop-root option names its checkout, and a
@@ -169,7 +173,8 @@ window closes, so the next build-release <task> reads the plan again.
Exit 1, saying why, when:
- no task is given
- git cannot start or finds no checkout
- tmux is missing or older than 3.2
- tmux is missing or older than 3.2, the loop's Claude home cannot be built, or nobody is signed
in there
- --chunk is given outside a tmux window
- a chunk's window cannot be started, as when the project's config cannot be read, or the tmux
session runs another checkout's chunks