From f887a6387946c8fc54f83a1f11a86d6c9d68dc50 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 8 Mar 2026 03:34:45 +0000 Subject: refactor(executor): update runners and tests for generic agents --- internal/executor/preamble.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'internal/executor/preamble.go') diff --git a/internal/executor/preamble.go b/internal/executor/preamble.go index 71f8233..b20f7ea 100644 --- a/internal/executor/preamble.go +++ b/internal/executor/preamble.go @@ -23,11 +23,12 @@ Before doing any implementation work: 1. Estimate: will this task take more than 3 minutes of implementation effort? -2. If YES — break it down into subtasks: - - Create 3–7 discrete subtasks using the claudomator CLI, for example: - claudomator create "Subtask name" --instructions "..." --working-dir "/path" --parent-id "$CLAUDOMATOR_TASK_ID" --server "$CLAUDOMATOR_API_URL" - - Do NOT pass --start. Tasks will be queued and started in order by the operator. +2. If YES — break it down: + - Create 3–7 discrete subtasks by POSTing to $CLAUDOMATOR_API_URL/api/tasks + - Each subtask POST body should be JSON with: name, agent.instructions, agent.working_dir (copy from current task), agent.model, agent.allowed_tools, and agent.skip_planning set to true + - Set parent_task_id to $CLAUDOMATOR_TASK_ID in each POST body - After creating all subtasks, output a brief summary and STOP. Do not implement anything. + - You can also specify agent.type (either "claude" or "gemini") to choose the agent for subtasks. 3. If NO — proceed with the task instructions below. -- cgit v1.2.3