summaryrefslogtreecommitdiff
path: root/Omni/Agent
diff options
context:
space:
mode:
authorOmni Worker <bot@omni.agent>2025-11-21 18:08:05 -0500
committerOmni Worker <bot@omni.agent>2025-11-21 18:08:05 -0500
commitb3ac9eecfd853f56670ed62bfbd64584488dfd3c (patch)
tree81a56b7b4d80811c5d637ff5f4f03aece47cba7c /Omni/Agent
parent75d71e31caad0d81e1f7179134e63a6d2a24a146 (diff)
feat(agent): add monitor script
Amp-Thread-ID: https://ampcode.com/threads/T-79499d9e-f4f4-40de-893c-524c32a45483 Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'Omni/Agent')
-rwxr-xr-xOmni/Agent/monitor.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/Omni/Agent/monitor.sh b/Omni/Agent/monitor.sh
new file mode 100755
index 0000000..1626354
--- /dev/null
+++ b/Omni/Agent/monitor.sh
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+# Omni/Agent/monitor.sh
+# Monitor the logs of a worker agent
+# Usage: ./Omni/Agent/monitor.sh [worker-name]
+
+WORKER="${1:-omni-worker-1}"
+REPO_ROOT="$(git rev-parse --show-toplevel)"
+WORKER_DIR="$REPO_ROOT/../$WORKER"
+
+if [ ! -d "$WORKER_DIR" ]; then
+ echo "Error: Worker directory '$WORKER_DIR' not found."
+ echo "Usage: $0 [worker-name]"
+ exit 1
+fi
+
+LOG_FILE="$WORKER_DIR/_/llm/amp.log"
+
+echo "Monitoring worker: $WORKER"
+echo "Watching log: $LOG_FILE"
+echo "---------------------------------------------------"
+
+# Wait for log file to appear
+while [ ! -f "$LOG_FILE" ]; do
+ echo "Waiting for log file to be created..."
+ sleep 2
+done
+
+# Tail the log file
+tail -f "$LOG_FILE"