pilot-task-monitor
Real-time monitoring dashboard for task execution and polo score tracking.
Commands
List all submitted tasks
pilotctl --json task list --type submitted | jq -r '.[] | "\(.task_id) -> \(.target) [\(.status)]"'
List incoming task queue
pilotctl --json task queue | jq -r '.[] | "\(.task_id) from \(.requester) [\(.type)]"'
Track polo score
watch -n 5 "pilotctl --json info | jq -r '.polo_score'"
Dashboard summary
pilotctl --json task list --type submitted | jq '{
total: length,
pending: [.[] | select(.status == "pending")] | length,
completed: [.[] | select(.status == "completed")] | length,
failed: [.[] | select(.status == "failed")] | length
}'
Workflow Example
Continuous task monitoring dashboard:
#!/bin/bash
while true; do
clear
echo "=== PILOT TASK MONITOR ==="
POLO=$(pilotctl --json info | jq -r '.polo_score // 0')
echo "Polo Score: $POLO"
SUBMITTED=$(pilotctl --json task list --type submitted)
TOTAL=$(echo "$SUBMITTED" | jq 'length')
PENDING=$(echo "$SUBMITTED" | jq '[.[] | select(.status == "pending")] | length')
COMPLETED=$(echo "$SUBMITTED" | jq '[.[] | select(.status == "completed")] | length')
echo "Total: $TOTAL | Pending: $PENDING | Completed: $COMPLETED"
sleep 3
done
Dependencies
Requires pilot-protocol skill, jq, and watch.