From 20aa0f3a0b94fe97a04b009b8d06c6a1110dd986 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sun, 23 Nov 2025 20:37:03 +0800 Subject: [PATCH] feat: add agent-task execution rules to ensure one agent per task JSON --- .claude/commands/workflow/execute.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.claude/commands/workflow/execute.md b/.claude/commands/workflow/execute.md index 6b5d4629..95d07175 100644 --- a/.claude/commands/workflow/execute.md +++ b/.claude/commands/workflow/execute.md @@ -31,6 +31,7 @@ Orchestrates autonomous workflow execution through systematic task discovery, ag **Complete entire workflow autonomously without user interruption, using TodoWrite for comprehensive progress tracking.** **Execute all discovered pending tasks until workflow completion or blocking dependency.** **Auto-complete session when all tasks finished: Call `/workflow:session:complete` upon workflow completion.** +**ONE AGENT = ONE TASK JSON: Each agent instance executes exactly one task JSON file - never batch multiple tasks into single agent execution.** ## Core Responsibilities - **Session Discovery**: Identify and select active workflow sessions @@ -447,7 +448,7 @@ Task(subagent_type="{meta.agent}", - Flow Context: {flow_context.step_outputs} **Complete JSON structure is authoritative - load and follow it exactly.**"), - description="Execute task: {task.id}") + description="Executing: {task.title}") ``` ### Agent JSON Loading Specification