[object Object]

← back to AbramsEgo

build-loop: tell worker the server runs under pm2 (avoid port 9773 collision)

194ddb95837bdb9794c4f3bdbc30518bb1d7be0e · 2026-07-01 10:19:04 -0700 · Steve (AbramsEgo)

Files touched

Diff

commit 194ddb95837bdb9794c4f3bdbc30518bb1d7be0e
Author: Steve (AbramsEgo) <steve@designerwallcoverings.com>
Date:   Wed Jul 1 10:19:04 2026 -0700

    build-loop: tell worker the server runs under pm2 (avoid port 9773 collision)
---
 scripts/build-loop.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/build-loop.sh b/scripts/build-loop.sh
index f63aaa4..5f877f2 100755
--- a/scripts/build-loop.sh
+++ b/scripts/build-loop.sh
@@ -43,7 +43,7 @@ if [ -z "${TASK:-}" ]; then echo "[$(ts)] queue empty — resting (exit 0)." | t
 
 name=$(basename "$TASK")
 echo "[$(ts)] START $name" | tee -a "$LOG"
-PREFIX="You are the AbramsEgo autonomous builder working in $ROOT. Use /dtd to DECIDE any judgment call. Do only SAFE, REVERSIBLE work: edit code, add features/tests, commit with git (author steve@designerwallcoverings.com). NEVER run a GATED action (deploy to Kamatera, DNS, domain registration, Stripe/pricing/publish, send-to-list, spend, remote push) — instead draft it to ~/.claude/yolo-queue/pending-approval/ with an officer APPROVE/REVISE/BLOCK block. Commit after each success. TASK FOLLOWS:\n\n"
+PREFIX="You are the AbramsEgo autonomous builder working in $ROOT. Use /dtd to DECIDE any judgment call. Do only SAFE, REVERSIBLE work: edit code, add features/tests, commit with git (author steve@designerwallcoverings.com). The server ALREADY RUNS under pm2 as process 'abramsego' on port 9773 — to test changes run 'pm2 restart abramsego' then curl the running instance; NEVER start a second node on 9773. NEVER run a GATED action (deploy to Kamatera, DNS, domain registration, Stripe/pricing/publish, send-to-list, spend, remote push) — instead draft it to ~/.claude/yolo-queue/pending-approval/ with an officer APPROVE/REVISE/BLOCK block. Commit after each success. TASK FOLLOWS:\n\n"
 LOGF="$Q/logs/${name%.md}.$(date +%s).log"
 
 if cat <(printf '%b' "$PREFIX") "$TASK" | timeout "$PER_TASK_TIMEOUT" "$CLAUDE_BIN" --print --permission-mode acceptEdits --max-turns "$MAX_TURNS" --model "$MODEL" >"$LOGF" 2>&1; then

← e8bcb58 harness: restart-forever build loop (isolated queue + launch  ·  back to AbramsEgo  ·  build-loop: portable perl-alarm timeout fallback (macOS lack dd646ce →