#!/bin/bash # start-next-task — run the next task selected by scripts/next-task set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" task_id=$("$SCRIPT_DIR/next-task") if [[ -z "$task_id" ]]; then echo "No task to start." exit 0 fi echo claudomator start "$task_id"