From 90852c7788fea46593eaef63d93686be28da4a5d Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 25 Dec 2025 22:30:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=20CLI=20=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E4=BD=BF=E7=94=A8=E6=96=87=E6=A1=A3=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=B5=81=E5=BC=8F=E8=BE=93=E5=87=BA=E5=92=8C=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=86=85=E5=AE=B9=EF=BC=8C=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/CLAUDE.md | 1 - .claude/workflows/cli-tools-usage.md | 28 ---------------------------- 2 files changed, 29 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index cad3252a..8065c94b 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -27,7 +27,6 @@ Available CLI endpoints are dynamically defined by the config file: 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 -- **View output later**: Use `ccw cli output ` to view cached execution results ## Code Diagnostics diff --git a/.claude/workflows/cli-tools-usage.md b/.claude/workflows/cli-tools-usage.md index 242799fd..198457dd 100644 --- a/.claude/workflows/cli-tools-usage.md +++ b/.claude/workflows/cli-tools-usage.md @@ -183,34 +183,6 @@ ASSISTANT RESPONSE: [Previous output] **Tool Behavior**: Codex uses native `codex resume`; Gemini/Qwen assembles context as single prompt -### Streaming vs Caching - -**Default behavior**: Non-streaming with full output caching (can retrieve later via `output` subcommand) - -```bash -ccw cli -p "..." --tool gemini # Default: output cached, no streaming -ccw cli -p "..." --tool gemini --stream # Streaming: real-time output, no caching -``` - -| Mode | Flag | Output | Cached | -|------|------|--------|--------| -| Non-streaming (default) | (none) | After completion | ✅ Yes | -| Streaming | `--stream` | Real-time | ❌ No | - -### Output Viewing - -View cached execution output with pagination: - -```bash -ccw cli output # View full output -ccw cli output --offset 0 --limit 10000 # Paginated view -ccw cli output --output-type stdout # Stdout only -ccw cli output --raw # Raw content (for piping) -``` - -**Note**: `output` subcommand views execution results. `--cache` parameter injects context into prompt - different concepts. - ---- ## Prompt Template