@@ -80,22 +80,45 @@ CCW 使用**基于配置的工具控制系统**,使外部 CLI 工具成为**
8080- ✅ ** 优雅降级** - 工具不可用时自动回退
8181- ✅ ** 灵活配置** - 每个项目控制工具可用性
8282
83- ** 配置文件** :` ~/.ccw/workflows/tool-control.yaml `
84-
85- ``` yaml
86- tools :
87- gemini :
88- enabled : false # 可选:AI 分析和文档
89- qwen :
90- enabled : true # 可选:AI 架构和代码生成
91- codex :
92- enabled : true # 可选:AI 开发和实现
83+ ** 配置文件** :` ~/.claude/cli-tools.json `
84+
85+ ``` json
86+ {
87+ "version" : " 3.4.0" ,
88+ "tools" : {
89+ "gemini" : {
90+ "enabled" : true ,
91+ "primaryModel" : " gemini-2.5-pro" ,
92+ "type" : " builtin"
93+ },
94+ "qwen" : {
95+ "enabled" : true ,
96+ "primaryModel" : " coder-model" ,
97+ "type" : " builtin"
98+ },
99+ "codex" : {
100+ "enabled" : true ,
101+ "primaryModel" : " gpt-5.2" ,
102+ "type" : " builtin"
103+ },
104+ "claude" : {
105+ "enabled" : true ,
106+ "primaryModel" : " sonnet" ,
107+ "type" : " builtin"
108+ },
109+ "opencode" : {
110+ "enabled" : true ,
111+ "primaryModel" : " opencode/glm-4.7-free" ,
112+ "type" : " builtin"
113+ }
114+ }
115+ }
93116```
94117
95118** 行为** :
96119- ** 禁用时** :CCW 自动回退到其他已启用的工具或 Claude 的原生能力
97120- ** 启用时** :使用专门工具发挥其特定优势
98- - **默认**:所有工具禁用 - 仅 Claude 模式开箱即用
121+ - ** 默认** :首次运行时自动检测已安装的工具并同步启用状态
99122
100123### 可选 CLI 工具(增强功能)
101124
@@ -110,13 +133,17 @@ tools:
110133
111134#### 外部 AI 工具
112135
113- 在 `~/.ccw/workflows/tool-control.yaml` 中配置这些工具 :
136+ CCW 通过 ` ~/.claude/cli-tools.json ` 统一管理以下 CLI 工具,所有工具均可通过 npm 全局安装 :
114137
115- | 工具 | 用途 | 安装方式 |
116- |------|------|----------|
117- | **Gemini CLI** | AI 分析和文档 | 遵循[官方文档](https://ai.google.dev) - 免费配额,扩展上下文 |
118- | **Codex CLI** | AI 开发和实现 | 遵循[官方文档](https://github.com/openai/codex) - 自主开发 |
119- | **Qwen Code** | AI 架构和代码生成 | 遵循[官方文档](https://github.com/QwenLM/qwen-code) - 大上下文窗口 |
138+ | 工具 | npm 包 | 用途 | 安装方式 |
139+ | ------| --------| ------| ----------|
140+ | ** Gemini CLI** | ` @google/gemini-cli ` | Google AI 代码分析和生成 | ` npm install -g @google/gemini-cli ` <br >[ GitHub] ( https://github.com/google-gemini/gemini-cli ) |
141+ | ** Qwen Code** | ` @qwen-code/qwen-code ` | 阿里云 AI 编程助手 | ` npm install -g @qwen-code/qwen-code ` <br >[ GitHub] ( https://github.com/QwenLM/qwen-code ) |
142+ | ** Codex CLI** | ` @openai/codex ` | OpenAI 代码生成和理解 | ` npm install -g @openai/codex ` <br >[ GitHub] ( https://github.com/openai/codex ) |
143+ | ** Claude Code** | ` @anthropic-ai/claude-code ` | Anthropic AI 助手 | ` npm install -g @anthropic-ai/claude-code ` <br >[ GitHub] ( https://github.com/anthropics/claude-code ) |
144+ | ** OpenCode** | ` opencode ` | 开源多模型 AI 编程代理 | ` npm install -g opencode ` <br >[ 官网] ( https://opencode.ai ) \| [ GitHub] ( https://github.com/sst/opencode ) |
145+
146+ > ** 提示** :也可在 CCW Dashboard 的 CLI Manager 视图中直接管理工具的安装、卸载和启用状态。
120147
121148### 推荐:MCP 工具(增强分析)
122149
0 commit comments