From fd0c9efa4d976f02007d1cfe4ee06c38ce05b06d Mon Sep 17 00:00:00 2001 From: catlog22 Date: Wed, 4 Mar 2026 23:46:58 +0800 Subject: [PATCH] fix: update Agent tool call instructions and clarify TaskOutput usage --- .claude/CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 32f3c09d..c5497a6a 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -17,7 +17,7 @@ Available CLI endpoints are dynamically defined by the config file ### Agent Calls - **Always use `run_in_background: false`** for Agent tool calls: `Agent({ subagent_type: "xxx", prompt: "...", run_in_background: false })` to ensure synchronous execution and immediate result visibility -- **TaskOutput usage**: Only use `TaskOutput({ task_id: "xxx", block: false })` + sleep loop to poll completion status. NEVER read intermediate output during agent/CLI execution - wait for final result only + ### CLI Tool Calls (ccw cli) - **Default**: CLI calls (`ccw cli`) default to background execution (`run_in_background: true`):