From 972e1b820b420b31b5020f53e92605cf53f90b11 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 20 Nov 2025 16:46:35 -0500 Subject: fix: capture worker agent logs to file - Added --log-file amp.log to worker command - Allows users to monitor agent progress with tail -f --- Omni/Agent/start-worker.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Omni') diff --git a/Omni/Agent/start-worker.sh b/Omni/Agent/start-worker.sh index 0377585..bf5eef3 100755 --- a/Omni/Agent/start-worker.sh +++ b/Omni/Agent/start-worker.sh @@ -33,6 +33,8 @@ fi echo "Starting Worker Agent Loop" echo " Worker Path: $WORKER_PATH" echo " Amp Binary: $AMP_BIN" +echo " Log File: $WORKER_PATH/amp.log" +echo " Monitor: tail -f $WORKER_PATH/amp.log" echo " Press Ctrl+C to stop." cd "$WORKER_PATH" @@ -42,7 +44,7 @@ while true; do echo "----------------------------------------------------------------" echo "$(date): Starting new agent session..." - "$AMP_BIN" --dangerously-allow-all -x "You are a Worker Agent. Your goal is to process tasks from the task manager. + "$AMP_BIN" --log-file "amp.log" --dangerously-allow-all -x "You are a Worker Agent. Your goal is to process tasks from the task manager. Step 1: Read 'Omni/Agent/WORKER_AGENT_GUIDE.md' to understand your workflow. Step 2: Follow the 'Worker Loop' instructions exactly. -- cgit v1.2.3