From ac9ba5c7e4fa6dc470fde3ff4100201194980ea3 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Wed, 14 Jan 2026 14:00:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0CLI=E5=88=86=E6=9E=90?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E9=83=A8=E5=88=86=EF=BC=8C=E5=BC=BA=E8=B0=83?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E7=BB=93=E6=9E=9C=E5=92=8C=E4=BB=B7=E5=80=BC?= =?UTF-8?q?=E8=AF=84=E4=BC=B0=EF=BC=8C=E7=A7=BB=E9=99=A4=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/CLAUDE.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 8d259441..dd88b04c 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -24,12 +24,10 @@ Available CLI endpoints are dynamically defined by the config file: - **Always use `run_in_background: false`** for Task tool agent calls: `Task({ 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: `run_in_background: true`** - Unless otherwise specified, always use background execution for CLI calls: - ``` - Bash({ command: "ccw cli -p '...' --tool gemini", run_in_background: true }) - ``` -- **After CLI call**: Stop immediately - let CLI execute in background, do NOT poll with TaskOutput +### CLI Analysis Calls +- **Wait for results**: MUST wait for CLI analysis to complete before taking any write action. Do NOT proceed with fixes while analysis is running +- **Value every call**: Each CLI invocation is valuable and costly. NEVER waste analysis results: + - Aggregate multiple analysis results before proposing solutions ## Code Diagnostics