@seemseam/ccb 8.0.7 → 8.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +66 -107
  2. package/README_zh.md +93 -615
  3. package/VERSION +1 -1
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <div align="center">
2
2
 
3
- # CCB
3
+ # CCB - Mobile Has Arrived!
4
4
 
5
5
  **Designed around agent parity**
6
6
  **Visible, controllable multi-agent cooperative TUI workspace**
7
7
 
8
8
  <p>
9
- <img src="https://img.shields.io/badge/version-8.0.7-orange.svg" alt="version">
9
+ <img src="https://img.shields.io/badge/version-8.0.8-orange.svg" alt="version">
10
10
  <img src="https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20WSL-lightgrey.svg" alt="platform">
11
11
  <img src="https://img.shields.io/badge/providers-15%20CLI%20families-0B7285.svg" alt="providers">
12
12
  </p>
@@ -29,12 +29,12 @@
29
29
  <img src="https://img.shields.io/badge/Droid-3DDC84?style=flat-square&logo=android&logoColor=white" alt="Droid">
30
30
  </p>
31
31
 
32
- **English** | [中文](README_zh.md)
32
+ [中文](README_zh.md) | **English**
33
33
 
34
- [Quick Start](#quick-start) · [v7 UI](#v7-ui-tour) · [Rich Mode](#rich-mode-new) · [Mobile App](#mobile-app) · [Configure Agents](#configure-your-agent-team) · [User Guide](docs/manuals/user-guide/) · [Developer Guide](docs/manuals/developer-guide/)
34
+ [Quick Start](#quick-start) · [Mobile App](#mobile-app) · [Rich Mode](#rich-mode-new) · [Configure Agents](#create-project-config) · [User Guide](docs/manuals/user-guide/) · [Developer Guide](docs/manuals/developer-guide/)
35
35
 
36
36
  <p align="center">
37
- <img src="assets/readme_v7/ccb-hero-en.png" alt="CCB v7 visible multi-agent CLI workspace" width="960">
37
+ <img src="assets/readme_v7/ccb-hero-en-light.png" alt="CCB v7 visible multi-agent CLI workspace" width="960">
38
38
  </p>
39
39
 
40
40
  </div>
@@ -105,14 +105,6 @@ After CCB is installed, use CCB's updater:
105
105
  ccb update
106
106
  ```
107
107
 
108
- Install or refresh the optional rich media workbench; it bundles verified binaries where possible and installs only the required terminal/media/font dependencies through the platform package manager:
109
-
110
- ```bash
111
- ccb update rich
112
- ```
113
-
114
- After rich is enabled, plain `ccb` opens the rich WezTerm launcher unless it is already running inside a CCB-managed rich WezTerm; use `ccb uninstall rich` to return to the normal terminal startup.
115
-
116
108
  Install or refresh the optional mobile controller setup:
117
109
 
118
110
  ```bash
@@ -123,10 +115,18 @@ This command checks the local mobile gateway prerequisites, guides Tailscale
123
115
  login/Serve setup when needed, keeps the gateway loopback-only, and prints the
124
116
  current Android APK download link plus pairing steps.
125
117
 
118
+ Install or refresh the optional rich media workbench; it bundles verified binaries where possible and installs only the required terminal/media/font dependencies through the platform package manager:
119
+
120
+ ```bash
121
+ ccb update rich
122
+ ```
123
+
124
+ After rich is enabled, plain `ccb` opens the rich WezTerm launcher unless it is already running inside a CCB-managed rich WezTerm; use `ccb uninstall rich` to return to the normal terminal startup.
125
+
126
126
  <details>
127
127
  <summary><b>GitHub release package and source install fallbacks</b></summary>
128
128
 
129
- If npm is not available in your environment, download the matching package from [Releases](https://github.com/bfly123/claude_code_bridge/releases):
129
+ If npm is not available in your environment, download the matching package from [Releases](https://github.com/SeemSeam/claude_codex_bridge/releases):
130
130
 
131
131
  ```bash
132
132
  tar -xzf ccb-*.tar.gz
@@ -137,8 +137,8 @@ cd ccb-*
137
137
  Source install is for development or temporary fallback use:
138
138
 
139
139
  ```bash
140
- git clone https://github.com/bfly123/claude_code_bridge.git
141
- cd claude_code_bridge
140
+ git clone https://github.com/SeemSeam/claude_codex_bridge.git
141
+ cd claude_codex_bridge
142
142
  ./install.sh install
143
143
  ```
144
144
 
@@ -152,6 +152,8 @@ Out of the box, run `ccb` from your project directory. If startup reports that `
152
152
  mkdir -p .ccb
153
153
  ```
154
154
 
155
+ <a id="create-project-config"></a>
156
+
155
157
  ### 2. Create project config
156
158
 
157
159
  Create `.ccb/ccb.config` in your project root. For v7, it is better to understand config from multi-window topology first: `[windows]` defines tmux windows and agent groups, `agent:provider` defines which CLI each agent uses, and `(worktree)` gives an agent its own git worktree.
@@ -199,33 +201,36 @@ Type directly in an agent pane, or route work between agents:
199
201
 
200
202
  Agents can also call `/ask` from workflow orchestration to delegate and hand off work automatically.
201
203
 
202
- ### v7 UI Tour
204
+ <a id="mobile-app"></a>
203
205
 
204
- | Region | Purpose |
205
- | :--- | :--- |
206
- | Sidebar | Shows refresh/close CCB controls, windows and agents, internal communication state, and tips that can be edited in config and hot-reloaded. |
207
- | Mouse control | Click to switch windows, agents, and panes; refresh, kill, or delete communication entries from the communication area. |
208
- | Workspace | Every pane is a real CLI. Switch by mouse or tmux shortcuts. |
209
- | Useful shortcuts | `Ctrl-b h/j/k/l` switches adjacent panes; `Ctrl-b z` zooms or restores the current CLI pane. |
206
+ ### CCB Mobile Has Arrived! (Android Alpha)
210
207
 
211
- <a id="rich-mode-new"></a>
208
+ Use your phone as a remote CCB controller: switch projects and agents, speak input, open terminal views, and transfer files.
212
209
 
213
- ### Rich Mode (NEW!)
210
+ ```bash
211
+ ccb update mobile
212
+ ```
214
213
 
215
- Run `ccb update rich` to install the optional rich workbench; it bundles Yazi where possible, uses WezTerm for the rich terminal surface, and gives Markdown rendering plus image/PDF/video previews. After installation, plain `ccb` automatically opens this rich launcher unless it is already running inside a CCB-managed rich WezTerm; `ccb rich` remains available as an explicit launcher.
214
+ The command walks through local setup and pairing.
216
215
 
217
216
  <p align="center">
218
- <img src="assets/readme_v7/rich-workbench.png" alt="CCB rich workbench with Yazi preview in WezTerm" width="860">
217
+ <img src="assets/readme_v7/mobile-control-chat.jpg" alt="CCB Mobile agent conversation" width="180">
218
+ <img src="assets/readme_v7/mobile-control-terminal.jpg" alt="CCB Mobile terminal control" width="180">
219
+ <img src="assets/readme_v7/mobile-control-files.jpg" alt="CCB Mobile file transfer" width="180">
220
+ <img src="assets/readme_v7/mobile-control-pairing.jpg" alt="CCB Mobile pairing and connection" width="180">
219
221
  </p>
220
222
 
221
- <a id="mobile-app"></a>
223
+ <p align="center">
224
+ <sub>Mobile can switch projects and agents, inspect conversations, open terminals, transfer files, and connect through scoped pairing.</sub>
225
+ </p>
222
226
 
223
- ### Mobile App (Android Alpha)
227
+ <details>
228
+ <summary><b>Mobile App details, security boundaries, and source</b></summary>
224
229
 
225
- CCB 8.0.7 includes the Flutter CCB Mobile source under [`mobile/`](mobile/)
230
+ CCB 8.0.8 includes the Flutter CCB Mobile source under [`mobile/`](mobile/)
226
231
  and publishes an Android APK as a GitHub Release asset:
227
232
 
228
- - [Download CCB Mobile v8.0.7 APK](https://github.com/bfly123/claude_code_bridge/releases/download/v8.0.7/ccb-mobile-v8.0.7.apk)
233
+ - [Download CCB Mobile v8.0.8 APK](https://github.com/bfly123/claude_code_bridge/releases/download/v8.0.8/ccb-mobile-v8.0.8.apk)
229
234
  - App source: [`mobile/app`](mobile/app)
230
235
  - Server/gateway source: [`lib/mobile_gateway`](lib/mobile_gateway)
231
236
 
@@ -244,9 +249,10 @@ ccb update mobile
244
249
  Then follow the printed steps:
245
250
 
246
251
  1. Install and sign in to Tailscale on the desktop/server and the phone.
247
- 2. Install the APK on Android.
248
- 3. Run `ccb update mobile` on the desktop/server.
249
- 4. Open CCB Mobile and scan the QR printed by the terminal.
252
+ 2. Start the loopback-only CCB Mobile gateway and Tailscale Serve command shown
253
+ by CCB.
254
+ 3. Install the APK on Android.
255
+ 4. Open CCB Mobile and scan the pairing QR.
250
256
 
251
257
  Security boundaries:
252
258
 
@@ -257,6 +263,31 @@ Security boundaries:
257
263
  - The phone only receives the scopes granted by the pairing profile, such as
258
264
  view, content, terminal, file upload, and file download.
259
265
 
266
+ </details>
267
+
268
+ <a id="rich-mode-new"></a>
269
+
270
+ ### Rich Mode (NEW!)
271
+
272
+ Browse files, open documents, edit text, and preview media from a richer terminal workspace.
273
+
274
+ <p align="center">
275
+ <img src="assets/readme_v7/rich-workbench.png" alt="CCB rich workbench with Yazi preview in WezTerm" width="860">
276
+ </p>
277
+
278
+ ```bash
279
+ ccb update rich
280
+ ```
281
+
282
+ After rich is enabled, plain `ccb` opens the rich WezTerm launcher unless it is already running inside a CCB-managed rich WezTerm; use `ccb uninstall rich` to return to the normal terminal startup.
283
+
284
+ <details>
285
+ <summary><b>Rich Mode details</b></summary>
286
+
287
+ Run `ccb update rich` to install the optional rich workbench; it bundles Yazi where possible, uses WezTerm for the rich terminal surface, and gives Markdown rendering plus image/PDF/video previews. After installation, plain `ccb` automatically opens this rich launcher unless it is already running inside a CCB-managed rich WezTerm; `ccb rich` remains available as an explicit launcher.
288
+
289
+ </details>
290
+
260
291
  ### Agent Roles Spec And Role Catalog
261
292
 
262
293
  CCB supports the [Agent Roles Spec](https://github.com/SeemSeam/agent-roles-spec), a host-neutral way to package specialist agents as portable Role Packs. The same repository also acts as the public role catalog.
@@ -705,7 +736,7 @@ For later updates:
705
736
  ccb update
706
737
  ```
707
738
 
708
- [GitHub Releases](https://github.com/bfly123/claude_code_bridge/releases) remain available for environments where npm is unavailable. Source checkout install is for development, fix validation, or temporary fallback.
739
+ [GitHub Releases](https://github.com/SeemSeam/claude_codex_bridge/releases) remain available for environments where npm is unavailable. Source checkout install is for development, fix validation, or temporary fallback.
709
740
 
710
741
  #### Uninstall
711
742
 
@@ -770,78 +801,6 @@ v7 highlights:
770
801
  - Hardened tmux, Ghostty, release helper, Codex trust, and provider session restore paths.
771
802
 
772
803
  <details open>
773
- <summary><b>v8.0.7</b> - CCB Mobile Notifications And Theme Stabilization</summary>
774
-
775
- - Adds server-wide task-completion notification SSE plus Android local notifications with low-sensitive payloads and verified tap routing back to the target project/agent.
776
- - Carries provider runtime status detection for mobile activity indicators and sidebar state.
777
- - Updates the mobile app with steel-blue/slate theming, improved readable content styles, height-limited expanded bubbles, and notification group tap handling.
778
- - Synchronizes VERSION, package metadata, mobile app version metadata, README links, workflow defaults, and APK download URLs for 8.0.7.
779
-
780
- </details>
781
-
782
- <details>
783
- <summary><b>v8.0.6</b> - CCB Mobile Real Project Chat Stabilization</summary>
784
-
785
- - Improves Android CCB Mobile real-project pane-native chat, status recovery,
786
- terminal stream handling, QR/manual pairing, input ergonomics, localization,
787
- and noisy timeline filtering.
788
- - Includes the latest server-wide project listing, native provider transcript,
789
- provider runtime status, and mobile terminal pane input fixes from the CCB
790
- source line.
791
- - Uses a compact terminal pairing QR in `ccb update mobile`, keeps the original
792
- CCB Mobile bridge icon identity, and makes camera-unavailable scanner fallback
793
- actionable instead of showing native plugin errors.
794
- - Synchronizes VERSION, package metadata, mobile app version metadata, README
795
- links, workflow defaults, and APK download URLs for 8.0.6.
796
-
797
- </details>
798
-
799
- <details>
800
- <summary><b>v8.0.4</b> - CCB Mobile Project List Stability</summary>
801
-
802
- - Accelerates `/v1/projects` for server-wide mobile gateways by checking
803
- mounted project health concurrently while preserving registry order.
804
- - Reduces noisy BrokenPipe/connection-reset tracebacks when a phone disconnects
805
- or times out while a response is being written.
806
-
807
- </details>
808
-
809
- <details>
810
- <summary><b>v8.0.3</b> - npm Release Metadata Fix</summary>
811
-
812
- - Fixes npm provenance metadata so `@seemseam/ccb` publishes from the canonical
813
- GitHub repository used by GitHub Actions.
814
- - Synchronizes VERSION, package metadata, mobile app version metadata, README
815
- links, workflow defaults, and APK download URLs for 8.0.3.
816
-
817
- </details>
818
-
819
- <details>
820
- <summary><b>v8.0.2</b> - Mobile Tailnet Onboarding Fixes</summary>
821
-
822
- - Handles the Tailscale Serve one-time approval flow without exposing raw
823
- timeout errors.
824
- - Reuses an existing correct Tailscale Serve proxy for `:8787`, so users who
825
- already approved or started Serve can immediately get the pairing QR.
826
- - Fixes source worktree installs so installed `ccb` is not mistaken for a source
827
- checkout.
828
-
829
- </details>
830
-
831
- <details>
832
- <summary><b>v8.0.1</b> - Simplified CCB Mobile Pairing</summary>
833
-
834
- - Makes `ccb update mobile` the single user-facing setup command: it checks
835
- Tailscale, guides login/install, starts the server-wide loopback gateway plus
836
- Tailscale Serve, and prints a pairing QR directly in the terminal.
837
- - Updates CCB Mobile first launch to show pairing instructions, Tailscale
838
- download guidance, and a scan button instead of opening the fake/demo project.
839
- - Automatically opens the server-wide mounted project list after a stored
840
- pairing profile is found, reducing setup friction for normal phone use.
841
-
842
- </details>
843
-
844
- <details>
845
804
  <summary><b>v8.0.0</b> - CCB Mobile Monorepo Release</summary>
846
805
 
847
806
  - Ships the Flutter CCB Mobile source inside this repository and publishes the
package/README_zh.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <div align="center">
2
2
 
3
- # CCB
3
+ # CCB 手机 App 来了!
4
4
 
5
- **基于agent平权思想设计**
6
- **可见、可控的多 Agent 合作TUI工作台**
5
+ **基于去中心化多 Agent 设计**
6
+ **可见、可控的多 Agent 交互 TUI 工作台**
7
7
 
8
8
  <p>
9
- <img src="https://img.shields.io/badge/version-8.0.7-orange.svg" alt="version">
9
+ <img src="https://img.shields.io/badge/version-8.0.8-orange.svg" alt="version">
10
10
  <img src="https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20WSL-lightgrey.svg" alt="platform">
11
11
  <img src="https://img.shields.io/badge/providers-15%20CLI%20families-0B7285.svg" alt="providers">
12
12
  </p>
@@ -31,89 +31,37 @@
31
31
 
32
32
  **中文** | [English](README.md)
33
33
 
34
- [快速开始](#快速开始) · [v7 界面](#v7-界面速览) · [Rich 模式](#rich-mode-new) · [Mobile App](#mobile-app) · [配置团队](#配置-agent-团队) · [使用文档](docs/manuals/user-guide/) · [开发文档](docs/manuals/developer-guide/)
34
+ [快速开始](#快速开始) · [Mobile App](#mobile-app) · [Rich 模式](#rich-mode-new) · [配置团队](#创建项目配置) · [使用文档](docs/manuals/user-guide/) · [开发文档](docs/manuals/developer-guide/)
35
35
 
36
36
  <p align="center">
37
- <img src="assets/readme_v7/ccb-hero-zh.png" alt="CCB v7 可见多 Agent CLI 工作台" width="960">
37
+ <img src="assets/readme_v7/ccb-hero-zh-light.png" alt="CCB v7 可见多 Agent CLI 工作台" width="960">
38
38
  </p>
39
39
 
40
40
  </div>
41
41
 
42
- ---
42
+ ## 为什么用 CCB?
43
43
 
44
- ## 支持的 CLI
45
-
46
- 可在 `.ccb/ccb.config` 中按 agent 混用不同 CLI;实际可用性取决于本机 CLI 安装和账号权限。
47
-
48
- <table>
49
- <tr>
50
- <td>Codex<br><code>codex</code></td>
51
- <td>Claude<br><code>claude</code></td>
52
- <td>Gemini<br><code>gemini</code></td>
53
- <td>Kimi<br><code>kimi</code></td>
54
- <td>MiMo<br><code>mimo</code></td>
55
- </tr>
56
- <tr>
57
- <td>Qwen<br><code>qwen</code></td>
58
- <td>Cursor<br><code>cursor</code></td>
59
- <td>GitHub Copilot CLI<br><code>copilot</code></td>
60
- <td>Crush<br><code>crush</code></td>
61
- <td>Kiro CLI<br><code>kiro</code></td>
62
- </tr>
63
- <tr>
64
- <td>Pi<br><code>pi</code></td>
65
- <td>Z.ai CLI<br><code>zai</code></td>
66
- <td>OpenCode<br><code>opencode</code></td>
67
- <td>Antigravity<br><code>agy</code></td>
68
- <td>Droid<br><code>droid</code></td>
69
- </tr>
70
- </table>
44
+ * 强稳定的 agent 间通信能力,支持 `A -> B -> C`、`A,B -> C`、`A -> B,C` 等复杂协作关系。
45
+ * 每个 agent 都是完整原生终端,支持可见的界面排布和直接接管。
46
+ * 后台 daemon 持续运行,可以脱离前台界面保持项目状态。
47
+ * Hub 能力:一个命令同时并发运行多家 CLI provider。
48
+ * 手机远程控制器:跨 provider 语音操控、文件传输和远程终端访问。
71
49
 
72
50
  **全新角色规范**:可把 skills、记忆和工具依赖封装进自封闭 Role Pack,快速生成可热加载、可卸载的专业 agent。
73
51
 
74
- ## 为什么用 CCB?
75
-
76
- | 看得见 | 混合 provider | 项目级控制 |
77
- | :--- | :--- | :--- |
78
- | 每个 agent 都是真实终端,支持界面排布设计。 | 一个命令同时并发运行多 CLI。 | 稳定后台通信,支持多线并发任务编排。 |
79
-
80
52
  ## 快速开始
81
53
 
82
- ### 1. 安装或更新
54
+ ### 1. 基本功能和操作
83
55
 
84
- 新安装推荐使用 npm 包:
56
+ #### 1.1 安装
85
57
 
86
58
  ```bash
87
59
  npm install -g @seemseam/ccb
88
60
  ```
89
-
90
- 安装完成后,后续更新直接使用 CCB 自带 updater:
91
-
92
- ```bash
93
- ccb update
94
- ```
95
-
96
- 可选富媒体工作台用 `ccb update rich` 安装或刷新;它会优先下载并验证可封装的二进制,只把必要的终端、媒体和字体依赖交给平台包管理器安装:
97
-
98
- ```bash
99
- ccb update rich
100
- ```
101
-
102
- rich 启用后,普通 `ccb` 会自动打开 rich WezTerm launcher,只有当当前已经处于 CCB 自己拉起的 rich WezTerm 中时才不会再次跳转;运行 `ccb uninstall rich` 可退回普通终端启动。
103
-
104
- 可选手机控制端用下面的入口安装或刷新本机侧配置:
105
-
106
- ```bash
107
- ccb update mobile
108
- ```
109
-
110
- 该命令会检查 mobile gateway 依赖,按需引导 Tailscale 登录/Serve 配置,
111
- 保持 gateway 仅监听 loopback,并打印当前 Android APK 下载链接和扫码配对步骤。
112
-
113
61
  <details>
114
62
  <summary><b>GitHub release 包和源码安装兜底</b></summary>
115
63
 
116
- 如果当前环境不方便使用 npm,可以到 [Releases](https://github.com/bfly123/claude_code_bridge/releases) 下载与你的平台匹配的包,解压后安装:
64
+ 如果当前环境不方便使用 npm,可以到 [Releases](https://github.com/SeemSeam/claude_codex_bridge/releases) 下载与你的平台匹配的包,解压后安装:
117
65
 
118
66
  ```bash
119
67
  tar -xzf ccb-*.tar.gz
@@ -124,8 +72,8 @@ cd ccb-*
124
72
  源码安装只建议开发或临时兜底使用:
125
73
 
126
74
  ```bash
127
- git clone https://github.com/bfly123/claude_code_bridge.git
128
- cd claude_code_bridge
75
+ git clone https://github.com/SeemSeam/claude_codex_bridge.git
76
+ cd claude_codex_bridge
129
77
  ./install.sh install
130
78
  ```
131
79
 
@@ -133,87 +81,49 @@ cd claude_code_bridge
133
81
 
134
82
  </details>
135
83
 
136
- 开箱即用:在项目目录执行 `ccb` 即可使用。
137
- 如果启动时提示无法自动创建 `.ccb` 或找不到项目锚点,需要手动创建 `.ccb` 作为项目锚点:
84
+ #### 1.2 启动
138
85
 
139
- ```bash
140
- mkdir -p .ccb
141
- ```
142
-
143
- ### 2. 创建项目配置
144
-
145
- 在项目根目录创建 `.ccb/ccb.config`。v7 推荐直接从多 window 拓扑理解配置:`[windows]` 定义窗口和 agent 分组,`agent:provider` 定义每个 agent 使用哪家 CLI,`(worktree)` 表示该 agent 使用独立 git worktree。
146
-
147
- ```toml
148
- version = 2
149
- entry_window = "main"
150
-
151
- [windows]
152
- main = "main:codex"
153
- work = "worker1:codex(worktree), worker2:claude(worktree)"
154
- review = "reviewer:claude, qa:gemini"
155
-
156
- [ui.sidebar]
157
- mode = "every_window"
158
- width = "15%"
159
- bottom_height = 20
160
- agents_height = "50%"
161
- comms_height = "15%"
162
- tips_height = "35%"
163
- comms_limit = 3
164
- ```
165
-
166
- 如果你不确定应该如何分组、要几个 worker、哪些 agent 用 worktree、哪些 agent 需要独立模型或 API,可以直接问当前工作台里的 `ccb_self`。它是 CCB 内置的 self-agent,理解 CCB 命令、配置权威层、roles、windows、reload 边界和常见恢复路径,并能用私有 `ccb-config` skill 和你讨论后生成配置方案。空白项目默认包含 `ccb_self`。
167
-
168
- 验证配置:
169
-
170
- ```bash
171
- ccb config validate
172
- ```
173
-
174
- 启动工作台:
86
+ 在工作目录执行:
175
87
 
176
88
  ```bash
177
89
  ccb
178
90
  ```
91
+ 如果启动时提示无法自动创建 `.ccb` 或找不到项目锚点,需要手动创建 `.ccb` 作为项目锚点:
179
92
 
180
- ### 3. 开始协作
181
-
182
- 你可以直接在某个 agent pane 里输入,也可以让 agent 之间协作:
183
-
184
- ```text
185
- /ask reviewer review the latest parser changes and list blocking issues.
93
+ ```bash
94
+ mkdir -p .ccb
186
95
  ```
187
96
 
188
- 也可以在工作编排中让 agent 自动调用 `/ask` 完成委派和交接。
97
+ <a id="mobile-app"></a>
189
98
 
190
- ### v7 界面速览
99
+ #### 1.3 手机远程控制(Android)
191
100
 
192
- | 区域 | 说明 |
193
- | :--- | :--- |
194
- | Sidebar | 显示刷新/关闭 CCB 控件、window 和 agent 列表、内部通信状态,以及可在配置文件中修改并热加载的 tips。 |
195
- | 鼠标操作 | 支持点击切换 window、agent 和 pane,也可在通信区刷新、kill 或删除条目。 |
196
- | 工作区 | 每个 pane 都是真实 CLI;可以鼠标点击切换,也可以用 tmux 快捷键切换。 |
197
- | 常用技巧 | `Ctrl-b h/j/k/l` 切换相邻 pane,`Ctrl-b z` 放大或还原当前 CLI pane。 |
198
-
199
- <a id="rich-mode-new"></a>
101
+ 推荐使用手机控制 CCB:可以接入所有 CCB 项目,控制每个 agent,语音输入,并传递文件。
200
102
 
201
- ### Rich 模式(NEW!)
103
+ ```bash
104
+ ccb update mobile
105
+ ```
202
106
 
203
- 运行 `ccb update rich` 安装可选富媒体工作台;它会尽量封装 Yazi 等二进制,并用 WezTerm 承载富媒体终端界面,提供 Markdown 渲染和图片/PDF/视频预览。安装后,普通 `ccb` 会自动打开 rich launcher,只有当当前已经处于 CCB 自己拉起的 rich WezTerm 中时才不会再次跳转;`ccb rich` 仍可作为显式启动入口。
107
+ 该命令会指导您完成安装和配置。
204
108
 
205
109
  <p align="center">
206
- <img src="assets/readme_v7/rich-workbench.png" alt="CCB rich 富媒体工作台在 WezTerm 中使用 Yazi 预览" width="860">
110
+ <img src="assets/readme_v7/mobile-control-chat.jpg" alt="CCB Mobile agent 对话" width="180">
111
+ <img src="assets/readme_v7/mobile-control-terminal.jpg" alt="CCB Mobile 终端控制" width="180">
112
+ <img src="assets/readme_v7/mobile-control-files.jpg" alt="CCB Mobile 文件传输" width="180">
113
+ <img src="assets/readme_v7/mobile-control-pairing.jpg" alt="CCB Mobile 配对和连接" width="180">
207
114
  </p>
208
115
 
209
- <a id="mobile-app"></a>
116
+ <p align="center">
117
+ <sub>手机端可切换项目和 agent、查看对话、打开终端、传递文件,并通过配对流程安全接入。</sub>
118
+ </p>
210
119
 
211
- ### Mobile App(Android Alpha)
120
+ <details>
121
+ <summary><b>Mobile App 详情、安全边界和源码</b></summary>
212
122
 
213
- CCB 8.0.7 已把 Flutter 版 CCB Mobile 源码放入 [`mobile/`](mobile/),
123
+ CCB 8.0.8 已把 Flutter 版 CCB Mobile 源码放入 [`mobile/`](mobile/),
214
124
  并在 GitHub Release 中发布 Android APK:
215
125
 
216
- - [下载 CCB Mobile v8.0.7 APK](https://github.com/bfly123/claude_code_bridge/releases/download/v8.0.7/ccb-mobile-v8.0.7.apk)
126
+ - [下载 CCB Mobile v8.0.8 APK](https://github.com/bfly123/claude_code_bridge/releases/download/v8.0.8/ccb-mobile-v8.0.8.apk)
217
127
  - App 源码:[`mobile/app`](mobile/app)
218
128
  - 服务端 gateway 源码:[`lib/mobile_gateway`](lib/mobile_gateway)
219
129
 
@@ -231,9 +141,9 @@ ccb update mobile
231
141
  然后按终端提示:
232
142
 
233
143
  1. 在桌面/服务器和手机上安装并登录同一个 Tailscale tailnet。
234
- 2. Android 手机上安装 APK。
235
- 3. 在桌面/服务器运行 `ccb update mobile`。
236
- 4. 打开 CCB Mobile,扫描终端打印的配对二维码。
144
+ 2. 启动 CCB 打印的 loopback-only Mobile gateway 和 Tailscale Serve 命令。
145
+ 3. Android 手机上安装 APK。
146
+ 4. 打开 CCB Mobile,扫描配对二维码。
237
147
 
238
148
  安全边界:
239
149
 
@@ -244,286 +154,47 @@ ccb update mobile
244
154
  - 手机只获得 pairing profile 授权的 scope,例如 view、content、terminal、
245
155
  file upload 和 file download。
246
156
 
247
- ### Agent Roles Spec 规范和角色库
248
-
249
- CCB 支持 [Agent Roles Spec](https://github.com/SeemSeam/agent-roles-spec):这是一个 host-neutral 的专业 agent 封装规范,可把专业角色打包成可安装、可挂载、可卸载的 Role Pack。该仓库同时也是公开角色库。
250
-
251
- <details>
252
- <summary><b>当前角色库</b></summary>
253
-
254
- | Role | 基本功能 |
255
- | :--- | :--- |
256
- | `agentroles.ccb_self` | CCB 自维护、配置辅助、运行诊断、受保护恢复和工作流编排。 |
257
- | `agentroles.archi` | 架构审查、边界检查、耦合分析、可维护性风险和后续 gate 建议。 |
258
- | `agentroles.frontend_engineer` | 前端设计与实现、设计系统、可访问性、浏览器 QA 和受审查的 AGY 委派。 |
259
- | `agentroles.mobile_app_engineer` | iOS、Android、React Native、Expo、Flutter、SwiftUI、Jetpack Compose 等移动端设计与实现。 |
260
- | `agentroles.mother` | Role 创建、Role source 审计、角色研究、蓝图设计和 Agent Roles 规范合规检查。 |
261
- | `agentroles.su_ccb` | SU-CCB 工作流操作,覆盖需求分析、计划、派发、审查 gate、归档和恢复。 |
262
-
263
157
  </details>
264
158
 
265
- ### 联系方式
159
+ <a id="rich-mode-new"></a>
266
160
 
267
- - Email: `bfly123@126.com`
268
- - **[Telegram group & contact / TG 群与联系](https://t.me/+BKn03v8I_ehmYzRk)**
269
- - 微信: `seemseam-com`
161
+ #### 1.4 Rich 富媒体终端
162
+
163
+ 在终端查看文件结构、打开文件、编辑文档和预览媒体内容。
270
164
 
271
165
  <p align="center">
272
- <img src="assets/weixin.jpg" alt="微信群" width="240">
166
+ <img src="assets/readme_v7/rich-workbench.png" alt="CCB rich 富媒体工作台在 WezTerm 中使用 Yazi 预览" width="860">
273
167
  </p>
274
168
 
275
- ---
276
-
277
- ## 更多阅读
278
-
279
- 初次使用先看“快速开始”即可。下面按用途折叠,需要哪块再展开。
280
-
281
- | 主题 | 什么时候看 |
282
- | :--- | :--- |
283
- | 概念和定位 | 了解 CCB 是什么、多 agent 为什么有用,以及与其他方案的区别。 |
284
- | 日常操作 | 查常用命令、tmux 基础操作和复制粘贴。 |
285
- | 配置和角色 | 配 `.ccb/ccb.config`、Role Packs、`ccb_self` 配置助手。 |
286
- | 协作与维护 | ask 路由、安装更新、FAQ 和致谢。 |
287
- | 版本记录 | 查看当前 v7 重点和历史版本条目。 |
288
-
289
- <details open>
290
- <summary><b>概念和定位</b></summary>
291
-
292
- ### CCB 是什么
293
-
294
- CCB 是一个项目级 agent CLI 工作台。它用 tmux 管理多个真实 CLI agent,把启动、恢复、通信、配置、窗口和运行态聚合在一个项目里。
295
-
296
- - **真实 CLI,不是模拟面板**:每个 agent pane 都运行对应 provider 的真实 CLI。
297
- - **可见协作**:sidebar 展示窗口、agent 状态和通信区;用户可以用鼠标直接切 pane。
298
- - **混合 provider**:一个项目里可以同时跑 Codex、Claude、Gemini、Kimi(`kimi`)、MiMo(`mimo`)、Qwen(`qwen`)、Cursor(`cursor`)、Copilot(`copilot`)、Crush(`crush`)、Kiro(`kiro`)、Pi(`pi`)、Z.ai CLI(`zai`)、OpenCode、Droid 和 Antigravity(`agy`)。
299
- - **项目级配置**:`.ccb/ccb.config` 决定团队、布局、窗口、worktree、model、key、url。
300
- - **内置 CCB 专家**:空白项目默认包含 `ccb_self`,它是具备 CCB 自理解能力的自维护 agent,可帮助使用 CCB、设计配置、诊断运行态、恢复工作流。
301
- - **Roles**:全新的角色封装概念;它让携带“重武器”(独立 skills、记忆和
302
- 工具依赖等)的专业角色瞬间“降临”到目标项目中,成为一个可以快速热加载和
303
- 卸载的独立 agent,同时保持主环境、用户全局配置和项目运行状态不发生改变。
304
- - **可恢复运行态**:CCB 后台守护 agent pane,支持 attach、恢复和项目级清理。
305
- - **显式协作通道**:agent 可以通过 `/ask`、`$ask`、callback 和 silence 进行委派与交接。
306
-
307
- ### 为什么需要多 agents
308
-
309
- 小任务用单 agent 就够了;一旦任务需要规划、并行实现、审查、测试和交接,多 agents 的价值就变成:把角色、上下文、模型和执行过程拆开管理。CCB 的重点是把多个真实 CLI agent 放进同一个可见终端工作台。
310
-
311
- | 价值 | 直观理解 |
312
- | :--- | :--- |
313
- | 角色分离 | `main` 负责任务拆分,`worker` 负责实现,`reviewer` 负责审查。 |
314
- | 并行推进 | 一个 agent 写代码时,另一个 agent 可以读文档、跑验证或审查风险。 |
315
- | 模型和上下文分层 | 不同 agent 可以用不同 provider、model、API、worktree 和记忆。 |
316
-
317
- <details>
318
- <summary><b>展开:单 agent 为什么会吃力?</b></summary>
319
-
320
- - 角色混杂会影响上下文集中度:同一个会话既要做架构,又要写代码,还要自我审查,容易在长任务里丢掉重点。
321
- - 可执行复杂度有上限:任务越长,越需要拆分、交接、核对和回滚点。
322
- - 成本压力更高:如果所有步骤都依赖一个最强模型,简单任务也会变贵。
323
- - 工具和 skill 集中会变难管理:什么都给一个 agent,等于把权限、说明和工具复杂度全部堆在一起。
324
- - 串行等待效率低:一个 agent 在跑测试、读日志或长时间思考时,其他可并行工作无法自然展开。
325
-
326
- </details>
327
-
328
- ### 多 agents 方案怎么选
329
-
330
- 多 agents 不是一种固定形态。先用下面这张表判断大方向,细节可以展开看。
331
-
332
- | 方案 | 一句话 | 更适合你如果 |
333
- | :--- | :--- | :--- |
334
- | [Claude Code 原生 subagents](https://code.claude.com/docs/en/sub-agents) / [agent teams](https://code.claude.com/docs/en/agent-teams) | Claude Code 内部的原生分工。 | 你主要留在 Claude Code,并接受更多协调由 Claude lead 处理。 |
335
- | [Hive / OpenHive](https://github.com/aden-hive/hive) | 面向生产工作流的多 agent harness。 | 你要状态、恢复、观测、成本控制和图式工作流。 |
336
- | CCB | 可见、可控、混合 provider 的本地 CLI agent 工作台。 | 你要把 Codex、Claude、Gemini、Kimi、MiMo、Qwen、Cursor、Copilot、Crush、Kiro、Z.ai CLI、OpenCode、Antigravity 等真实 CLI 放到一个项目终端里操作。 |
337
-
338
- <details>
339
- <summary><b>展开:模型、可控性、上下文和复杂工作流怎么区别?</b></summary>
340
-
341
- | 关键问题 | Claude Code 原生 | Hive / OpenHive | CCB |
342
- | :--- | :--- | :--- | :--- |
343
- | 能否使用不同家的模型 | 可给 teammate / subagent 指定 Claude 模型;整体仍在 Claude Code 体系内。 | 通过 LiteLLM 路线支持大量 hosted / local provider。 | 按 agent 选择 Codex、Claude、Gemini、Kimi、MiMo、Qwen、Cursor、Copilot、Crush、Kiro、Z.ai CLI、OpenCode、Droid、Antigravity 等,并可设置独立 model / key / url。 |
344
- | 过程是否可见 | in-process 或 split panes,取决于模式和终端。 | 强调 runtime observability 和控制台视角。 | 默认就是 tmux 可见 pane,用户能直接点击、输入、复制、观察每个 CLI。 |
345
- | 拓扑是否可控 | 可自然语言指定队友,但运行时协调较多交给 lead。 | 由目标生成图式拓扑,偏 harness。 | 配置文件显式定义 agent、窗口、pane、worktree 和 sidebar。 |
346
- | 上下文是否可管理 | subagent / teammate 有独立上下文;team 有任务和消息状态。 | 角色记忆、状态持久化、恢复能力是核心卖点。 | 每个 CLI 保留自己的 provider 会话;项目共享记忆和 per-agent 记忆可选。 |
347
- | 最适合的落点 | Claude Code 内部的快速委派和团队模式。 | 业务流程自动化、长期运行和生产可靠性。 | 本地开发、代码协作、跨 provider CLI agent 可视化工作台。 |
348
-
349
- CCB 也支持复杂工作流,但它不是自动生成 DAG 的 harness;复杂度主要通过 `.ccb/ccb.config`、多 window、角色记忆、worktree、model/API 配置和 ask/callback 路由显式设计。
350
-
351
- </details>
352
-
353
- </details>
354
-
355
- <details>
356
- <summary><b>日常操作</b></summary>
357
-
358
- ### 日常操作
169
+ ```bash
170
+ ccb update rich
171
+ ```
359
172
 
360
- | 目标 | 命令 |
361
- | :--- | :--- |
362
- | 启动或重新 attach 当前项目工作台 | `ccb` |
363
- | 安全启动,保留各 agent 配置的权限策略 | `ccb -s` |
364
- | 重建运行态,保留配置和同名 managed agent 历史 | `ccb -n` |
365
- | 停止当前项目后台 | `ccb kill` |
366
- | 强制清理当前项目残留后再重建 | `ccb kill -f` 后接 `ccb -n` |
367
- | 更新到最新稳定 release | `ccb update` |
368
- | 安装或刷新可选 rich 富媒体工作台 | `ccb update rich` |
369
- | 移除 rich 模式并退回普通启动 | `ccb uninstall rich` |
370
- | 打开 rich 富媒体工作台 | `ccb rich` |
371
- | 查看当前使用的配置层 | `ccb config validate` |
372
- | 预览配置热加载计划,不修改 tmux | `ccb reload --dry-run` |
373
- | 应用支持的配置变更,不重启其他 agent | `ccb reload` |
374
-
375
- ### tmux 常规操作
376
-
377
- CCB 虽然基本全部可以使用鼠标操作,但是学会 tmux 命令可以显著增加便利性。下面列举了部分常用的键盘操作快捷键。
378
-
379
- 本节只讲 tmux。下面的 `<prefix>` 默认为 `Ctrl-b`:**先按 `Ctrl-b`,松开,再按后面的功能键**。功能键建议在英文输入法下按,避免中文输入法拦截符号键。
380
-
381
- | 目标 | 功能键 | 说明 |
382
- | :--- | :--- | :--- |
383
- | 切换到相邻 pane | `方向键` | 选择上、下、左、右相邻 agent pane。 |
384
- | 切到下一个 pane | `o` | 不关心方向时快速轮转。 |
385
- | 放大 / 还原当前 pane | `z` | 看长输出、diff、日志时非常有用。 |
386
- | 打开 window / pane 列表 | `w` | 在多 window、多 pane 时选择目标。 |
387
- | 下一个 window | `n` | 切到下一个 tmux window。 |
388
- | 上一个 window | `p` | 切到上一个 tmux window。 |
389
- | 切到编号 window | `0` 到 `9` | 直接跳到对应编号的 window。 |
390
- | 进入复制/滚动模式 | `[` | 查看历史输出、滚动、选择文本。 |
391
- | 退出复制/滚动模式 | `q` 或 `Esc` | 回到正常输入。 |
392
- | 粘贴 tmux buffer | `]` | 粘贴 tmux 自己复制的内容。 |
393
- | 暂时 detach 会话 | `d` | 退出显示但不停止 CCB 后台,会话仍可重新 attach。 |
394
-
395
- 复制粘贴建议:
396
-
397
- - **鼠标复制**:大多数终端里可以直接左键拖选复制;如果拖选被 tmux 接管,先进入复制/滚动模式再选择。
398
- - **绕过 tmux 拖选**:很多终端支持 `Shift + 鼠标拖选` 使用终端原生复制。
399
- - **系统粘贴**:Linux/Windows 终端通常是 `Ctrl+Shift+V`,macOS 终端通常是 `Cmd+V`。
400
- - **tmux 粘贴**:如果内容已经在 tmux buffer 里,用功能键 `]`。
173
+ rich 启用后,普通 `ccb` 会自动打开 rich WezTerm launcher,只有当当前已经处于 CCB 自己拉起的 rich WezTerm 中时才不会再次跳转;运行 `ccb uninstall rich` 可退回普通终端启动。
401
174
 
402
175
  <details>
403
- <summary><b>更多常用 tmux 操作</b></summary>
404
-
405
- | 目标 | 功能键 | 说明 |
406
- | :--- | :--- | :--- |
407
- | 在复制/滚动模式中滚动 | `PageUp` / `PageDown` / `方向键` | 不同终端支持略有差异。 |
408
- | 在复制/滚动模式中搜索 | `Ctrl-s` / `Ctrl-r` | 分别常用于向前/向后搜索。 |
409
- | 新建 window | `c` | 只在你明确需要额外 shell 时使用。 |
410
- | 重命名 window | `,` | 多 window 工作流中更容易识别。 |
411
- | 显示快捷键帮助 | `?` | 忘记快捷键时查看 tmux 帮助。 |
176
+ <summary><b>Rich 模式详情</b></summary>
412
177
 
413
- 不建议新用户一开始就使用关闭 pane/window tmux 快捷键。停止 CCB 项目请优先使用 CCB 的项目级退出命令,避免只杀掉某个可恢复 pane 造成误判。
414
-
415
- </details>
178
+ 运行 `ccb update rich` 安装可选富媒体工作台;它会尽量封装 Yazi 等二进制,并用 WezTerm 承载富媒体终端界面,提供 Markdown 渲染和图片/PDF/视频预览。安装后,普通 `ccb` 会自动打开 rich launcher,只有当当前已经处于 CCB 自己拉起的 rich WezTerm 中时才不会再次跳转;`ccb rich` 仍可作为显式启动入口。
416
179
 
417
180
  </details>
418
181
 
419
- <details>
420
- <summary><b>配置和角色</b></summary>
421
-
422
- ### 配置 agent 团队
423
-
424
- CCB 配置有三层,优先级从低到高:
425
-
426
- 1. 内置默认配置。
427
- 2. 用户配置 `~/.ccb/ccb.config`。
428
- 3. 项目配置 `.ccb/ccb.config`。
429
-
430
- 更高层会整体替换低层,不做局部合并。当前项目的权威配置文件是 `.ccb/ccb.config`;旧路径 `.ccb_config/ccb.config` 只应作为迁移参考。
431
- 内置默认配置是 v2 `[windows]` 拓扑,包含 `agent1`、`agent2`、`agent3` 和 `ccb_self`。可选 rich 富媒体工作台通过 `ccb update rich` 安装;启用后普通 `ccb` 会走 rich launcher,运行 `ccb uninstall rich` 后退回普通终端启动。默认 `ccb_self` 使用 `codex` 并绑定 `agentroles.ccb_self`。
432
-
433
- `.ccb/ccb.config` 主要配置这些内容:
434
-
435
- | 配置内容 | 写法或位置 | 说明 |
436
- | :--- | :--- | :--- |
437
- | window 分组 | `[windows]` | 把 agent 分到 `main`、`work`、`review`、`research` 等 tmux window。 |
438
- | agent 名称和 provider | `main:codex`、`reviewer:claude` | 名称用于界面、ask 路由和记忆文件;provider 决定启动哪家 CLI。 |
439
- | 工作区隔离 | `worker1:codex(worktree)` | 给实现类 agent 独立 git worktree,降低互相覆盖的风险。 |
440
- | sidebar 行为 | `[ui.sidebar]` | 控制 sidebar 是否每个 window 都显示、左右位置、宽度和 Comms 高度。 |
441
- | 工具 window | `[tool_windows.<name>]` | 添加 rich 富媒体工作台这类非 agent 托管 window;sidebar 只显示一行,不是 `ask` 目标。 |
442
- | 单 agent 模型/API | `[agents.<name>]` | 可为不同 agent 配 `model`、`key`、`url` 等。 |
443
- | Role Pack 绑定 | `agentroles.archi:codex` | 通过 window leaf 绑定可复用角色包;role 资产统一安装,再投影到解析出的 agent。 |
444
- | 角色说明 | `[agents.<name>] description = "..."` | 给 agent 一个简短职责说明;更长的工作流规则建议写到 memory。 |
445
-
446
- 在已启动的项目里修改 `.ccb/ccb.config` 后,先运行 `ccb reload --dry-run` 预览计划,再运行 `ccb reload` 应用。显式 reload 可以动态新增 agent、新增 window、新增/删除托管工具 window、卸载 idle agent、删除 idle window,同时保持无关 agent 和 pane 继续运行。它不是后台文件监听;busy agent 卸载、provider 替换、agent 移动、工具命令替换和任意布局重排会被拒绝,不会 kill 现有 pane。
447
-
448
- 如果你想先讨论配置而不是手写,可以直接让 `ccb_self` 描述目标团队。空白项目默认已经有这个路由;使用用户配置或项目配置覆盖内置默认的项目,如果还没有 `ccb_self`,需要先添加 `agentroles.ccb_self`。它的内置 `ccb-config` skill 会先提出完整方案,确认后再修改 `.ccb/ccb.config`。
449
-
450
- #### Role Packs
451
-
452
- Role Pack 通过 [Agent Roles Spec](https://github.com/SeemSeam/agent-roles-spec)
453
- 定义可复用的 agent 角色。这个规范是 host-neutral 的专业 agent 包格式:一个
454
- Role 可以把稳定身份、职责、非目标、记忆、skills、prompts、references、tools、
455
- plugin 内容、验证说明和 host adapter metadata 放进一个可审查的独立单元。
456
-
457
- 它的意义是把边界分清楚:Role source 保持可移植、可版本化;项目绑定决定这个
458
- Role 挂载到哪里;provider 运行态、凭据、任务进度和生成的投影文件都留在 Role
459
- 外部。这样专门 agent 更容易安装、更新、审计、迁移和卸载,不需要在每个项目里复制
460
- 大段 prompt,也不会污染用户全局配置。
461
-
462
- 推荐默认 catalog roles 包括 `agentroles.ccb_self` 和
463
- `agentroles.archi`:前者是 CCB 自维护角色,后者用于架构审查,来自
464
- `agent-roles-spec`,并由 Architec 支撑。`install.sh install` 默认会尝试安装
465
- 或刷新这些推荐角色;`ccb update` 会在用户环境里刷新已安装 role,并安装缺失的
466
- 推荐角色。也可以手动刷新:
467
-
468
- ```bash
469
- ccb roles list
470
- ccb roles show agentroles.archi
471
- ccb roles install agentroles.archi
472
- ccb roles update agentroles.ccb_self
473
- ccb roles update agentroles.archi
474
- ```
475
-
476
- 项目内的 role 绑定仍由 `.ccb/role-lock.json` 固定。`ccb update` 不会改写项目
477
- 锁。在项目内运行 `ccb` 时,CCB 会比较已绑定 role lock 和用户环境里当前安装的
478
- role;如果锁已经落后,交互式启动会询问是否就地刷新项目锁,非交互启动只打印
479
- 提醒。
480
-
481
- 强烈建议 CCB 项目保留 `ccb_self`,因为它是 CCB 内置专家 agent,携带 CCB
482
- 项目配置、命令使用、role 绑定、reload 边界、运行诊断、受保护恢复、工作链修复和
483
- 单 agent 重启辅助等专用知识,同时不接管业务任务。空白项目的内置默认配置已经
484
- 包含它;已有项目,或使用用户配置/项目配置替换内置默认的项目,需要该维护 agent
485
- 时应显式把它作为 window leaf 加进去:
486
-
487
- ```bash
488
- ccb roles add agentroles.ccb_self:codex
489
- ccb reload
490
- ```
491
-
492
- 在项目里使用 `agentroles.archi` 时,把它作为 window leaf 加进去:
182
+ #### 1.5 更新
183
+ 安装完成后,后续更新直接使用 CCB 自带 updater:
493
184
 
494
185
  ```bash
495
- ccb roles add agentroles.archi:codex
496
- ccb reload
497
- ```
498
-
499
- 这会写入紧凑形式 `agentroles.archi:codex`。运行时 CCB 会把它解析成项目本地
500
- agent `archi`,并把 role memory 和 skills 投影到该 agent 的 managed
501
- provider home。
502
-
503
- <details>
504
- <summary><b>配置格式示例:单窗口、多 window、per-agent 模型/API</b></summary>
505
-
506
- #### 单窗口紧凑配置
507
-
508
- ```text
509
- cmd; main:codex, worker1:codex(worktree); reviewer:claude
186
+ ccb update
510
187
  ```
511
188
 
512
- 含义:
189
+ <a id="创建项目配置"></a>
513
190
 
514
- - `cmd` 是 shell pane,不是 agent。
515
- - `main`、`worker1`、`reviewer` 是 agent 名称。
516
- - `codex`、`claude` 是 provider。
517
- - `;` 表示左右分栏,`,` 表示上下堆叠。
518
- - `(worktree)` 表示该 agent 使用独立 git worktree。
519
-
520
- #### 多 window 拓扑
191
+ ### 2. 创建项目配置
521
192
 
522
- 当你想把规划、实现、审查、研究分到不同 tmux window 时,使用 `version = 2` 和 `[windows]`:
193
+ 在项目根目录创建 `.ccb/ccb.config`。推荐使用 v2 `[windows]` 拓扑:
194
+ window 内的 agent 排布由 `,` 和 `;` 控制上下堆叠和左右分栏,例如 `A,B;C,D` 接近四宫格布局。
523
195
 
524
196
  ```toml
525
197
  version = 2
526
- entry_window = "main"
527
198
 
528
199
  [windows]
529
200
  main = "main:codex"
@@ -540,197 +211,72 @@ tips_height = "35%"
540
211
  comms_limit = 3
541
212
  ```
542
213
 
543
- 注意:`cmd` 只属于紧凑/混合单窗口布局;`[windows]` 拓扑里不要写 `cmd`。
544
-
545
- #### Rich 富媒体工作台工具 window
546
-
547
- 工具 window 是 CCB 管理的 tmux window,但不是 agent。它不会出现在 `ccb ask` 目标中,也不会创建 provider runtime 记录。
548
-
549
- ```toml
550
- version = 2
551
- entry_window = "main"
552
-
553
- [windows]
554
- main = "main:codex"
555
-
556
- [tool_windows.rich]
557
- command = "CCB_WORKBENCH_PROFILE=rich CCB_WORKBENCH_FORCE_RICH=1 ccb-workbench files"
558
- label = "rich"
559
- ```
560
-
561
- `ccb update rich` 会在 CCB 自己的 XDG 目录下准备可选工作台包,优先下载并验证可封装的二进制,只把 WezTerm、Markdown/PDF/图片/视频辅助工具和推荐字体等必要依赖交给平台包管理器。WSL 下可以调用 Windows 原生 `wezterm.exe`,同时让 rich 工具继续运行在当前 Linux 发行版内。普通 `ccb update` 不会主动安装或刷新该包;需要安装、修复或更新时重新运行 `ccb update rich`。运行 `ccb uninstall rich` 会移除该包,并让普通 `ccb` 回到常规终端启动。设置 `CCB_RICH_DOWNLOAD_BINARIES=0` 可跳过二进制下载,设置 `CCB_RICH_INSTALL_DEPS=0` 可跳过系统包安装。
562
-
563
- #### 给 agent 单独配置模型、API key 或 base URL
564
-
565
- 如果只需要布局,用紧凑格式即可;如果某些 agent 需要单独模型或 API 路由,在紧凑头后追加 TOML overlay:
566
-
567
- ```toml
568
- cmd; fast:codex, deep:codex; reviewer:claude
569
-
570
- [agents.fast]
571
- model = "gpt-5-mini"
572
-
573
- [agents.deep]
574
- key = "sk-..."
575
- url = "https://api.example.com/v1"
576
- model = "gpt-5"
577
-
578
- [agents.reviewer]
579
- model = "sonnet"
580
- ```
581
-
582
- 不要把真实 API key 提交到公开仓库。`key` / `url` 是 agent 级快捷字段;更复杂的 provider 环境变量应放到 provider profile 或 agent env 中。
583
-
584
- </details>
585
-
586
- ### 使用 ccb_self 配置 CCB
587
-
588
- 完整的 `ccb-config` skill 属于 `agentroles.ccb_self` 角色,不再作为所有 agent 都继承的公共 skill。CCB 默认会安装或刷新这个 Role Pack,空白项目的内置默认配置也会包含 `ccb_self`。已有项目,或使用用户配置/项目配置替换内置默认的项目,需要维护助手时应显式绑定它。
589
-
590
- `ccb_self` 不只是配置助手,它被设计成 CCB 的自理解 agent。使用 CCB 时遇到布局解释、团队拓扑选择、`.ccb/ccb.config` 迁移、运行态诊断、恢复路径或工作流修复问题,都可以先问它。
591
-
592
- 如果你不想手写 `.ccb/ccb.config`,可以直接询问 `ccb_self`,再用自然语言描述项目目标、并行程度、窗口分组、worktree 隔离、provider/model/API 偏好。`ccb_self` 会使用它内置的 `ccb-config` 和你讨论后提出完整配置方案。
593
-
594
- 示例:
595
-
596
- ```bash
597
- ccb ask ccb_self "为一个 Python library 设计团队:main 负责任务拆分,三个 worker 使用 worktree 并行实现,一个 reviewer 做回归和风险审查。保留单窗口还是拆成 main/work/review 三个 window 由你建议。"
598
- ```
599
-
600
- 如果是尚未配置 `ccb_self` 的已有项目,先运行
601
- `ccb roles add agentroles.ccb_self:codex` 和 `ccb reload`。
602
-
603
- <details>
604
- <summary><b>ccb-config 的写入流程和边界</b></summary>
605
-
606
- 1. 你用自然语言描述项目和团队目标。
607
- 2. `ccb_self` 内置的 `ccb-config` 读取当前配置权威层,判断是新建、修改还是迁移。
608
- 3. 它先提出完整配置方案,不应直接改文件。
609
- 4. 你确认后,它只修改 `.ccb/ccb.config`。
610
- 5. 它运行配置校验,并在可动态应用时提醒你使用 `ccb reload --dry-run` / `ccb reload` 生效。
611
-
612
- 默认情况下,`ccb-config` 不会修改 `.ccb/ccb_memory.md` 或 `.ccb/agents/<agent>/memory.md`。只有当你明确要求 `ccb_self` “设计工作流记忆”或“写入角色记忆”时,才应该修改这些 memory 文件。
613
-
614
- </details>
615
-
616
- </details>
617
-
618
- <details>
619
- <summary><b>协作与维护</b></summary>
620
-
621
- ### Agent 之间如何协作
622
-
623
- 普通 `ask` 是提交即返回:把任务交给目标 agent 后,当前 agent 不应该轮询等待。
624
-
625
- | 场景 | 推荐方式 |
626
- | :--- | :--- |
627
- | 人直接指定目标 agent | `/ask reviewer ...` 或 `$ask reviewer ...` |
628
- | 当前 agent 在 active CCB task 内,必须等子任务结果才能回复 | `ask --callback reviewer` |
629
- | 当前 agent 派发独立任务,成功结果不需要回来 | `ask --silence worker1` |
630
- | 调试队列、诊断状态 | `pend`、`watch`、`ping` 等只作为诊断工具使用 |
631
-
632
- agent 提交子任务时,先按结果意图选参数,再按依赖关系和内容保真补充参数:
633
-
634
- | 需求 | 推荐参数 |
635
- | :--- | :--- |
636
- | 发布或执行任务,成功结果不需要回来 | `--silence` |
637
- | 需要简短结果:状态、发现、风险、阻塞、下一步 | `--compact` |
638
- | 需要完整咨询、分析、报告、生成文档或结构化结论 | `--artifact-reply` |
639
- | 当前 active 父任务必须等子任务结果才能继续 | 追加 `--callback` |
640
- | 需要保留精确粘贴的日志、diff、JSON/YAML、表格或复制文本 | 追加 `--artifact-request` |
641
- | 输入和输出都需要保真 | `--artifact-io` |
642
- | 只是短问题或短交接,行内文本足够 | 普通 `ask` |
643
-
644
- `--callback` 和 `--silence` 管任务关系;artifact 参数管内容保真。自动长消息
645
- spill 只是兜底,所以只要精确输入或完整输出重要,就应该主动使用 artifact 参数。
646
-
647
- <details>
648
- <summary><b>Callback 为什么重要</b></summary>
649
-
650
- 如果 agent A 正在处理一个来自用户的 CCB task,又需要 agent B 的结果才能完成,就应该用 callback。CCB 会记录 parent/child 关系,让 A 当前 turn 结束;等 B 完成后,CCB 再把结果作为 continuation 交回 A。这样不会阻塞队列,也不会让 agent 靠轮询浪费上下文。
651
-
652
- </details>
653
-
654
- ### 安装和更新
655
-
656
- #### 环境要求
657
-
658
- - 推荐 npm 安装路径需要 Node.js 和 npm
659
- - Python 3.10+
660
- - `tmux`
661
- - 至少一个你要使用的 agent CLI,例如 Codex、Claude、Gemini、Kimi、MiMo、Qwen、Cursor、Copilot、Crush、Kiro、Z.ai CLI、OpenCode、Droid 或 Antigravity
662
- - Linux、macOS 或 WSL
663
-
664
- 当前 v7 / 新版本不声明原生 Windows 支持。原生 Windows 只支持到 v5 线;如果你在 Windows 上使用新版本,推荐使用 WSL,并让 `ccb` 与 agent CLI 都运行在 WSL 内。
665
-
666
- #### npm 优先
214
+ 如果你不确定应该如何分组、要几个 worker、哪些 agent 用 worktree、哪些 agent 需要独立模型或 API,可以直接问当前工作台里的 `ccb_self`。它是 CCB 内置的 self-agent,理解 CCB 命令、配置权威层、roles、windows、reload 边界和常见恢复路径,并能用私有 `ccb-config` skill 和你讨论后生成配置方案。空白项目默认包含 `ccb_self`。
667
215
 
668
- 首次安装推荐使用 npm:
216
+ 验证配置:
669
217
 
670
218
  ```bash
671
- npm install -g @seemseam/ccb
219
+ ccb config validate
672
220
  ```
673
221
 
674
- 后续更新直接使用:
222
+ 启动工作台:
675
223
 
676
224
  ```bash
677
- ccb update
225
+ ccb
678
226
  ```
679
227
 
680
- [GitHub Releases](https://github.com/bfly123/claude_code_bridge/releases) 仍作为不方便使用 npm 时的备选路径。源码 checkout 安装只适合开发、验证修复或临时兜底。
681
-
682
- #### 卸载
228
+ ### 3. 开始协作
683
229
 
684
- ```bash
685
- ccb uninstall
686
- ccb reinstall
230
+ 你可以直接在某个 agent pane 里输入,也可以让 agent 之间协作:
687
231
 
688
- # 备用方式:在安装包或源码目录内
689
- ./install.sh uninstall
232
+ ```text
233
+ /ask reviewer review the latest parser changes and list blocking issues.
690
234
  ```
691
235
 
692
- ### 常见问题
236
+ 也可以在工作编排中让 agent 自动调用 `/ask` 完成委派和交接。建议通过修改 agent 记忆或项目共享记忆 `.ccb/ccb_memory.md` 进行编排。
693
237
 
694
- <details>
695
- <summary><b>启动后没有看到预期 agent</b></summary>
238
+ **后续超强编排正在开发中**
696
239
 
697
- 先运行 `ccb config validate`,确认 `config_source_kind` 是你预期的层级。项目配置 `.ccb/ccb.config` 优先级最高;如果它不存在,CCB 才会使用 `~/.ccb/ccb.config` 或内置默认配置。
240
+ ### 4. Agent Roles Spec 规范和角色库
698
241
 
699
- </details>
242
+ CCB 支持 [Agent Roles Spec](https://github.com/SeemSeam/agent-roles-spec):这是一个 host-neutral 的专业 agent 封装规范,可把专业角色打包成可安装、可挂载、可卸载的 Role Pack。该仓库同时也是公开角色库。
700
243
 
701
244
  <details>
702
- <summary><b>复制粘贴不好用</b></summary>
245
+ <summary><b>当前角色库</b></summary>
703
246
 
704
- 优先试鼠标拖选复制和 `Ctrl+Shift+V` / `Cmd+V` 粘贴。如果鼠标选择被 tmux 接管,使用 `<prefix>` 后的功能键 `[` 进入复制/滚动模式;如果只是想绕过 tmux,很多终端支持 `Shift + 鼠标拖选`。
247
+ | Role | 基本功能 |
248
+ | :--- | :--- |
249
+ | `agentroles.ccb_self` | CCB 自维护、配置辅助、运行诊断、受保护恢复和工作流编排。 |
250
+ | `agentroles.archi` | 架构审查、边界检查、耦合分析、可维护性风险和后续 gate 建议。 |
251
+ | `agentroles.frontend_engineer` | 前端设计与实现、设计系统、可访问性、浏览器 QA 和受审查的 AGY 委派。 |
252
+ | `agentroles.mobile_app_engineer` | iOS、Android、React Native、Expo、Flutter、SwiftUI、Jetpack Compose 等移动端设计与实现。 |
253
+ | `agentroles.mother` | Role 创建、Role source 审计、角色研究、蓝图设计和 Agent Roles 规范合规检查。 |
254
+ | `agentroles.su_ccb` | SU-CCB 工作流操作,覆盖需求分析、计划、派发、审查 gate、归档和恢复。 |
705
255
 
706
256
  </details>
707
257
 
708
- <details>
709
- <summary><b>想把旧 compact 配置迁移到多 window</b></summary>
258
+ ### 5. 联系方式
710
259
 
711
- 让 `ccb_self` 使用它内置的 `ccb-config`,描述你想要的窗口分组,例如 main/work/review。迁移时应保留旧 agent 名称、provider、worktree 标记、model/key/url 等字段,确认后再写入 `[windows]`。
712
-
713
- </details>
714
-
715
- <details>
716
- <summary><b>sidebar helper 不可用</b></summary>
260
+ - Email: `bfly123@126.com`
261
+ - **[Telegram group & contact / TG 群与联系](https://t.me/+BKn03v8I_ehmYzRk)**
262
+ - 微信: `seemseam-com`
717
263
 
718
- 优先使用 release 包,因为 release 包会携带或处理 sidebar helper。源码安装时如果缺少可用的预编译 helper,可能需要本机 Rust 工具链来构建。
264
+ <p align="center">
265
+ <img src="assets/weixin.jpg" alt="微信群" width="240">
266
+ </p>
719
267
 
720
- </details>
268
+ ---
721
269
 
722
- ### 社区和致谢
270
+ ### 6. 社区和致谢
723
271
 
724
272
  感谢 [Linux.do 社区](https://linux.do) 在测试、反馈和讨论中的支持。
725
273
 
726
274
  感谢 [tmux-agent-sidebar](https://github.com/hiroppy/tmux-agent-sidebar) 提供的 sidebar 思路和启发。
727
275
 
728
- </details>
729
-
730
276
  <details>
731
277
  <summary><b>版本记录</b></summary>
732
278
 
733
- ### 新版本记录
279
+ ### 7. 新版本记录
734
280
 
735
281
  v7 线重点:
736
282
 
@@ -742,74 +288,6 @@ v7 线重点:
742
288
  - 加固 tmux、Ghostty、release helper、Codex trust 和 provider 会话恢复路径。
743
289
 
744
290
  <details open>
745
- <summary><b>v8.0.7</b> - CCB Mobile 通知与主题稳定化</summary>
746
-
747
- - 新增 server-wide 任务完成通知 SSE 和 Android 本地通知,payload 保持低敏,并已真实验证点击回到目标 project/agent。
748
- - 合入 provider runtime 状态判断,供手机 activity indicator 和 sidebar 状态使用。
749
- - 更新手机 App 的 steel-blue/slate 主题、正文样式、展开气泡高度限制和通知分组点击处理。
750
- - 同步 VERSION、package metadata、mobile app 版本、README 链接、workflow 默认值和 APK 下载链接到 8.0.7。
751
-
752
- </details>
753
-
754
- <details>
755
- <summary><b>v8.0.6</b> - CCB Mobile 真实项目对话稳定性</summary>
756
-
757
- - 改进 Android CCB Mobile 真实项目 pane-native 对话、状态恢复、
758
- terminal stream、扫码/手动配对、输入体验、多语言和时间线噪音过滤。
759
- - 合入 CCB source 线上的 server-wide 项目列表、原生 provider transcript、
760
- provider runtime status 和 mobile terminal pane input 修复。
761
- - `ccb update mobile` 改用紧凑终端配对二维码,保持原始 CCB Mobile 桥形图标,
762
- 并把相机不可用时的扫码失败改成可操作 fallback,避免展示 native 插件错误。
763
- - 同步 VERSION、package metadata、mobile app version metadata、README 链接、
764
- workflow 默认值和 APK 下载链接到 8.0.6。
765
-
766
- </details>
767
-
768
- <details>
769
- <summary><b>v8.0.4</b> - CCB Mobile 项目列表稳定性</summary>
770
-
771
- - server-wide mobile gateway 的 `/v1/projects` 现在会并发检查已挂载项目健康状态,
772
- 同时保持 registry 顺序,避免项目较多时手机端加载超时或连接中断。
773
- - 手机断开或超时时,mobile gateway 不再为普通 BrokenPipe/connection reset
774
- 写出刷 traceback。
775
-
776
- </details>
777
-
778
- <details>
779
- <summary><b>v8.0.3</b> - npm Release Metadata 修复</summary>
780
-
781
- - 修复 npm provenance metadata,使 `@seemseam/ccb` 的发布仓库与 GitHub
782
- Actions 使用的 canonical 仓库一致。
783
- - 同步 VERSION、package metadata、mobile app version metadata、README 链接、
784
- workflow 默认值和 APK 下载链接到 8.0.3。
785
-
786
- </details>
787
-
788
- <details>
789
- <summary><b>v8.0.2</b> - Mobile Tailnet Onboarding 修复</summary>
790
-
791
- - 正确识别 Tailscale Serve 一次性授权链接,不再把原始 timeout 暴露给用户。
792
- - 如果 `:8787` 的 Tailscale Serve 代理已经正确指向 loopback mobile gateway,
793
- `ccb update mobile` 会直接复用并进入配对二维码流程。
794
- - 修复 source worktree 安装时误复制 `.git` worktree 标记的问题,避免安装版
795
- `ccb` 被误判为源码 checkout。
796
-
797
- </details>
798
-
799
- <details>
800
- <summary><b>v8.0.1</b> - CCB Mobile 极简配对</summary>
801
-
802
- - 将 `ccb update mobile` 收敛为唯一面向普通用户的设置入口:检测
803
- Tailscale、引导登录/安装、启动 server-wide loopback gateway 和 Tailscale
804
- Serve,并直接在终端打印配对二维码。
805
- - 手机端首次启动不再进入 fake/demo 项目,而是显示配对说明、Tailscale 下载提示
806
- 和扫码按钮。
807
- - 检测到已保存 pairing profile 后,手机端会自动进入 server-wide 已挂载项目列表,
808
- 降低普通手机使用的配置压力。
809
-
810
- </details>
811
-
812
- <details>
813
291
  <summary><b>v8.0.0</b> - CCB Mobile Monorepo 发布</summary>
814
292
 
815
293
  - Flutter 版 CCB Mobile 源码正式进入本仓库,并在 GitHub Release 中发布
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.0.7
1
+ 8.0.8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seemseam/ccb",
3
- "version": "8.0.7",
3
+ "version": "8.0.8",
4
4
  "description": "Visible, controllable multi-agent CLI workspace for Codex, Claude, Gemini, Kimi, MiMo, Qwen, Cursor, Copilot, Crush, Kiro, Pi, Z.ai, OpenCode, Antigravity, and Droid.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "homepage": "https://github.com/SeemSeam/claude_codex_bridge#readme",