summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/start-next-task7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/start-next-task b/scripts/start-next-task
index da019b6..d53f008 100755
--- a/scripts/start-next-task
+++ b/scripts/start-next-task
@@ -12,4 +12,9 @@ if [[ -z "$task_id" ]]; then
exit 0
fi
-claudomator start "$task_id"
+ARGS=()
+if [[ -n "${CLAUDOMATOR_AGENT:-}" ]]; then
+ ARGS+=(--agent "$CLAUDOMATOR_AGENT")
+fi
+
+claudomator start "${ARGS[@]}" "$task_id"