From 72ae20bda73558d960eb0fb5c87372635c806110 Mon Sep 17 00:00:00 2001 From: iliya Date: Tue, 17 Mar 2026 14:10:08 +0200 Subject: [PATCH] feat: update review instructions and enhance team operations documentation - Modified review request instructions to include an optional note parameter for better context during reviews. - Added clarification flag instruction to team operations documentation, improving guidance for task management. --- agent-teams-controller/src/internal/review.js | 2 +- src/main/services/team/TeamProvisioningService.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/agent-teams-controller/src/internal/review.js b/agent-teams-controller/src/internal/review.js index bf4dcade..8e5d4ed2 100644 --- a/agent-teams-controller/src/internal/review.js +++ b/agent-teams-controller/src/internal/review.js @@ -125,7 +125,7 @@ function requestReview(context, taskId, flags = {}) { `FIRST call review_start to signal you are beginning the review:\n` + `{ teamName: "${context.teamName}", taskId: "${task.id}", from: "" }\n\n` + `When approved, use MCP tool review_approve:\n` + - `{ teamName: "${context.teamName}", taskId: "${task.id}", notifyOwner: true }\n\n` + + `{ teamName: "${context.teamName}", taskId: "${task.id}", note?: "", notifyOwner: true }\n\n` + `If changes are needed, use MCP tool review_request_changes:\n` + `{ teamName: "${context.teamName}", taskId: "${task.id}", comment: "..." }` ), diff --git a/src/main/services/team/TeamProvisioningService.ts b/src/main/services/team/TeamProvisioningService.ts index 5acfae5c..5ddc2160 100644 --- a/src/main/services/team/TeamProvisioningService.ts +++ b/src/main/services/team/TeamProvisioningService.ts @@ -557,6 +557,7 @@ function buildTeamCtlOpsInstructions(teamName: string, leadName: string): string `- Link dependency: task_link { teamName: "${teamName}", taskId: "", targetId: "", relationship: "blocked-by" }`, `- Link related: task_link { teamName: "${teamName}", taskId: "", targetId: "", relationship: "related" }`, `- Unlink: task_unlink { teamName: "${teamName}", taskId: "", targetId: "", relationship: "blocked-by" }`, + `- Set clarification flag: task_set_clarification { teamName: "${teamName}", taskId: "", value: "lead"|"user"|"clear" }`, ``, `Review operations — use MCP tools directly (text comments do NOT change kanban state):`, `- Request review (after task_complete): review_request { teamName: "${teamName}", taskId: "", from: "${leadName}", reviewer: "" }`,