From 8814586a2cba46bc29595391ab5071b612a00a0f Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 15 Mar 2026 14:57:39 +0100 Subject: [PATCH] supervisor: replace Go supervisor with anvillm-supervisor shell script Remove internal/supervisor Go package. Replace with anvillm-supervisor script driven by cron: --orphans (every 5m) recovers in_progress beads whose assignee session has died, --nudge (every 1m) prompts idle worker- role bots to check for available work via execute_code + wait_for_bead.sh. Nudges sent as user via send_message.sh. cron-install uses a temp file to avoid pipeline issues. Co-Authored-By: Claude Sonnet 4.6 --- mkfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mkfile b/mkfile index 4399189..c5914b3 100644 --- a/mkfile +++ b/mkfile @@ -58,9 +58,11 @@ install:V: build cron-install:V: mkdir -p $HOME/.local/share/anvillm - (crontab -l 2>/dev/null | grep -v 'anvillm-supervisor'; \ - echo "*/5 * * * * $INSTALL_PATH/anvillm-supervisor --orphans >>$HOME/.local/share/anvillm/worker-check.log 2>&1"; \ - echo "*/1 * * * * $INSTALL_PATH/anvillm-supervisor --nudge >>$HOME/.local/share/anvillm/worker-check.log 2>&1") | crontab - + crontab -l 2>/dev/null | grep -v 'anvillm-supervisor' >/tmp/crontab.new || true + echo "*/5 * * * * $HOME/bin/anvillm-supervisor --orphans >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new + echo "*/1 * * * * $HOME/bin/anvillm-supervisor --nudge >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new + crontab /tmp/crontab.new + rm /tmp/crontab.new echo "cron installed: anvillm-supervisor (orphans: every 5m, nudge: every 1m)" cron-remove:V: