dsh-taskbridge 1.9.1 → 1.9.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.2 — Codex Code Mode 低耗直调、全链路长等待收口与隔离工作树回写确认(2026-11-26)
4
+
5
+ - **Codex Code Mode 低耗直调与零截断治理**:在 `codex/skills/dsh-taskbridge/SKILL.md` 的 frontmatter `description` 与 `## CODE MODE CALLS` 中明确直调 `tools.mcp__dsh_delegate__*`,禁止整组打印 `ALL_TOOLS`(消除全局 MCP `instructions` 重复拼接引发的首轮 10k Token 输出截断与后续纯查工具回合),仅按需对单一精确工具名切片打印 `exec tool declaration:`;同步在主入口与按需附页内联 `delegate_plan`(单节点与 `nodes` 批量建树)、`allowShared + autoPreflight`、`continueFromTaskId`、`delegate_permission_decide`(精确拷贝 `fingerprint`)与 `delegate_question_answer` 标准调用模板。
6
+ - **全链路长等待(`yield_time_ms: 1200000`)统一收口**:在首次 `delegate_submit({ wait: true })`、单链 `delegate_wait`、返工/子包复用提交、`waitAfterDecision: true` 与 `waitAfterAnswer: true` 全部等待入口统一固化 `// @exec: {"yield_time_ms": 1200000}`(杜绝回退为 60 秒短等待),规范 `Script running with cell ID` 单链续等与附页完整章节读取。
7
+ - **本地审查合并与隔离工作树(`worktree`)收官回写询问**:Codex 端收紧 `delegate_result({ taskId, includeDiff: false })` 回执校验与 `executionWorkspacePath` 单次组合验证串联;Codex 与 Antigravity 双端统一规定在整条任务链完成 `accepted` 持久化(含最终 `delegate_plan` 总评)后,默认保持 `sourcePath` 原目录不改动并汇报 `executionWorkspacePath`,同时在对话中以纯文本询问用户是否需要将已验收改动写回原工作目录(用户确认后先做冲突检查再本地同步且不自动 `git commit`)。
8
+ - **7 题基准省流复验、产品简介数据刷新与无感升级支持**:Codex 7 题基准连续四轮 `7/7`(`700/700`)满分通过,较 `1.9.1` 满分场(`179` 步 / `1,139.2 万` 总 Token)主控步数压降 **29.6%–36.9%**(`113–126` 步)、含缓存总 Token 压降 **34.1%–43.7%**(`641.4 万–751.1 万`,`T5` 单题总 Token 降 **45.5%–60.4%**、主控输出较无插件基线省 **44.2%–69.5%**);同步刷新 `README.md`、`docs/INTRODUCTION.zh.md` 与 `docs/INTRODUCTION.md` 中的双端基准与省流实测章节,并在 `src/codex/installer.js` 与 `src/antigravity/installer.js` 中补登已发布 `1.9.1`(LF / CRLF)及 `1.9.2-test1`–`test4` 托管技能的精确 SHA-256 哈希。详见 [1.9.2 更新说明](docs/releases/1.9.2.zh.md)。
9
+
3
10
  ## 1.9.1 — 插件简介与介绍文案统一为「宿主端」表述、前端提示清理(2026-11-25)
4
11
 
5
12
  - **插件清单与市场索引简介优化**:重写 `package.json`、`locale/zh.json` 与 `locale/en.json` 中的安装预览简介,去除具体基准测试百分比,改为概括表达插件的设计意图与核心功能,并统一以「上层宿主端」为主语(末尾保留已适配宿主及 2.0 路线说明)。
package/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  **让上层宿主端专注架构规划与验收把关,把繁重编码与测试调测交给 DeepSeek Harness(DSH)黑盒执行。**
4
4
 
5
- > **当前正式版 `1.9.1` · 已原生支持 Codex 与 Antigravity 一键集成;Claude Code / Claude Desktop 接入计划于 2.0 上线。**
6
- > 本次 `1.9.1` 统一插件简介、中英文介绍文档与 DSH 前端文案为「宿主端」表述并补登 `1.9.0` 无感升级哈希;`1.9.0` 架构升级详见 [1.9.1 更新说明](docs/releases/1.9.1.zh.md) 与 [1.9.0 更新说明](docs/releases/1.9.0.zh.md)。
5
+ > **当前正式版 `1.9.2` · 已原生支持 Codex 与 Antigravity 一键集成;Claude Code / Claude Desktop 接入计划于 2.0 上线。**
6
+ > 本次 `1.9.2` 完成 Codex Code Mode 低耗直调(零整组工具倾倒与输出截断)、全链路 `yield_time_ms: 1200000` 静默长等待收口,以及隔离工作树验收通过后主动询问是否写回原目录;详见 [1.9.2 更新说明](docs/releases/1.9.2.zh.md) 与 [1.9.0 更新说明](docs/releases/1.9.0.zh.md)。
7
7
 
8
- [English](docs/INTRODUCTION.md) · [为什么选择 TaskBridge](#为什么选择-taskbridge) · [1.9.0 双端基准测试与结论](#190-双端基准测试与结论) · [核心能力](#核心能力) · [快速上手](#快速上手) · [设置与机制](#设置与机制) · [常见问题](#常见问题) · [更新日志](CHANGELOG.md)
8
+ [English](docs/INTRODUCTION.md) · [为什么选择 TaskBridge](#为什么选择-taskbridge) · [双端基准测试与省流实测](#双端基准测试与省流实测) · [核心能力](#核心能力) · [快速上手](#快速上手) · [设置与机制](#设置与机制) · [常见问题](#常见问题) · [更新日志](CHANGELOG.md)
9
9
 
10
10
  **DSH TaskBridge** 是面向 **DeepSeek Harness(DSH)** 的跨宿主黑盒派工桥接插件。
11
11
  你可以在最顺手的上层宿主端里阅读仓库、拆解架构、设定接口契约并独立验收交付;将耗费大量代码输出与反复调测轮次的具体实现工作,通过 11 个有界标准 `delegate_*` MCP 工具交给 DSH 内已配置的高性价比或专属模型落地。
@@ -19,7 +19,7 @@
19
19
  当你信任高阶旗舰模型(如 GPT / Gemini 高推理档位)的架构设计与代码审查能力,但不想让它在样板代码编写和反复跑单测排错上快速消耗宝贵配额,同时又厌倦了在多个窗口间手工粘贴提示词与 diff 时,TaskBridge 通过四层架构直接打通协同闭环:
20
20
 
21
21
  - **L1 宿主因地制宜,零空转等待**:
22
- - **Codex 端(`1.9.0` 原生技能)**:安装紧凑入口 `skills/dsh-taskbridge/SKILL.md` 与按需读取附页,由当前主会话直调 `delegate_submit({ autoPreflight: true, wait: true })` + 单链 `delegate_wait`(配合 `tool_timeout_sec = 3660` 静默长等),彻底根除旧版 `spawn_agent` + 短超时 `wait_agent` 的高频轮询空转,并自动安全退役未修改的旧 `.toml` 子智能体。
22
+ - **Codex 端(`1.9.0+` 原生技能)**:安装紧凑入口 `skills/dsh-taskbridge/SKILL.md` 与按需读取附页,在 Code Mode 下直接调用 `tools.mcp__dsh_delegate__*`(免整组打印 `ALL_TOOLS` 防输出截断)并驱动 `delegate_submit({ autoPreflight: true, wait: true })` + 单链 `delegate_wait`(全链路 `yield_time_ms: 1200000` 配合 `tool_timeout_sec = 3660` 静默长等),彻底根除旧版 `spawn_agent` + 短超时 `wait_agent` 的高频轮询空转,并自动安全退役未修改的旧 `.toml` 子智能体。
23
23
  - **Antigravity 端(自包含插件包)**:默认将预检、等待循环与常规权限审批卸载给轻量 `flash` 后台子智能体托管,主旗舰模型零唤醒挂起,仅在交付后接收精简结构化证据完成最终审查。
24
24
  - **L2 架构师式派工,杜绝代写与洁癖返工**:双端共享单一真源派工内核——**大任务拆小包(`delegate_plan`)+ 指明架构骨架、接口契约与范围红线(严禁宿主端在提示词中代写逐行实现代码或伪代码)+ 务实独立审查(仅对违背规范、真 Bug、测试失败或越界残留合并一轮打回,拒绝超纲假设空耗)**。
25
25
  - **L3 紧凑有界 MCP 协议**:支持预检、提交与首段等待合并为一次调用。单行 JSON 载荷支持在本地审查时省略补丁正文或只返回回执(`includeDiff: false` / `receiptOnly: true`)。
@@ -27,37 +27,41 @@
27
27
 
28
28
  ---
29
29
 
30
- ## 1.9.0 双端基准测试与结论
30
+ ## 双端基准测试与省流实测
31
31
 
32
- 我们使用覆盖 7 类真实工程场景的跨宿主黑盒基准套件(`T0A` 非指派静默边界、`T0B` 三类非法/未提交 Git 目录只读拦截、`T1` 配额账本核心实现、`T2` 超额计费与审计报告、`T3` 折扣集成与导出 CLI、`T4` 脏工作区未提交草稿完整性保护、`T5` 含 **235 项单测 + 6 份只读契约 SHA-256 校验**的企业级三域计费平台重构),在相同初始靶场与统一独立黑盒阅卷脚本下,基于 **`1.9.0-test6` 候选构建**对 **Antigravity** 与 **Codex** 双端进行了同宿主无插件直做基线对照实测。插件组 DSH 执行后端统一采用轻量模型 `deepseek-v4.1-flash`。
32
+ 我们使用覆盖 7 类真实工程场景的跨宿主黑盒基准套件(`T0A` 非指派静默边界、`T0B` 三类非法/未提交 Git 目录只读拦截、`T1` 配额账本核心实现、`T2` 超额计费与审计报告、`T3` 折扣集成与导出 CLI、`T4` 脏工作区未提交草稿完整性保护、`T5` 含 **235+ 项单测 + 6 份只读契约 SHA-256 校验**的企业级三域计费平台重构),在相同初始靶场与统一独立黑盒阅卷脚本下,对 **Antigravity(`1.9.1` 正式版)** 与 **Codex(`1.9.0` → `1.9.2` 演进实测)** 进行了同宿主无插件直做基线对照。插件组 DSH 执行后端统一采用轻量模型 `deepseek-v4.1-flash`。
33
33
 
34
34
  ### 1. 双端综合实测总览
35
35
 
36
- | 宿主端与主控配置 | 运行模式 | 全集通过(得分) | `T1–T5` 同题通过 | `T1–T5` 主控均步 | `T1–T5` 强模型有效 Token(非缓存输入 + 输出) | 强模型有效省流率 | `T1–T5` 强模型含缓存总 Token | 辅助 / DSH 执行端 Token |
36
+ | 宿主端与主控配置 | 运行模式 | 全集通过(得分) | `T1–T5` 同题通过 | `T1–T5` 主控均步 | `T1–T5` 强模型有效 Token(非缓存输入 + 输出) | 强模型省流与减负成效 | `T1–T5` 强模型含缓存总 Token | 辅助 / DSH 执行端 Token |
37
37
  | --- | --- | :---: | :---: | ---: | ---: | ---: | ---: | ---: |
38
- | **Antigravity**<br>`gemini-4-neon-xhigh` | 无插件直做基线 | — | 5/5(均分 100) | 11.00 | 618,861 | 基线 | 3,276,639 | 0 |
39
- | **Antigravity**<br>`gemini-4-neon-xhigh` | **`1.9.0-test6` 插件组**<br>(`flash` 子智能体 + DSH) | **7/7(均分 100)** | **5/5(均分 100)** | **11.80**<br>*(7 题全集 9.57)* | **420,450**<br>*(7 题全集 484,480)* | **净省 32.06%** | 3,724,763<br>*(+13.68%)* | Flash 辅助 2,298,138<br>+ DSH 后端执行 |
40
- | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | 无插件直做基线 | — | 4/5(均分 96) | 11.20 | 608,065 | 基线 | 1,966,145 | 0 |
41
- | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.0-test6` 插件组**<br>(原生 Skill 单链 + DSH) | **6/7 通过** | **4/5(均分 96)**<br>*逐题得分 100% 一致* | **28.60**<br>*(7 题全集 21.29)* | **459,102**<br>*(7 题全集 503,180)* | **净省 24.50%** | 9,060,958<br>*(4.61×,94%+ 为缓存读)* | DSH 回执 745,409 |
42
-
43
- > **核验说明**:① `T0A`(普通非代码问答)中 Codex 仅 1 步直接回答、工具调用为 0,Antigravity 辅助步数为 0,两端均 100% 严守非指派不触发红线;`T0B` 三类不合规目录均被只读预检精准拦截且靶场完好。② Codex 端基线与 `1.9.0-test6` 插件组在 `T2` 上均因标准阅卷省略超额策略参数时要求返回 `overageUnits` 扣 20 分(同得 80 分),显式传入 `charge-overage-tier` 补测后两组三个样例均满分通过。③ 相比升级单链架构前的 `test5` 轮询态(Codex 7 题有效 Token `2,367,661`、总 Token `1,863 万`),`1.9.0-test6` 将 Codex 有效 Token 压降了 **78.7%**。
44
-
45
- ### 2. `T1–T5` 分题强模型有效 Token(非缓存输入 + 输出)省流明细
46
-
47
- | 题目与工程特征 | Antigravity 基线 → `1.9.0-test6` | Antigravity 有效省流率 | Codex 基线 → `1.9.0-test6` | Codex 有效省流率 |
48
- | --- | ---: | ---: | ---: | ---: |
49
- | **`T4`** · 脏仓库小型增量修复(保留未提交草稿) | 44,731 → 56,269 | -25.79% *(小任务固定开销)* | 81,590 → 86,816 | -6.40% *(小任务固定开销)* |
50
- | **`T1`** · 配额账本核心模块实现(20 项单测) | 73,559 → 46,177 | **+37.22%** *(总 Token 亦省 9.8%)* | 52,768 → 52,446 | **+0.61%** *(基本打平)* |
51
- | **`T2`** · 分层超额计费与审计报告(39 项单测) | 92,737 → 53,542 | **+42.26%** *(总 Token 亦省 19.2%)* | 100,570 → 87,502 | **+13.00%** |
52
- | **`T3`** · 折扣引擎、账本集成与导出 CLI(51 项单测) | 85,481 → 64,440 | **+24.61%** *(总 Token 亦省 15.9%)* | 82,885 → 67,827 | **+18.17%** |
53
- | **`T5`** · 企业级三域计费平台重构(235 项单测 + 6 契约校验) | 322,353 → 200,022 | **+37.95%** | 290,252 → 164,511 | **+43.32%** *(主控输出降 47.9%)* |
38
+ | **Antigravity**<br>`gemini-4-neon-high` | 无插件直做基线 | — | 5/5(均分 100) | 11.00 | 618,861<br>*(输出 191,677)* | 基线 | 3,276,639 | 0 |
39
+ | **Antigravity**<br>`gemini-4-neon-high` | **`1.9.1` 正式版**<br>(`flash` 子智能体 + DSH) | **7/7(均分 100)** | **5/5(均分 100)** | **12.00**<br>*(7 题全集 9.71)* | **438,153**<br>*(7 题 499,363;输出 80,705)* | **有效净省 29.20%**<br>*(强模型输出省 **57.90%**)* | **3,362,021**<br>*(仅 +2.61%,7 题 353.9 万)* | Flash 辅助 2,134,229<br>+ DSH 后端执行 |
40
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | 无插件直做基线 | — | 4/5(均分 96) | 11.20 | 608,065<br>*(输出 66,816)* | 基线 | 1,966,145 | 0 |
41
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.0` / `1.9.1` 原生通道**<br>(`openai` 通道,缓存命中 94%+) | 6/7 → **7/7(均分 100)** | 4/5 → **5/5(均分 100)** | 28.60 / 34.60<br>*(7 题 149 / 179 步)* | **459,102 / 555,747**<br>*(输出 59,626 / 50,993)* | **有效净省 24.50% / 8.60%**<br>*(主控输出省 10.8%–23.7%)* | 9,060,958 / 11,256,291<br>*(7 题 920 万 / 1,139 万)* | DSH 后端执行 |
42
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.2` Code Mode 减负版**<br>(`test3` 隔离收官 / `test4` 含写回) | **连续 4 轮 7/7(均分 100)** | **5/5(均分 100)**<br>*超越基线 4/5* | **21.60–24.00**<br>*(7 题 **113–126 步**,较 1.9.1 降 **30%–37%**)* | 输出 **47,085–59,683**<br>*(`custom` 通道总有效 1.20M–1.48M\*)* | **主控输出省 10.7%–29.5%**<br>*(较 1.9.1 满分场总 Token 降 **34%–44%**)* | **6,274,024–7,350,171**<br>*(7 题 **641 万–751 万**)* | DSH 后端执行 |
43
+
44
+ > **核验与通道口径说明**:
45
+ > 1. **零误触发与零截断**:`T0A` 普通非代码问答双端均零派工直接作答,`T0B` 三类不合规仓库均被只读预检精准拦截;`1.9.2` 将 Codex Code Mode 首轮整组 `ALL_TOOLS` 倾倒、10k 输出截断、纯查工具回合与 MCP 参数报错全部清零为 **`0`**。
46
+ > 2. **跨代减负幅度**:相比 `1.9.0` 单链化前的旧轮询态(Codex 7 题 `258` 步、总 Token `1,863.1 万`),`1.9.2` 将主控步数压降 **51.2%–56.2%**、含缓存总 Token 压降 **59.7%–65.6%**;相比 `1.9.1` 首个 `7/7` 满分场(`179` 步、总 Token `1,139.2 万`、等待中途 41 次短唤醒),`1.9.2` 将主控步数再降 **29.6%–36.9%**、含缓存总 Token 再降 **34.1%–43.7%**(其中重型题 `T5` 从 `78 步 / 698.9 万` 压降至 **`34–43 步 / 276.5 万–381.2 万`**,单题总流量最高净降 **`60.4%`**)。
47
+ > 3. **\*转发通道缓存率说明**:`1.9.2` 四轮测试运行于自定义转发通道(`model_provider: "custom"`,输入缓存命中率约 `79.6%–83.7%`),而 `1.9.0` / `1.9.1` 运行于原生 `openai` 通道(缓存命中率 `93.8%–95.4%`),因此 `custom` 通道下表观未缓存输入更高;在不受网关缓存策略影响的**主控总步数、高价代码输出 Token 与含缓存总 Token** 三项硬指标上,`1.9.2` 均创下满分场历史最优。
48
+
49
+ ### 2. `T1–T5` 分题强模型省流与 `1.9.2` 减负明细
50
+
51
+ | 题目与工程特征 | Antigravity 基线 → `1.9.1` 有效 Token | Antigravity 省流成效 | Codex 同 `openai` 通道有效 Token(基线 → `1.9.0`) | Codex `1.9.2` 满分场减负表现(`1.9.1` 满分场 → `1.9.2`) |
52
+ | --- | ---: | ---: | ---: | --- |
53
+ | **`T4`** · 脏仓库小型增量修复(保留未提交草稿) | 44,731 → 52,433 | -17.22% *(小任务固定开销,输出仍省 42.6%)* | 81,590 → 86,816 *(-6.40%)* | `23` → **`16–23` 步**;总 Token `100.3 万` → **`68.8 万–101.5 万`** |
54
+ | **`T1`** · 配额账本核心模块实现(20 项单测) | 73,559 → 46,354 | **+36.98%** *(含缓存总 Token 亦净省 **23.2%**)* | 52,768 → 52,446 *(+0.61%)* | `34` → **`14–17` 步**;总 Token `145.8 万` → **`56.6 万–71.8 万`** *(降 **50.7%–61.2%**)* |
55
+ | **`T2`** · 分层超额计费与审计报告(39 项单测) | 92,737 → 86,586 | **+6.63%** *(强模型输出净省 **49.3%**)* | 100,570 → 52,455 *(`1.9.1` **+47.84%**)* | 满分 `100/100`(超越基线 `80` 分);主控输出稳定在 `8.4k–11.2k` |
56
+ | **`T3`** · 折扣引擎、账本集成与导出 CLI(51 项单测) | 85,481 → 65,151 | **+23.78%** *(含缓存总 Token 亦净省 **29.0%**)* | 82,885 → 67,220 *(**+18.90%**)* | `22` → **`15` 步**;总 Token `111.2 万` → **`70.6 万–75.2 万`** *(降 **32.4%–36.5%**)* |
57
+ | **`T5`** · 企业级三域计费平台重构(235+ 项单测 + 6 契约校验) | 322,353 → 187,629 | **+41.80%** *(强模型输出净省 **60.8%**)* | 290,252 → 164,511 *(**+43.32%**)* | `78` → **`34–43` 步**;总 Token `698.9 万` → **`276.5 万–381.2 万`** *(降 **45.5%–60.4%**,输出较基线省 **44.2%–69.5%**)* |
54
58
 
55
59
  ### 3. 四点实测结论与选型建议
56
60
 
57
- 1. **轻量模型执行 + 强主控验收,同题得分与无插件旗舰基线完全持平**:尽管执行端使用的是轻量高性价比模型(`deepseek-v4.1-flash`),依靠主控在派工前定清接口契约与防坑边界、交付后在隔离工作树独立跑测验收并按需发起原会话修正(如 Codex 在 `T1–T5` 执行了 1~3 轮精准退回修复),双端在包含 235 项跨模块单测的重型架构题 `T5` 上均拿到 **100/100**,`T1–T5` 逐题得分与同宿主旗舰模型直做完全一致。
58
- 2. **任务越复杂,强模型有效 Token 省得越显著(重型任务省流约 38%–43%)**:在 `T2`、`T3`、`T5` 等多文件功能开发、复杂业务规则与跨子系统重构中,原本由强模型承担的大段代码输出与反复跑测上下文被转移至 DSH,双端有效 Token 稳定节省 **13.0%–43.3%**;而对于像 `T4` 这样几分钟即可改完的极小单点修改,预检与审查往返的固定开销会抵消省流(微增 `6.4%`–`25.8%`),更适合直接在当前宿主端顺手改完。
59
- 3. **双端宿主运行机制不同,前缀缓存表现各有特征**:Antigravity 依托 `flash` 后台子智能体隔离了等待与常规审批(`T5` 中卸载了 67.5% 的交互步数),`T1–T5` 同题主控平均步数(`11.80` vs 基线 `11.00`,7 题全集 `9.57`)基本持平,`T1`/`T2`/`T3` 连含缓存总 Token 都低于无插件基线;Codex 由主会话单链直调 MCP,遇到多轮权限审批或返工(如 `T2`/`T5` 退回 3 轮、33~54 步)时会重放主会话前缀缓存(含缓存总 Token 为基线的 `4.61` 倍,但其中 **94% 以上均为低单价 `cacheRead` 命中**),高单价的非缓存输入与代码输出仍净降 `24.5%`。
60
- 4. **以适度后台墙钟耗时换取主力模型配额**:由于增加了派工通信、轻量模型编码调测及审查返工轮次,Antigravity 同题 `T1–T5` 平均端到端耗时约为基线的 `1.76` 倍(`656s` vs `372s`,7 题全集均耗时 `481s`),Codex 逐题累计耗时约为基线的 `3.11` 倍(扣除 7 题全并发首包约 9 分钟排队等待后约为基线的 `1.9` 倍)。推荐在后台或多工作树并行场景下派发中大型编码包,把主力旗舰配额留给核心架构决策与代码把关。
61
+ 1. **轻量模型执行 + 强主控验收,双端均稳定拿到 `7/7`(700/700)全满分**:尽管执行端使用的是轻量高性价比模型(`deepseek-v4.1-flash`),依靠宿主端在派工前定清接口契约与防坑边界、交付后在隔离工作树独立跑测验收并按需原会话续修,Antigravity(`1.9.1`)与 Codex(`1.9.1` 及 `1.9.2` 连续四轮)均实现 **7/7 全满分通过**,Codex 插件组在 `T2` 上还超越了无插件基线(`100` vs `80`)。
62
+ 2. **任务越复杂,主力模型配额省得越显著(重型架构题 `T5` 有效省流 41.8%–43.3%、代码输出省 44%–69%)**:在 `T1`、`T2`、`T3`、`T5` 等多文件开发与跨模块重构中,大段实现代码输出与反复跑测排错被卸载至 DSH,Antigravity `T1–T5` 强模型输出直降 **57.9%**,Codex `T5` 主控输出直降 **44.2%–69.5%**;而几分钟可改完的极小单点修改(`T4`)存在固定预检与验收往返开销,更适合直接在宿主端顺手完成。
63
+ 3. **双端宿主架构各有优势,`1.9.2` 大幅缩小 Codex 单链前缀重放开销**:Antigravity 依托 `flash` 后台子智能体吸收中间等待与审批回合,`T1–T5` 强模型含缓存总 Token(`336.2 万`)几乎与无插件基线(`327.7 万`)持平,`T1`/`T3` 总 Token 甚至净省 `23%–29%`;Codex 由主会话单链直调 MCP,`1.9.2` 通过根除 `ALL_TOOLS` 截断、收口 `1200s` 长等待与合并本地审查回合,将 7 题主控步数压缩至 **`113–126` 步**、含缓存总 Token 压降至 **`641 万–751 万`**(较 `1.9.1` 满分场净降 **34%–44%**)。
64
+ 4. **以适度后台墙钟耗时换取主力旗舰配额**:7 题全并发下 `1.9.2` Codex 端到端约 **46 分钟**一气呵成跑完(含重型三域重构题 `T5`),非常适合在后台或多工作树并行场景下派发中大型编码包,把宝贵的旗舰模型配额留给架构决策与代码把关。
61
65
 
62
66
  ---
63
67
 
@@ -115,7 +119,7 @@ dsh-taskbridge
115
119
  | **独立工作树(默认)** | 从已提交的 Git 基线拉出隔离 worktree;在 DSH 侧栏自动折叠于 `TaskBridge` 节点下并按任务标题命名;多阶段下游子包可通过 `reuseWorktreeFromTaskId` 在同一隔离树上开启新会话接力开发 | 希望改动与主目录隔离,或同一项目同时并行跑多个独立任务,验收后再决定如何合入;清理时可连同工作树与临时工作区一并移除。 |
116
120
  | **共享工作区** | 直接在授权的项目目录内修改;沿用项目自己的原生工作区并保留项目原名称(不落入 `TaskBridge` 节点下) | 当前目录已有未提交改动,且明确希望 DSH 基于现状继续修改(预检确认后才允许);联动清理绝不删除项目源码目录与共享工作区。 |
117
121
 
118
- > **仓库硬性前提**:无论是独立工作树还是共享工作区,都要求授权目录是**已初始化且至少有 1 次 commit 的 Git 仓库根目录**(普通聊天问答或非仓库临时目录不走 TaskBridge)。审查通过只记录结论,不会自动合并工作树、创建提交或推送代码。
122
+ > **仓库硬性前提**:无论是独立工作树还是共享工作区,都要求授权目录是**已初始化且至少有 1 次 commit 的 Git 仓库根目录**(普通聊天问答或非仓库临时目录不走 TaskBridge)。审查通过只持久化验收结论,不会自动合并工作树、创建提交或推送代码;在 `worktree` 模式下验收通过后,宿主端会汇报隔离工作树路径并询问是否将改动同步写回原工作目录。
119
123
 
120
124
  ### 静默等待与分级监控
121
125
 
@@ -160,7 +164,7 @@ dsh-taskbridge
160
164
 
161
165
  ## 更多文档
162
166
 
163
- - [1.9.1 更新说明](docs/releases/1.9.1.zh.md) · [1.9.0 更新说明](docs/releases/1.9.0.zh.md) · [Codex 集成契约](docs/codex-integration.md) · [Antigravity 集成契约](docs/antigravity-integration.md) · [Claude 接入规划](docs/claude-code.md)
167
+ - [1.9.2 更新说明](docs/releases/1.9.2.zh.md) · [1.9.1 更新说明](docs/releases/1.9.1.zh.md) · [1.9.0 更新说明](docs/releases/1.9.0.zh.md) · [Codex 集成契约](docs/codex-integration.md) · [Antigravity 集成契约](docs/antigravity-integration.md) · [Claude 接入规划](docs/claude-code.md)
164
168
  - [静默等待说明](docs/silent-wait.md) · [工作区与隔离](docs/workspace-contract.md) · [会话放置与续接](docs/conversation-placement.md)
165
169
  - [运行时兼容性](docs/runtime-compatibility.md) · [插件发现与更新](docs/plugin-market.md) · [旧名称迁移](docs/taskbridge-upgrade.md)
166
170
 
@@ -206,7 +210,7 @@ Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式
206
210
 
207
211
  ```bash
208
212
  npm pack
209
- # → dsh-taskbridge-1.9.1.tgz
213
+ # → dsh-taskbridge-1.9.2.tgz
210
214
  ```
211
215
 
212
216
  2. 使用本地包时,通过 **添加插件**入口选择下载或生成的 `.tgz`(或本仓库目录)完成安装。
@@ -220,7 +224,7 @@ Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式
220
224
 
221
225
  ```bash
222
226
  # 装进一个 profile(例:web)
223
- dsh plugin --profile web add ./dsh-taskbridge-1.9.1.tgz && dsh plugin --profile web why dsh-taskbridge
227
+ dsh plugin --profile web add ./dsh-taskbridge-1.9.2.tgz && dsh plugin --profile web why dsh-taskbridge
224
228
 
225
229
  # 启动(首次启动会自动把插件 bundle 追加到 dsh.profile.bundles)
226
230
  dsh --profile web
@@ -233,7 +237,7 @@ dsh --profile web
233
237
  ### 说明与注意
234
238
 
235
239
  - **不要装进你正在用的正式 profile 做试验。** 建议先用一次性 profile:
236
- `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.9.1.tgz`,再把
240
+ `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.9.2.tgz`,再把
237
241
  `DSH_HOME` 指向临时目录做隔离验证。该命令同样只用于 CLI profile。
238
242
  - 该包声明了 `@deepseek-ai/dsh-*` 的 peer,若你的包管理器默认自动安装 peer,
239
243
  安装过程会尝试解析这些版本。可显式关闭:`npm_config_auto_install_peers=false`
@@ -658,7 +662,7 @@ Codex 托管规则(1.1.0–1.8.x 为子智能体文件,1.9.0 起升级为原
658
662
  # 不要在 Desktop 的正式 profile 下执行下面的 CLI 命令。
659
663
 
660
664
  # CLI web profile 的升级:换成本地新包或(将来)新版本
661
- dsh plugin --profile web add ./dsh-taskbridge-1.9.1.tgz
665
+ dsh plugin --profile web add ./dsh-taskbridge-1.9.2.tgz
662
666
 
663
667
  # 导出:界面里"导出非敏感配置"按钮,或用只读 API
664
668
  # GET /api/dsh-delegate/settings
@@ -61,4 +61,5 @@ DSH TaskBridge 对本端而言是一个**黑盒代码执行服务**:底层 API
61
61
  - **轻量落盘(默认传 `receiptOnly: true`)**:**必须**调用 `delegate_review({ taskId, decision: "accepted" | "changes-requested", note, completionSummary?, receiptOnly: true })` 写回审查结论(`completionSummary` 为可选字符串,不填时直接省略该字段、切勿传 `null`;传 `receiptOnly: true` 仅返回精简持久化回执,避免全量任务快照触发大文件落盘重读;完整参数签名已在此给出可直接调用,仅在需核对 schema 细则或调用报错时再读 `delegate_review.json`),确认返回 `reviewPersistence.state === "saved"` 且 `reviewPersistence.durable === true`(若为 `saving` / `timed-out` 须如实报告落盘未确认;若为 `failed` 可重试);绝不跳过审查直接宣告完成。
62
62
  - **通过快车道 vs 返工止血车道**:
63
63
  - **若当前包通过(`accepted`)**:多子包推进时,可在**同一回合**内并行发出当前子包的 `delegate_review(..., decision: "accepted", receiptOnly: true)` 与下一就绪子包的 `invoke_subagent` 派发(或最后一个子包通过时同回合发出 `delegate_review` 与 `delegate_plan({ action: "review", ... })`),减少多包串联空转回合。
64
+ - **隔离工作树收官与回写询问(`worktree` 模式)**:当整条任务链的全部必选工作包均完成 `accepted` 落盘(含最终 `delegate_plan` 总评)后,保持 `sourcePath` 原工作目录不改动(切勿未经确认自行拷贝、打补丁或重跑测试),在最终验收汇报中给出 `executionWorkspacePath`,并用纯文本顺带询问用户是否需要将已验收改动写回原工作目录(不要调用 `ask_question` 弹窗工具);若用户确认写回,先检查 `sourcePath` 是否有未提交冲突,再由当前宿主端在本地安全同步改动(不自动 `git commit`)。
64
65
  - **若当前包需返工(`changes-requested`)**:**立即冻结所有依赖该包的后续子包**(绝不带病往下派);先把当前包内的全部违约点、失败测试与遗漏边界一次性排查清楚,调用 `delegate_review(..., decision: "changes-requested", note, receiptOnly: true })` 落盘,随后以 **`continueFromTaskId: taskId` + 原授权 `workspacePath`(及同一 `planNodeId`)** 在原会话合并发起一轮返工;返工 `prompt` 应**直接点破失败根因与具体修复方向,并明确要求已通过的接口与测试不得退化**;待当前包返工复验拿到 `accepted` 后才可解锁推进下游子包(若同一难点经 1–2 轮返工仍原地打转,应主动将该点拆得更细或给出更明确的约束,必要时向用户汇报)。
@@ -3,17 +3,18 @@ name: dsh-taskbridge
3
3
  description: >-
4
4
  Dispatch explicitly assigned Git implementation or verification to DSH through the
5
5
  dsh-delegate MCP server (delegate_* tools), wait directly and review in Codex. Activate on
6
- explicit DSH / TaskBridge delegation or $dsh-taskbridge.
6
+ explicit DSH / TaskBridge delegation or $dsh-taskbridge. When active in Code Mode, call
7
+ tools.mcp__dsh_delegate__* directly. Avoid bulk ALL_TOOLS output. Print one exact tool's
8
+ declaration if needed.
7
9
  ---
8
10
  <!-- dsh-taskbridge-managed: edits make this file operator-owned. -->
9
11
  <!-- Generated by npm run build:integrations from integrations/. -->
10
- <!-- dsh-taskbridge-version: 1.9.1 -->
12
+ <!-- dsh-taskbridge-version: 1.9.2 -->
11
13
 
12
14
  # DSH TaskBridge — Codex Native Skill
13
15
 
14
- Read this compact entry once in full. Only open [the reference](rules-reference-96027c387cb9b7587efa4aa3836235d86db1108068e007dc08196e807ca25e5d.md) from this
15
- skill's directory if you actually hit multi-stage/parallel planning, a dirty-source decision, an
16
- explicit teams choice, a continuation/worktree reuse, or a non-`ready` wait event.
16
+ Read this entry in full. Open [the reference](rules-reference-7e1f2f22aaf0e95cb9acb0aad9a9750732ba4f669ae0155925e8fcf25e9594bf.md) only for multi-stage or
17
+ parallel planning, a dirty source, an explicit teams choice, task reuse, or a non-`ready` event.
17
18
 
18
19
  ## ACTIVATION (check this before anything else)
19
20
  1. Dispatch only when the user explicitly selects this skill (`$dsh-taskbridge`) or explicitly
@@ -25,6 +26,22 @@ explicit teams choice, a continuation/worktree reuse, or a non-`ready` wait even
25
26
  code/verification tasks) without calling any `delegate_*` tool.
26
27
  3. If assignment is ambiguous, ask one short clarifying question instead of dispatching.
27
28
 
29
+ ## CODE MODE CALLS
30
+ Keep skill reads separate from large outputs. Avoid dumping `ALL_TOOLS`. For a missing field, find
31
+ one tool by exact name and print only the text from `exec tool declaration:` if present.
32
+ Omit unused optional keys. Use `const data = JSON.parse(res.content[0].text)` and handle
33
+ `res.isError` or `data.ok !== true` before acting. Keep the receipts and follow the returned `reason`.
34
+
35
+ Check status first; run read-only preflight separately:
36
+
37
+ ```js
38
+ text(await tools.mcp__dsh_delegate__delegate_status({}));
39
+ ```
40
+
41
+ ```js
42
+ text(await tools.mcp__dsh_delegate__delegate_preflight({ workspacePath }));
43
+ ```
44
+
28
45
  ## P0: COMMANDER-OWNED PLANNING AND WORK PACKETS (DECOMPOSITION & DIRECTION)
29
46
  1. Codex owns decomposition, direction, scope boundaries and acceptance — NOT line-by-line coding
30
47
  details. Inspect key entry files and specs before dispatching. Submit a cohesive task that DSH
@@ -43,8 +60,6 @@ explicit teams choice, a continuation/worktree reuse, or a non-`ready` wait even
43
60
  request and repository AGENTS.md. Never expand scope or let a verification-only packet modify
44
61
  code or rules.
45
62
 
46
- For a multi-stage or parallel goal, read the reference's planning section.
47
-
48
63
  ## DISPATCH CONTRACT
49
64
  1. **PREFLIGHT (new task chains only)**. Call `delegate_status` first (once per session); if the
50
65
  switch is off or a prerequisite is missing, report the reason and pause. Never open the switch
@@ -73,16 +88,34 @@ For a multi-stage or parallel goal, read the reference's planning section.
73
88
  workspace/session identity, and `agentTeams` / `agentTeamsOrigin` / `team.applied` /
74
89
  `team.enabled`. Pause dependent dispatches and report any mismatch.
75
90
 
76
- Read the reference's dispatch section for a dirty-source decision, an explicit teams choice, or a
77
- continuation / worktree reuse.
91
+ For a normal single repo, submit and wait in one script:
92
+
93
+ ```js
94
+ // @exec: {"yield_time_ms": 1200000}
95
+ text(await tools.mcp__dsh_delegate__delegate_submit({ workspacePath, title, prompt, autoPreflight: true, wait: true }));
96
+ ```
78
97
 
79
98
  ## WAIT & EVENTS (SINGLE DIRECT CHAIN IN THIS SESSION)
80
- **Direct single-chain wait — NO `spawn_agent` / `wait_agent` wrapper**. On a new task chain,
81
- prefer `delegate_submit({ ..., autoPreflight: true, wait: true })` or `delegate_wait({ taskId })`
82
- directly in this session. Omit `waitSeconds` (default 3600 seconds, matching Codex's 3660-second
83
- tool timeout). A shorter wait is only for an explicitly requested one-off diagnostic. Never poll
84
- `delegate_status` or `delegate_result` while waiting. The observation cadence belongs to the tool,
85
- not to you.
99
+ **Direct single-chain wait — NO `spawn_agent` / `wait_agent` wrapper**. Omit `waitSeconds` (default 3600 seconds,
100
+ Codex tool timeout 3660 seconds). A shorter wait is only for an explicitly requested one-off diagnostic.
101
+ Never poll `delegate_status` or `delegate_result` during a wait. The cadence
102
+ belongs to the tool, not to you. Resume an existing task with its `taskId`.
103
+
104
+ ```js
105
+ // @exec: {"yield_time_ms": 1200000}
106
+ text(await tools.mcp__dsh_delegate__delegate_wait({ taskId }));
107
+ ```
108
+
109
+ - Prefer a direct blocking MCP call when Codex exposes one. In Code Mode, set a long outer yield
110
+ before the first call that waits, and keep it for every continuation, including waits after a
111
+ permission decision or a question answer. Where supported and allowed by the host, start the
112
+ `functions.exec` script with `// @exec: {"yield_time_ms": 1200000}`. Prefer a supported yield
113
+ that covers the full MCP wait when the host offers one.
114
+ - If Code Mode returns `Script running with cell ID`, keep the existing MCP call active. If the
115
+ host offers automatic continuation, let the tool layer resume it. Otherwise call
116
+ `functions.wait` on the same `cell_id` with the same long `yield_time_ms`. Keep waiting for the
117
+ MCP answer or agreed deadline. If the host requires short yields and model-driven continuation,
118
+ tell the operator once that waiting will wake the model at each yield.
86
119
 
87
120
  - `wait-limit` — THIS call's own wait budget ran out (`actionable: false` and `terminal: false`):
88
121
  call `delegate_wait` on the same `taskId` immediately.
@@ -95,9 +128,9 @@ not to you.
95
128
  (`reviewPersistence.durable === true`; if `saving`/`timed-out`, report honestly; if `failed`,
96
129
  retry). Consolidate defects into ONE follow-up via `continueFromTaskId`.
97
130
 
98
- Read the reference's matching event for a client timeout, `attention`, `permission`, `question`,
99
- `failed`, `cancelled`, or `interrupted`. Use its control section for an explicit inspection or stop
100
- request while the channel is blocked in `delegate_wait`.
131
+ Read the complete matching reference section for a client timeout, `attention`, `permission`,
132
+ `question`, `failed`, `cancelled`, or `interrupted`. Use its control section for an explicit
133
+ inspection or stop request during a blocking wait.
101
134
 
102
135
  ## DO NOT IMPLEMENT LOCALLY WHILE A DELEGATED WORKER RUNS
103
136
  Never commit, stash, branch, reset or edit locally while a delegated task is running, waiting or
@@ -124,8 +157,21 @@ diagnosis).
124
157
  round); record minor style preferences or out-of-spec extremes as non-blocking notes and accept
125
158
  (`accepted`).
126
159
 
127
- When `ready`, call `delegate_result({ taskId, includeDiff: false })` ONCE, then run ONE combined
128
- local check in `executionWorkspacePath` (`git rev-parse --short HEAD`, `git status --short`,
129
- `git diff --stat`, `git diff --check`, and the designated test command). Inspect changed/new
130
- production files directly; do NOT dump full diffs or boilerplate test files into stdout unless a
131
- test fails or `git status` shows suspect paths. Pass `receiptOnly: true` to `delegate_review`.
160
+ ## LOCAL VERIFICATION
161
+ After `ready`, call `tools.mcp__dsh_delegate__delegate_result({ taskId, includeDiff: false })` once.
162
+ In the same exec, check `!res.isError`, `data.ok === true`, then match the task and checkout receipt
163
+ to the authorized source and saved submission/wait receipts. Stop on missing or conflicting evidence.
164
+ Only then run one combined check in the verified `executionWorkspacePath`. Capture
165
+ `git rev-parse --short HEAD`, `git status --short`, `git diff --stat`, `git diff --check` and the
166
+ designated tests. Read relevant changed code with bounded output.
167
+
168
+ After inspecting results and changes, send the review and verify durable persistence.
169
+
170
+ ```js
171
+ text(await tools.mcp__dsh_delegate__delegate_review({ taskId, decision, note, receiptOnly: true }));
172
+ ```
173
+
174
+ In `worktree` isolation (no apply/merge tool), after durable `accepted` review (and any final
175
+ `delegate_plan` review), leave `sourcePath` untouched (no copy/patch/re-test), report
176
+ `executionWorkspacePath`, and ask in plain text (never `request_user_input`) whether to write
177
+ changes back; if confirmed, check `sourcePath` for conflicts first and sync locally without committing.
@@ -1,6 +1,6 @@
1
1
  # DSH TaskBridge — Codex rule reference
2
2
 
3
- Read the section for the current decision.
3
+ Read the complete section for the current decision.
4
4
 
5
5
  ## Multi-stage planning
6
6
 
@@ -15,13 +15,46 @@ Read the section for the current decision.
15
15
  subtasks pass); on `changes-requested`, freeze dependent downstream packets until fixed via
16
16
  `continueFromTaskId`. A single cohesive task needs no plan tree.
17
17
 
18
+ Code Mode examples. For a single node, pass `title` at the top level. For a batch,
19
+ use `nodes` in place of top-level `title` and `goalDescription`. Each node has a title;
20
+ choose at most one of `parentKey` (within the batch) and `parentNodeId` (existing parent).
21
+
22
+ ```js
23
+ text(await tools.mcp__dsh_delegate__delegate_plan({ action: 'create', workspacePath, title }));
24
+ ```
25
+
26
+ ```js
27
+ text(await tools.mcp__dsh_delegate__delegate_plan({
28
+ action: 'create', workspacePath, nodes: [
29
+ { key: 'root', title: goalTitle },
30
+ { parentKey: 'root', title: packetTitle },
31
+ ],
32
+ }));
33
+ ```
34
+
35
+ Once the required children are accepted, record the plan review.
36
+
37
+ ```js
38
+ text(await tools.mcp__dsh_delegate__delegate_plan({ action: 'review', nodeId, decision, note }));
39
+ ```
40
+
18
41
  ## Dispatch details
19
42
 
20
43
  - `isolation: "block"` with `decisionRequired: true` (`PREFLIGHT_DIRTY_NEEDS_DECISION`):
21
44
  Do NOT downgrade to shared isolation silently. Inspect the reported changed paths; when
22
45
  in-place execution is safe, state the reason, call `delegate_preflight` again with
23
- `allowShared: true`. For a `shared` decision, pass only `overrides = { isolation = "shared" }`.
46
+ `allowShared: true`. After that separate preflight confirms `shared`, submit with
47
+ `overrides: { isolation: "shared" }` and omit `allowShared`. On `delegate_submit`,
48
+ `allowShared` requires `autoPreflight: true`. After deciding to allow shared execution,
49
+ you can also combine the authorized preflight and submit by passing both flags as `true`.
24
50
  If risk or ownership is unclear, ask one focused question.
51
+
52
+ ```js
53
+ // @exec: {"yield_time_ms": 1200000}
54
+ text(await tools.mcp__dsh_delegate__delegate_submit({
55
+ workspacePath, title, prompt, autoPreflight: true, allowShared: true, wait: true,
56
+ }));
57
+ ```
25
58
  - `agentTeams`: pass `true` or `false` ONLY when the user explicitly stated a choice for this
26
59
  dispatch; otherwise omit it (new tasks follow the TaskBridge default; continuations inherit
27
60
  the chain's choice, and if that task recorded no choice at all, the plugin writes nothing so
@@ -36,7 +69,16 @@ Read the section for the current decision.
36
69
  unrelated task. For a new dependent subtask that starts a fresh DSH Session on an earlier
37
70
  finished isolated worktree, pass `reuseWorktreeFromTaskId` instead (never combine with
38
71
  `continueFromTaskId`). If a continuation or worktree reuse is refused, report it and do not
39
- retry as a new task.
72
+ retry as a new task. In Code Mode, keep `// @exec: {"yield_time_ms": 1200000}` (not 60000 ms)
73
+ whenever a continuation or subtask submission waits (`wait: true` or `delegate_wait`).
74
+ Continue with the original source and omit `autoPreflight` on either reuse path.
75
+
76
+ ```js
77
+ // @exec: {"yield_time_ms": 1200000}
78
+ text(await tools.mcp__dsh_delegate__delegate_submit({
79
+ workspacePath, title, prompt, continueFromTaskId, wait: true,
80
+ }));
81
+ ```
40
82
 
41
83
  ## Wait events
42
84
 
@@ -69,9 +111,12 @@ Read the section for the current decision.
69
111
  bounded single calls required by the current packet with complete evidence; `reject` (with a
70
112
  short `reason`) any out-of-scope path, destructive command, unauthorized external network or
71
113
  data exfiltration, credential/config edit, incomplete/redacted evidence or non-null
72
- `allowBlocked`. Quote the exact `fingerprint` and call `delegate_permission_decide`
73
- (`allow-once` or `reject`, short `reason`, and `waitAfterDecision: true` when supported; if
74
- not supported, decide first and then call `delegate_wait` on the SAME task). Omit `scope`
114
+ `allowBlocked`. Copy `requestId` and the exact `fingerprint` from the pending request.
115
+ `allow-once` requires a fingerprint. For `reject`, omit that field if none was supplied.
116
+ Pass your checked `decision` (`allow-once` or `reject`) and a short `reason` to
117
+ `delegate_permission_decide` with `waitAfterDecision: true` when supported. Otherwise
118
+ decide first and then call `delegate_wait` on the SAME task. In Code Mode,
119
+ keep `// @exec: {"yield_time_ms": 1200000}` on the waiting call, not 60000 ms. Omit `scope`
75
120
  and review each new request independently, including repeated commands. In `decisionReceipt`,
76
121
  `applied: true` is claimed ONLY when the harness confirmed the SAME task, request and operation.
77
122
  An applied receipt can include `waitError`, which means the DECISION SUCCEEDED and only the FOLLOWING WAIT
@@ -81,12 +126,29 @@ Read the section for the current decision.
81
126
  `error.details.decisionReceipt`): read the task
82
127
  with `delegate_result` before sending anything again and never resend automatically.
83
128
  Each allow covers one call only (`scope: "once"`), and the request you just decided is never re-asked.
129
+
130
+ ```js
131
+ // @exec: {"yield_time_ms": 1200000}
132
+ text(await tools.mcp__dsh_delegate__delegate_permission_decide({
133
+ taskId, requestId, decision, reason, waitAfterDecision: true,
134
+ ...(fingerprint ? { fingerprint } : {}),
135
+ }));
136
+ ```
84
137
  - `question`: answer every asked question via `delegate_question_answer({ taskId, requestId,
85
- answers, waitAfterAnswer: true })`. `grantsAccess` is always false; never answer omitted or
86
- redacted questions (`questionAnswerable: false`). Read `answerReceipt`: if `applied: true`
87
- and `waitError` is also returned, the answer WAS applied — never resend it, resume with
88
- `delegate_wait`; if `applied: null` with `confirmation: "unknown"`, read the task with
89
- `delegate_result` before sending anything again.
138
+ answers, waitAfterAnswer: true })` (in Code Mode, keep `// @exec: {"yield_time_ms": 1200000}`
139
+ on `waitAfterAnswer: true` and any `delegate_wait` resume, not 60000 ms). `grantsAccess` is
140
+ always false; never answer omitted or redacted questions (`questionAnswerable: false`). Read
141
+ `answerReceipt`: if `applied: true` and `waitError` is also returned, the answer WAS applied —
142
+ never resend it, resume with `delegate_wait`; if `applied: null` with
143
+ `confirmation: "unknown"`, read the task with `delegate_result` before sending anything again.
144
+ Use one answer per question ID with offered labels in `selected` and/or allowed `custom` text.
145
+
146
+ ```js
147
+ // @exec: {"yield_time_ms": 1200000}
148
+ text(await tools.mcp__dsh_delegate__delegate_question_answer({
149
+ taskId, requestId, answers: [{ id, selected: [label] }], waitAfterAnswer: true,
150
+ }));
151
+ ```
90
152
  - `failed` / `cancelled`: call `delegate_result` ONCE and report. For a transient DSH outage
91
153
  or transport failure, make up to 3 sequential retries on the failing stage: for an unconfirmed
92
154
  submission, first check read-only facts to verify whether a task was created or is live
@@ -2,9 +2,10 @@
2
2
 
3
3
  **Keep architecture planning and final code review in your upper host. Delegate heavy coding and test loops to DeepSeek Harness (DSH) inside a clean black-box MCP bridge.**
4
4
 
5
- > **Version `1.9.1` · Native one-click integration for Codex and Antigravity. Claude Code / Claude Desktop support is planned for 2.0.**
5
+ > **Version `1.9.2` · Native one-click integration for Codex and Antigravity. Claude Code / Claude Desktop support is planned for 2.0.**
6
+ > `1.9.2` streamlines Codex Code Mode direct tool calls (eliminating bulk `ALL_TOOLS` truncation), enforces long `yield_time_ms: 1200000` across every wait/resume path, and adds plain-text write-back confirmation after `worktree` acceptance; see [1.9.2 Release Notes (ZH)](releases/1.9.2.zh.md).
6
7
 
7
- [简体中文](INTRODUCTION.zh.md) · [Why TaskBridge](#why-taskbridge) · [1.9.0 Benchmark Results & Takeaways](#190-benchmark-results--takeaways) · [Key Capabilities](#key-capabilities) · [Quick Start](#quick-start) · [How It Works](#how-it-works) · [FAQ](#faq) · [Changelog](../CHANGELOG.md)
8
+ [简体中文](INTRODUCTION.zh.md) · [Why TaskBridge](#why-taskbridge) · [Benchmark Results & Token Savings](#benchmark-results--token-savings) · [Key Capabilities](#key-capabilities) · [Quick Start](#quick-start) · [How It Works](#how-it-works) · [FAQ](#faq) · [Changelog](../CHANGELOG.md)
8
9
 
9
10
  **DSH TaskBridge** is a cross-host task delegation plugin for **DeepSeek Harness (DSH)**.
10
11
  Stay inside your preferred upper host to inspect repositories, design interfaces, decompose multi-stage work, and review delivered diffs — while offloading verbose code generation and iterative test-fixing loops to cost-effective or custom models configured in DSH over 11 bounded `delegate_*` MCP tools.
@@ -18,7 +19,7 @@ To the host, execution is a **controlled black-box workshop**: API credentials,
18
19
  Frontier reasoning models excel at system design and code review, yet burning their quota on boilerplate implementation and repetitive test debugging gets expensive fast — while manually copying prompts and diffs across windows quickly loses context. TaskBridge connects both sides through a four-layer architecture:
19
20
 
20
21
  - **L1 Host-native zero-busy-wait adapters:**
21
- - **Codex (`1.9.0` Native Skill):** Installs a compact entry `skills/dsh-taskbridge/SKILL.md` plus an on-demand reference appendix so the active Codex session drives a single direct `delegate_submit({ autoPreflight: true, wait: true })` + `delegate_wait` chain (`tool_timeout_sec = 3660`), completely eliminating legacy `spawn_agent` + short-timeout `wait_agent` polling loops while safely retiring untouched legacy `.toml` subagents.
22
+ - **Codex (`1.9.0+` Native Skill):** Installs a compact entry `skills/dsh-taskbridge/SKILL.md` plus an on-demand reference appendix so the active Codex session calls `tools.mcp__dsh_delegate__*` directly in Code Mode (avoiding bulk `ALL_TOOLS` dumps) and drives a single `delegate_submit({ autoPreflight: true, wait: true })` + `delegate_wait` chain (`yield_time_ms: 1200000` with `tool_timeout_sec = 3660`), completely eliminating legacy `spawn_agent` + short-timeout `wait_agent` polling loops while safely retiring untouched legacy `.toml` subagents.
22
23
  - **Antigravity (Self-contained plugin bundle):** Offloads preflight, silent wait loops, and routine approvals to a lightweight `flash` background subagent so the flagship host model stays asleep until a compact structured delivery receipt is ready for review.
23
24
  - **L2 Shared architect-style dispatch core:** Unified single-source rules across hosts — **decompose large multi-subsystem goals (`delegate_plan`) + steer architecture, exported contracts, and scope redlines (never dictating line-by-line code or pseudocode in prompts) + enforce pragmatic review (consolidate real spec/bug/test defects into one rework round; never invent out-of-spec fuzz probes)**.
24
25
  - **L3 Bounded compact MCP protocol:** Single-line JSON payloads, one-call `autoPreflight` + `wait` submission, and diff-free local review receipts (`includeDiff: false` / `receiptOnly: true`).
@@ -26,37 +27,41 @@ Frontier reasoning models excel at system design and code review, yet burning th
26
27
 
27
28
  ---
28
29
 
29
- ## 1.9.0 Benchmark Results & Takeaways
30
+ ## Benchmark Results & Token Savings
30
31
 
31
- We evaluated the **`1.9.0-test6` candidate build** across a 7-task deterministic black-box benchmark suite (`T0A` non-dispatch chat boundary, `T0B` 3 invalid/uncommitted Git directory blocks, `T1` core quota-ledger implementation, `T2` tiered overage billing & audit report, `T3` discount engine & export CLI, `T4` dirty-checkout uncommitted draft preservation, and `T5` an enterprise 3-domain billing platform refactor with **235 unit tests + 6 read-only SHA-256 fixture checks**), pairing each host against its own no-plugin strong-model baseline under identical fixtures and black-box grading scripts. DSH ran `deepseek-v4.1-flash` as the worker.
32
+ We evaluated **Antigravity (`1.9.1`)** and **Codex (`1.9.0` → `1.9.2`)** across a 7-task deterministic black-box benchmark suite (`T0A` non-dispatch chat boundary, `T0B` 3 invalid/uncommitted Git directory blocks, `T1` core quota-ledger implementation, `T2` tiered overage billing & audit report, `T3` discount engine & export CLI, `T4` dirty-checkout uncommitted draft preservation, and `T5` an enterprise 3-domain billing platform refactor with **235+ unit tests + 6 read-only SHA-256 fixture checks**), pairing each host against its own no-plugin strong-model baseline under identical fixtures and grading scripts. DSH ran `deepseek-v4.1-flash` as the worker.
32
33
 
33
34
  ### 1. Cross-Host Summary
34
35
 
35
- | Host & Commander | Mode | Full Suite Passed | `T1–T5` Paired Passed | `T1–T5` Avg. Commander Turns | `T1–T5` Strong-Model Effective Tokens (Uncached In + Out) | Effective Token Savings | `T1–T5` Strong-Model Total Tokens (incl. Cache) | Auxiliary / DSH Worker Tokens |
36
+ | Host & Commander | Mode | Full Suite Passed | `T1–T5` Paired Passed | `T1–T5` Avg. Commander Turns | `T1–T5` Strong-Model Effective Tokens (Uncached In + Out) | Quota & Token Reduction | `T1–T5` Strong-Model Total Tokens (incl. Cache) | Auxiliary / DSH Worker Tokens |
36
37
  | --- | --- | :---: | :---: | ---: | ---: | ---: | ---: | ---: |
37
- | **Antigravity**<br>`gemini-4-neon-xhigh` | No-plugin baseline | — | 5/5 (Avg. 100) | 11.00 | 618,861 | Baseline | 3,276,639 | 0 |
38
- | **Antigravity**<br>`gemini-4-neon-xhigh` | **`1.9.0-test6` Plugin**<br>(`flash` subagent + DSH) | **7/7 (Avg. 100)** | **5/5 (Avg. 100)** | **11.80**<br>*(7-task avg: 9.57)* | **420,450**<br>*(7-task total: 484,480)* | **Saved 32.06%** | 3,724,763<br>*(+13.68%)* | Flash aux: 2,298,138<br>+ DSH worker |
39
- | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | No-plugin baseline | — | 4/5 (Avg. 96) | 11.20 | 608,065 | Baseline | 1,966,145 | 0 |
40
- | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.0-test6` Plugin**<br>(Native Skill + DSH) | **6/7 Passed** | **4/5 (Avg. 96)**<br>*100% per-task score parity* | **28.60**<br>*(7-task avg: 21.29)* | **459,102**<br>*(7-task total: 503,180)* | **Saved 24.50%** | 9,060,958<br>*(4.61×, >94% cache read)* | DSH worker: 745,409 |
41
-
42
- > **Verification notes:** (1) On `T0A` (ordinary non-code Q&A), Codex answered in 1 turn with zero tool calls and Antigravity used zero auxiliary turns — proving zero false dispatch; `T0B` cleanly blocked all three invalid repository layouts without touching fixtures. (2) On `T2`, both the Codex baseline and `1.9.0-test6` scored 80/100 due to an omitted-policy `overageUnits` grader check and passed 100% when `charge-overage-tier` was passed explicitly. (3) Compared with the pre-upgrade `test5` polling run on Codex (`2,367,661` effective tokens / `18.63M` total tokens across 7 tasks), `1.9.0-test6` cut Codex effective tokens by **78.7%**.
43
-
44
- ### 2. Per-Task Strong-Model Effective Token (`Uncached Input + Output`) Breakdown (`T1–T5`)
45
-
46
- | Task & Scope | Antigravity Baseline → `1.9.0-test6` | Antigravity Effective Savings | Codex Baseline → `1.9.0-test6` | Codex Effective Savings |
47
- | --- | ---: | ---: | ---: | ---: |
48
- | **`T4`** · Small dirty-repo fix preserving uncommitted drafts (7 tests) | 44,731 → 56,269 | -25.79% *(fixed dispatch overhead)* | 81,590 → 86,816 | -6.40% *(fixed dispatch overhead)* |
49
- | **`T1`** · Core quota-ledger implementation (20 tests) | 73,559 → 46,177 | **+37.22%** *(total tokens -9.8%)* | 52,768 → 52,446 | **+0.61%** *(break-even)* |
50
- | **`T2`** · Tiered overage billing & audit report (39 tests) | 92,737 → 53,542 | **+42.26%** *(total tokens -19.2%)* | 100,570 → 87,502 | **+13.00%** |
51
- | **`T3`** · Discount engine, ledger integration & CLI (51 tests) | 85,481 → 64,440 | **+24.61%** *(total tokens -15.9%)* | 82,885 → 67,827 | **+18.17%** |
52
- | **`T5`** · Enterprise 3-domain billing platform (235 tests + 6 SHA-256 contracts) | 322,353 → 200,022 | **+37.95%** | 290,252 → 164,511 | **+43.32%** *(output tokens -47.9%)* |
38
+ | **Antigravity**<br>`gemini-4-neon-high` | No-plugin baseline | — | 5/5 (Avg. 100) | 11.00 | 618,861<br>*(Out: 191,677)* | Baseline | 3,276,639 | 0 |
39
+ | **Antigravity**<br>`gemini-4-neon-high` | **`1.9.1` Release**<br>(`flash` subagent + DSH) | **7/7 (Avg. 100)** | **5/5 (Avg. 100)** | **12.00**<br>*(7-task avg: 9.71)* | **438,153**<br>*(7-task: 499,363; Out: 80,705)* | **Saved 29.20%**<br>*(Output **-57.90%**)* | **3,362,021**<br>*(+2.61%; 7-task: 3.54M)* | Flash aux: 2,134,229<br>+ DSH worker |
40
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | No-plugin baseline | — | 4/5 (Avg. 96) | 11.20 | 608,065<br>*(Out: 66,816)* | Baseline | 1,966,145 | 0 |
41
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.0` / `1.9.1` Native**<br>(`openai` channel, >94% cache) | 6/7 → **7/7 (Avg. 100)** | 4/5 → **5/5 (Avg. 100)** | 28.60 / 34.60<br>*(7-task: 149 / 179 turns)* | **459,102 / 555,747**<br>*(Out: 59,626 / 50,993)* | **Saved 24.50% / 8.60%**<br>*(Output -10.8% to -23.7%)* | 9,060,958 / 11,256,291<br>*(7-task: 9.20M / 11.39M)* | DSH worker |
42
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.2` Code Mode Slimmed**<br>(`test3` isolated / `test4` synced) | **4× consecutive 7/7 (100)** | **5/5 (Avg. 100)**<br>*Exceeds 4/5 baseline* | **21.60–24.00**<br>*(7-task: **113–126 turns**, **-30% to -37%** vs 1.9.1)* | Out: **47,085–59,683**<br>*(`custom` channel eff: 1.20M–1.48M\*)* | **Output -10.7% to -29.5%**<br>*(Total tokens **-34% to -44%** vs 1.9.1)* | **6,274,024–7,350,171**<br>*(7-task: **6.41M–7.51M**)* | DSH worker |
43
+
44
+ > **Verification & channel notes:**
45
+ > 1. **Zero false dispatch & zero truncation:** Both hosts answered `T0A` directly with zero dispatch calls and blocked all three invalid repository layouts on `T0B`. `1.9.2` drove bulk `ALL_TOOLS` dumps, 10k output truncations, pure tool-lookup turns, and MCP argument errors on Codex down to **`0`**.
46
+ > 2. **Cross-release reduction:** Compared with the pre-1.9.0 polling run (`258` turns / `18.63M` total tokens across 7 tasks), `1.9.2` cut Codex turns by **51.2%–56.2%** and total tokens by **59.7%–65.6%**. Compared with the first `7/7` full-pass Codex run in `1.9.1` (`179` turns / `11.39M` total tokens / 41 mid-wait wakeups), `1.9.2` cut turns by another **29.6%–36.9%** and total tokens by **34.1%–43.7%** (`T5` dropped from `78 turns / 6.99M` to **`34–43 turns / 2.77M–3.81M`**, up to **`-60.4%`**).
47
+ > 3. **\*Proxy cache-rate note:** The four `1.9.2` runs used a custom proxy provider (`model_provider: "custom"`, `79.6%–83.7%` cache hit rate) whereas `1.9.0` / `1.9.1` ran on the native `openai` channel (`93.8%–95.4%` cache hit rate), inflating apparent uncached input on `custom`. Across channel-invariant volume metrics (**commander turns, code-output tokens, and total tokens**), `1.9.2` sets the all-time best mark among full-pass runs.
48
+
49
+ ### 2. Per-Task Savings & `1.9.2` Reduction Breakdown (`T1–T5`)
50
+
51
+ | Task & Scope | Antigravity Baseline → `1.9.1` Effective | Antigravity Savings | Codex `openai` Effective (Baseline → `1.9.0`) | Codex `1.9.2` Full-Pass Reduction (`1.9.1` → `1.9.2`) |
52
+ | --- | ---: | ---: | ---: | --- |
53
+ | **`T4`** · Small dirty-repo fix preserving uncommitted drafts (7 tests) | 44,731 → 52,433 | -17.22% *(fixed overhead; output -42.6%)* | 81,590 → 86,816 *(-6.40%)* | `23` → **`16–23` turns**; total `1.00M` → **`0.69M–1.01M`** |
54
+ | **`T1`** · Core quota-ledger implementation (20 tests) | 73,559 → 46,354 | **+36.98%** *(total tokens **-23.2%**)* | 52,768 → 52,446 *(+0.61%)* | `34` → **`14–17` turns**; total `1.46M` → **`0.57M–0.72M`** *(**-50.7% to -61.2%**)* |
55
+ | **`T2`** · Tiered overage billing & audit report (39 tests) | 92,737 → 86,586 | **+6.63%** *(output **-49.3%**)* | 100,570 → 52,455 *(`1.9.1` **+47.84%**)* | Full `100/100` (vs. `80` baseline); output held to `8.4k–11.2k` |
56
+ | **`T3`** · Discount engine, ledger integration & CLI (51 tests) | 85,481 → 65,151 | **+23.78%** *(total tokens **-29.0%**)* | 82,885 → 67,220 *(**+18.90%**)* | `22` → **`15` turns**; total `1.11M` → **`0.71M–0.75M`** *(**-32.4% to -36.5%**)* |
57
+ | **`T5`** · Enterprise 3-domain billing platform (235+ tests + 6 SHA-256 contracts) | 322,353 → 187,629 | **+41.80%** *(output **-60.8%**)* | 290,252 → 164,511 *(**+43.32%**)* | `78` → **`34–43` turns**; total `6.99M` → **`2.77M–3.81M`** *(**-45.5% to -60.4%**; output **-44.2% to -69.5%** vs baseline)* |
53
58
 
54
59
  ### 3. Key Benchmark Conclusions
55
60
 
56
- 1. **Lightweight worker + strong host review achieves full per-task score parity with frontier baselines:** Even with a lightweight `deepseek-v4.1-flash` worker, clear upfront contract briefs combined with independent host test/diff verification (including 1–3 targeted `continueFromTaskId` rework rounds on Codex) delivered **100/100** on the 235-test 3-domain `T5` architecture task — matching no-plugin frontier baselines point-for-point on both hosts.
57
- 2. **Savings scale with task complexity (38%–43% effective token reduction on heavy tasks):** Multi-file features and cross-module refactors (`T2`, `T3`, `T5`) are the sweet spot, saving **13.0%–43.3%** of expensive uncached input and code-output tokens on the strong model. Trivial single-point edits (`T4`) incur fixed preflight/review overhead (`+6.4%` to `+25.8%`) and are simpler to edit directly in the host.
58
- 3. **Host architectures shape prefix-cache behavior differently:** Antigravity's `flash` subagent absorbs 67.5% of intermediate turns on `T5`, keeping paired `T1–T5` flagship turns nearly flat (`11.80` vs. `11.00` baseline; `9.57` across all 7 tasks) and even reducing total cached+uncached tokens on `T1`/`T2`/`T3`. Codex runs a single direct MCP chain in the main session: multi-round approvals and rework (`33–54` turns on `T2`/`T5`) replay main-session prefix cache (`4.61×` total tokens, over 94% low-cost `cacheRead`), while high-cost uncached input + output still drops by **24.5%**.
59
- 4. **Trades background wall-clock time for flagship quota:** Paired `T1–T5` end-to-end duration averaged `1.76×` baseline on Antigravity (`656s` vs. `372s`; `481s` across all 7 tasks) and `3.11×` cumulative CLI time on Codex (`~1.9×` after excluding ~9-minute initial queueing under 7-way full concurrency) — ideal for background or parallel worktree delegation.
61
+ 1. **Lightweight worker + strong host review achieves `7/7` (700/700) full pass on both hosts:** Even with a lightweight `deepseek-v4.1-flash` worker, clear upfront contract briefs combined with independent host verification delivered **7/7 (700/700)** across Antigravity (`1.9.1`) and four consecutive Codex `1.9.2` runs — surpassing the `4/5` no-plugin Codex baseline on `T2`.
62
+ 2. **Savings scale with task complexity (`41.8%–43.3%` effective savings and `44%–69%` output reduction on `T5`):** Multi-file features and cross-module refactors (`T1`, `T2`, `T3`, `T5`) offload heavy code output and test loops to DSH, cutting Antigravity `T1–T5` flagship output by **57.9%** and Codex `T5` output by **44.2%–69.5%**. Trivial single-point edits (`T4`) incur fixed dispatch overhead and are faster to edit directly in the host.
63
+ 3. **Host architectures complement each other, and `1.9.2` sharply compresses Codex single-chain replay:** Antigravity's `flash` subagent keeps paired `T1–T5` flagship total tokens nearly flat (`3.36M` vs. `3.28M` baseline, saving `23%–29%` total tokens on `T1`/`T3`). On Codex, `1.9.2` eliminates `ALL_TOOLS` dumps, locks in `1200s` outer yields, and merges local review checks, cutting 7-task turns down to **`113–126`** and total tokens to **`6.41M–7.51M`** (**34%–44% lower** than `1.9.1`).
64
+ 4. **Trades background wall-clock time for flagship quota:** Under 7-way concurrency, Codex `1.9.2` completes the entire 7-task suite (including `T5`) uninterrupted in ~**46 minutes**, making it ideal for background or parallel worktree delegation.
60
65
 
61
66
  ---
62
67
 
@@ -108,7 +113,7 @@ Turn on **Allow local MCP calls to DSH delegation** at the top of the settings p
108
113
  - **Independent worktree (`worktree`, default):** Branches an isolated Git worktree from `HEAD` under DSH's `TaskBridge` sidebar node; multi-stage subtasks can chain onto the same isolated worktree with clean sessions via `reuseWorktreeFromTaskId`.
109
114
  - **Shared workspace (`shared`):** Runs in place inside a dirty checkout only after explicit preflight confirmation; reuses the project's native workspace and is strictly protected from linked cleanup deletion.
110
115
 
111
- > **Git repository requirement:** Both modes require an initialized Git repository root with at least one commit. Recording `accepted` via `delegate_review` stores your verdict only — it never auto-merges, commits, or pushes.
116
+ > **Git repository requirement:** Both modes require an initialized Git repository root with at least one commit. Recording `accepted` via `delegate_review` stores your verdict only — it never auto-merges, commits, or pushes; in `worktree` mode, the host reports the isolated worktree path after acceptance and asks whether to sync changes back to your source checkout.
112
117
 
113
118
  ### Quiet Waiting & Monitoring
114
119
 
@@ -137,7 +142,7 @@ Edit tiny one-file tweaks directly in the host. Delegate multi-file features, te
137
142
 
138
143
  ## Documentation & Feedback
139
144
 
140
- - [1.9.1 Release Notes (ZH)](releases/1.9.1.zh.md) · [1.9.0 Release Notes (ZH)](releases/1.9.0.zh.md) · [Codex integration](codex-integration.md) · [Antigravity integration](antigravity-integration.md) · [Claude roadmap](claude-code.md)
145
+ - [1.9.2 Release Notes (ZH)](releases/1.9.2.zh.md) · [1.9.1 Release Notes (ZH)](releases/1.9.1.zh.md) · [1.9.0 Release Notes (ZH)](releases/1.9.0.zh.md) · [Codex integration](codex-integration.md) · [Antigravity integration](antigravity-integration.md) · [Claude roadmap](claude-code.md)
141
146
  - [Silent waiting](silent-wait.md) · [Workspace isolation](workspace-contract.md) · [Conversation placement](conversation-placement.md)
142
147
  - [Runtime compatibility](runtime-compatibility.md) · [Plugin market](plugin-market.md) · [Legacy migration](taskbridge-upgrade.md)
143
148
 
@@ -2,9 +2,10 @@
2
2
 
3
3
  **让上层宿主端专注架构规划与验收把关,把繁重编码与测试调测交给 DeepSeek Harness(DSH)黑盒执行。**
4
4
 
5
- > **当前版本 `1.9.1` · 已原生支持 Codex 与 Antigravity 一键集成;Claude Code / Claude Desktop 接入计划于 2.0 上线。**
5
+ > **当前版本 `1.9.2` · 已原生支持 Codex 与 Antigravity 一键集成;Claude Code / Claude Desktop 接入计划于 2.0 上线。**
6
+ > 本次 `1.9.2` 优化 Codex Code Mode 低耗直调与全链路长等待收口,并在隔离工作树验收通过后支持主动确认写回原目录,详见 [1.9.2 更新说明](releases/1.9.2.zh.md)。
6
7
 
7
- [English](INTRODUCTION.md) · [为什么选择 TaskBridge](#为什么选择-taskbridge) · [1.9.0 双端基准测试与结论](#190-双端基准测试与结论) · [核心能力](#核心能力) · [快速上手](#快速上手) · [设置与机制](#设置与机制) · [常见问题](#常见问题) · [更新日志](../CHANGELOG.md)
8
+ [English](INTRODUCTION.md) · [为什么选择 TaskBridge](#为什么选择-taskbridge) · [双端基准测试与省流实测](#双端基准测试与省流实测) · [核心能力](#核心能力) · [快速上手](#快速上手) · [设置与机制](#设置与机制) · [常见问题](#常见问题) · [更新日志](../CHANGELOG.md)
8
9
 
9
10
  **DSH TaskBridge** 是面向 **DeepSeek Harness(DSH)** 的跨宿主黑盒派工桥接插件。
10
11
  你可以在最顺手的上层宿主端里阅读仓库、拆解架构、设定接口契约并独立验收交付;将耗费大量输出与反复调测轮次的具体编码工作,通过 11 个有界标准 `delegate_*` MCP 工具交给 DSH 内已配置的高性价比或专属模型落地。
@@ -18,7 +19,7 @@
18
19
  当你信任高阶旗舰模型(如 GPT / Gemini 高推理档位)的架构设计与代码审查能力,但不想让它在样板代码编写和反复跑单测排错上烧掉宝贵配额,同时又厌倦了在多个窗口间手工粘贴提示词与 diff 时,TaskBridge 通过四层架构直接打通协同闭环:
19
20
 
20
21
  - **L1 宿主因地制宜,零空转等待**:
21
- - **Codex 端(1.9.0 原生技能)**:安装紧凑入口 `skills/dsh-taskbridge/SKILL.md` 与按需读取附页,由当前主会话直调 `delegate_submit({ autoPreflight: true, wait: true })` + 单链 `delegate_wait`(配合 `tool_timeout_sec = 3660` 静默长等),彻底根除旧版 `spawn_agent` + 短超时 `wait_agent` 的高频轮询空转,并自动安全退役未修改的旧 `.toml` 子智能体。
22
+ - **Codex 端(1.9.0+ 原生技能)**:安装紧凑入口 `skills/dsh-taskbridge/SKILL.md` 与按需读取附页,在 Code Mode 下直接调用 `tools.mcp__dsh_delegate__*`(免整组打印 `ALL_TOOLS` 防截断)并驱动 `delegate_submit({ autoPreflight: true, wait: true })` + 单链 `delegate_wait`(全链路 `yield_time_ms: 1200000` 配合 `tool_timeout_sec = 3660` 静默长等),彻底根除旧版 `spawn_agent` + 短超时 `wait_agent` 的高频轮询空转,并自动安全退役未修改的旧 `.toml` 子智能体。
22
23
  - **Antigravity 端(自包含插件包)**:默认将预检、等待循环与常规权限审批卸载给轻量 `flash` 后台子智能体托管,主旗舰模型零唤醒挂起,仅在交付后接收精简结构化证据完成最终审查。
23
24
  - **L2 架构师式派工,杜绝代写与洁癖返工**:双端共享单一真源派工内核——**大任务拆小包(`delegate_plan`)+ 指明架构骨架、接口契约与范围红线(严禁宿主端在提示词中代写逐行实现代码或伪代码)+ 务实独立审查(仅对违背规范、真 Bug、测试失败或越界残留合并一轮打回,拒绝超纲假设空耗)**。
24
25
  - **L3 紧凑有界 MCP 协议**:支持预检、提交与首段等待合并为一次调用。单行 JSON 载荷支持在本地审查时省略补丁正文或只返回回执(`includeDiff: false` / `receiptOnly: true`)。
@@ -26,37 +27,41 @@
26
27
 
27
28
  ---
28
29
 
29
- ## 1.9.0 双端基准测试与结论
30
+ ## 双端基准测试与省流实测
30
31
 
31
- 我们使用覆盖 7 类真实工程场景的跨宿主黑盒基准套件(`T0A` 非指派静默边界、`T0B` 三类非法/未提交 Git 目录只读拦截、`T1` 配额账本核心实现、`T2` 超额计费与审计报告、`T3` 折扣集成与导出 CLI、`T4` 脏工作区未提交草稿完整性保护、`T5` 含 **235 项单测 + 6 份只读契约 SHA-256 校验**的企业级三域计费平台重构),在相同初始靶场与统一独立黑盒阅卷脚本下,基于 **`1.9.0-test6` 候选构建**对 **Antigravity** 与 **Codex** 双端进行了同宿主无插件直做基线对照实测。插件组 DSH 执行后端统一采用轻量模型 `deepseek-v4.1-flash`。
32
+ 我们使用覆盖 7 类真实工程场景的跨宿主黑盒基准套件(`T0A` 非指派静默边界、`T0B` 三类非法/未提交 Git 目录只读拦截、`T1` 配额账本核心实现、`T2` 超额计费与审计报告、`T3` 折扣集成与导出 CLI、`T4` 脏工作区未提交草稿完整性保护、`T5` 含 **235+ 项单测 + 6 份只读契约 SHA-256 校验**的企业级三域计费平台重构),在相同初始靶场与统一独立黑盒阅卷脚本下,对 **Antigravity(`1.9.1` 正式版)** 与 **Codex(`1.9.0` → `1.9.2` 演进实测)** 进行了同宿主无插件直做基线对照。插件组 DSH 执行后端统一采用轻量模型 `deepseek-v4.1-flash`。
32
33
 
33
34
  ### 1. 双端综合实测总览
34
35
 
35
- | 宿主端与主控配置 | 运行模式 | 全集通过(得分) | `T1–T5` 同题通过 | `T1–T5` 主控均步 | `T1–T5` 强模型有效 Token(非缓存输入 + 输出) | 强模型有效省流率 | `T1–T5` 强模型含缓存总 Token | 辅助 / DSH 执行端 Token |
36
+ | 宿主端与主控配置 | 运行模式 | 全集通过(得分) | `T1–T5` 同题通过 | `T1–T5` 主控均步 | `T1–T5` 强模型有效 Token(非缓存输入 + 输出) | 强模型省流与减负成效 | `T1–T5` 强模型含缓存总 Token | 辅助 / DSH 执行端 Token |
36
37
  | --- | --- | :---: | :---: | ---: | ---: | ---: | ---: | ---: |
37
- | **Antigravity**<br>`gemini-4-neon-xhigh` | 无插件直做基线 | — | 5/5(均分 100) | 11.00 | 618,861 | 基线 | 3,276,639 | 0 |
38
- | **Antigravity**<br>`gemini-4-neon-xhigh` | **`1.9.0-test6` 插件组**<br>(`flash` 子智能体 + DSH) | **7/7(均分 100)** | **5/5(均分 100)** | **11.80**<br>*(7 题全集 9.57)* | **420,450**<br>*(7 题全集 484,480)* | **净省 32.06%** | 3,724,763<br>*(+13.68%)* | Flash 辅助 2,298,138<br>+ DSH 后端执行 |
39
- | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | 无插件直做基线 | — | 4/5(均分 96) | 11.20 | 608,065 | 基线 | 1,966,145 | 0 |
40
- | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.0-test6` 插件组**<br>(原生 Skill 单链 + DSH) | **6/7 通过** | **4/5(均分 96)**<br>*逐题得分 100% 一致* | **28.60**<br>*(7 题全集 21.29)* | **459,102**<br>*(7 题全集 503,180)* | **净省 24.50%** | 9,060,958<br>*(4.61×,94%+ 为缓存读)* | DSH 回执 745,409 |
41
-
42
- > **核验说明**:① `T0A`(普通非代码问答)中 Codex 仅 1 步直接回答、工具调用为 0,Antigravity 辅助步数为 0,两端均 100% 严守非指派不触发红线;`T0B` 三类不合规目录均被只读预检精准拦截且靶场完好。② Codex 端基线与 `1.9.0-test6` 插件组在 `T2` 上均因标准阅卷省略超额策略参数时要求返回 `overageUnits` 扣 20 分(同得 80 分),显式传入 `charge-overage-tier` 补测后两组三个样例均满分通过。③ 相比升级单链架构前的 `test5` 轮询态(Codex 7 题有效 Token `2,367,661`、总 Token `1,863 万`),`1.9.0-test6` 将 Codex 有效 Token 压降了 **78.7%**。
43
-
44
- ### 2. `T1–T5` 分题强模型有效 Token(非缓存输入 + 输出)省流明细
45
-
46
- | 题目与工程特征 | Antigravity 基线 → `1.9.0-test6` | Antigravity 有效省流率 | Codex 基线 → `1.9.0-test6` | Codex 有效省流率 |
47
- | --- | ---: | ---: | ---: | ---: |
48
- | **`T4`** · 脏仓库小型增量修复(保留未提交草稿) | 44,731 → 56,269 | -25.79% *(小任务固定开销)* | 81,590 → 86,816 | -6.40% *(小任务固定开销)* |
49
- | **`T1`** · 配额账本核心模块实现(20 项单测) | 73,559 → 46,177 | **+37.22%** *(总 Token 亦省 9.8%)* | 52,768 → 52,446 | **+0.61%** *(基本打平)* |
50
- | **`T2`** · 分层超额计费与审计报告(39 项单测) | 92,737 → 53,542 | **+42.26%** *(总 Token 亦省 19.2%)* | 100,570 → 87,502 | **+13.00%** |
51
- | **`T3`** · 折扣引擎、账本集成与导出 CLI(51 项单测) | 85,481 → 64,440 | **+24.61%** *(总 Token 亦省 15.9%)* | 82,885 → 67,827 | **+18.17%** |
52
- | **`T5`** · 企业级三域计费平台重构(235 项单测 + 6 契约校验) | 322,353 → 200,022 | **+37.95%** | 290,252 → 164,511 | **+43.32%** *(主控输出降 47.9%)* |
38
+ | **Antigravity**<br>`gemini-4-neon-high` | 无插件直做基线 | — | 5/5(均分 100) | 11.00 | 618,861<br>*(输出 191,677)* | 基线 | 3,276,639 | 0 |
39
+ | **Antigravity**<br>`gemini-4-neon-high` | **`1.9.1` 正式版**<br>(`flash` 子智能体 + DSH) | **7/7(均分 100)** | **5/5(均分 100)** | **12.00**<br>*(7 题全集 9.71)* | **438,153**<br>*(7 题 499,363;输出 80,705)* | **有效净省 29.20%**<br>*(强模型输出省 **57.90%**)* | **3,362,021**<br>*(仅 +2.61%,7 题 353.9 万)* | Flash 辅助 2,134,229<br>+ DSH 后端执行 |
40
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | 无插件直做基线 | — | 4/5(均分 96) | 11.20 | 608,065<br>*(输出 66,816)* | 基线 | 1,966,145 | 0 |
41
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.0` / `1.9.1` 原生通道**<br>(`openai` 通道,缓存命中 94%+) | 6/7 → **7/7(均分 100)** | 4/5 → **5/5(均分 100)** | 28.60 / 34.60<br>*(7 题 149 / 179 步)* | **459,102 / 555,747**<br>*(输出 59,626 / 50,993)* | **有效净省 24.50% / 8.60%**<br>*(主控输出省 10.8%–23.7%)* | 9,060,958 / 11,256,291<br>*(7 题 920 万 / 1,139 万)* | DSH 后端执行 |
42
+ | **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.2` Code Mode 减负版**<br>(`test3` 隔离收官 / `test4` 含写回) | **连续 4 轮 7/7(均分 100)** | **5/5(均分 100)**<br>*超越基线 4/5* | **21.60–24.00**<br>*(7 题 **113–126 步**,较 1.9.1 降 **30%–37%**)* | 输出 **47,085–59,683**<br>*(`custom` 通道总有效 1.20M–1.48M\*)* | **主控输出省 10.7%–29.5%**<br>*(较 1.9.1 满分场总 Token 降 **34%–44%**)* | **6,274,024–7,350,171**<br>*(7 题 **641 万–751 万**)* | DSH 后端执行 |
43
+
44
+ > **核验与通道口径说明**:
45
+ > 1. **零误触发与零截断**:`T0A` 普通非代码问答双端均零派工直接作答,`T0B` 三类不合规仓库均被只读预检精准拦截;`1.9.2` 将 Codex Code Mode 首轮整组 `ALL_TOOLS` 倾倒、10k 输出截断、纯查工具回合与 MCP 参数报错全部清零为 **`0`**。
46
+ > 2. **跨代减负幅度**:相比 `1.9.0` 单链化前的旧轮询态(Codex 7 题 `258` 步、总 Token `1,863.1 万`),`1.9.2` 将主控步数压降 **51.2%–56.2%**、含缓存总 Token 压降 **59.7%–65.6%**;相比 `1.9.1` 首个 `7/7` 满分场(`179` 步、总 Token `1,139.2 万`、等待中途 41 次短唤醒),`1.9.2` 将主控步数再降 **29.6%–36.9%**、含缓存总 Token 再降 **34.1%–43.7%**(其中重型题 `T5` 从 `78 步 / 698.9 万` 压降至 **`34–43 步 / 276.5 万–381.2 万`**,单题总流量最高净降 **`60.4%`**)。
47
+ > 3. **\*转发通道缓存率说明**:`1.9.2` 四轮测试运行于自定义转发通道(`model_provider: "custom"`,输入缓存命中率约 `79.6%–83.7%`),而 `1.9.0` / `1.9.1` 运行于原生 `openai` 通道(缓存命中率 `93.8%–95.4%`),因此 `custom` 通道下表观未缓存输入更高;在不受网关缓存策略影响的**主控总步数、高价代码输出 Token 与含缓存总 Token** 三项硬指标上,`1.9.2` 均创下满分场历史最优。
48
+
49
+ ### 2. `T1–T5` 分题强模型省流与 `1.9.2` 减负明细
50
+
51
+ | 题目与工程特征 | Antigravity 基线 → `1.9.1` 有效 Token | Antigravity 省流成效 | Codex 同 `openai` 通道有效 Token(基线 → `1.9.0`) | Codex `1.9.2` 满分场减负表现(`1.9.1` 满分场 → `1.9.2`) |
52
+ | --- | ---: | ---: | ---: | --- |
53
+ | **`T4`** · 脏仓库小型增量修复(保留未提交草稿) | 44,731 → 52,433 | -17.22% *(小任务固定开销,输出仍省 42.6%)* | 81,590 → 86,816 *(-6.40%)* | `23` → **`16–23` 步**;总 Token `100.3 万` → **`68.8 万–101.5 万`** |
54
+ | **`T1`** · 配额账本核心模块实现(20 项单测) | 73,559 → 46,354 | **+36.98%** *(含缓存总 Token 亦净省 **23.2%**)* | 52,768 → 52,446 *(+0.61%)* | `34` → **`14–17` 步**;总 Token `145.8 万` → **`56.6 万–71.8 万`** *(降 **50.7%–61.2%**)* |
55
+ | **`T2`** · 分层超额计费与审计报告(39 项单测) | 92,737 → 86,586 | **+6.63%** *(强模型输出净省 **49.3%**)* | 100,570 → 52,455 *(`1.9.1` **+47.84%**)* | 满分 `100/100`(超越基线 `80` 分);主控输出稳定在 `8.4k–11.2k` |
56
+ | **`T3`** · 折扣引擎、账本集成与导出 CLI(51 项单测) | 85,481 → 65,151 | **+23.78%** *(含缓存总 Token 亦净省 **29.0%**)* | 82,885 → 67,220 *(**+18.90%**)* | `22` → **`15` 步**;总 Token `111.2 万` → **`70.6 万–75.2 万`** *(降 **32.4%–36.5%**)* |
57
+ | **`T5`** · 企业级三域计费平台重构(235+ 项单测 + 6 契约校验) | 322,353 → 187,629 | **+41.80%** *(强模型输出净省 **60.8%**)* | 290,252 → 164,511 *(**+43.32%**)* | `78` → **`34–43` 步**;总 Token `698.9 万` → **`276.5 万–381.2 万`** *(降 **45.5%–60.4%**,输出较基线省 **44.2%–69.5%**)* |
53
58
 
54
59
  ### 3. 四点实测结论与选型建议
55
60
 
56
- 1. **轻量模型执行 + 强主控验收,同题得分与无插件旗舰基线完全持平**:尽管执行端使用的是轻量高性价比模型(`deepseek-v4.1-flash`),依靠主控在派工前定清接口契约与防坑边界、交付后在隔离工作树独立跑测验收并按需发起原会话修正(如 Codex 在 `T1–T5` 执行了 1~3 轮精准退回修复),双端在包含 235 项跨模块单测的重型架构题 `T5` 上均拿到 **100/100**,`T1–T5` 逐题得分与同宿主旗舰模型直做完全一致。
57
- 2. **任务越复杂,强模型有效 Token 省得越显著(重型任务省流约 38%–43%)**:在 `T2`、`T3`、`T5` 等多文件功能开发、复杂业务规则与跨子系统重构中,原本由强模型承担的大段代码输出与反复跑测上下文被转移至 DSH,双端有效 Token 稳定节省 **13.0%–43.3%**;而对于像 `T4` 这样几分钟即可改完的极小单点修改,预检与审查往返的固定开销会抵消省流(微增 `6.4%`–`25.8%`),更适合直接在当前宿主端顺手改完。
58
- 3. **双端宿主运行机制不同,前缀缓存表现各有特征**:Antigravity 依托 `flash` 后台子智能体隔离了等待与常规审批(`T5` 中卸载了 67.5% 的交互步数),`T1–T5` 同题主控平均步数(`11.80` vs 基线 `11.00`,7 题全集 `9.57`)基本持平,`T1`/`T2`/`T3` 连含缓存总 Token 都低于无插件基线;Codex 由主会话单链直调 MCP,遇到多轮权限审批或返工(如 `T2`/`T5` 退回 3 轮、33~54 步)时会重放主会话前缀缓存(含缓存总 Token 为基线的 `4.61` 倍,但其中 **94% 以上均为低单价 `cacheRead` 命中**),高单价的非缓存输入与代码输出仍净降 `24.5%`。
59
- 4. **以适度后台墙钟耗时换取主力模型配额**:由于增加了派工通信、轻量模型编码调测及审查返工轮次,Antigravity 同题 `T1–T5` 平均端到端耗时约为基线的 `1.76` 倍(`656s` vs `372s`,7 题全集均耗时 `481s`),Codex 逐题累计耗时约为基线的 `3.11` 倍(扣除 7 题全并发首包约 9 分钟排队等待后约为基线的 `1.9` 倍)。推荐在后台或多工作树并行场景下派发中大型编码包,把主力旗舰配额留给核心架构决策与代码把关。
61
+ 1. **轻量模型执行 + 强主控验收,双端均稳定拿到 `7/7`(700/700)全满分**:尽管执行端使用的是轻量高性价比模型(`deepseek-v4.1-flash`),依靠宿主端在派工前定清接口契约与防坑边界、交付后在隔离工作树独立跑测验收并按需原会话续修,Antigravity(`1.9.1`)与 Codex(`1.9.1` 及 `1.9.2` 连续四轮)均实现 **7/7 全满分通过**,Codex 插件组在 `T2` 上还超越了无插件基线(`100` vs `80`)。
62
+ 2. **任务越复杂,主力模型配额省得越显著(重型架构题 `T5` 有效省流 41.8%–43.3%、代码输出省 44%–69%)**:在 `T1`、`T2`、`T3`、`T5` 等多文件开发与跨模块重构中,大段实现代码输出与反复跑测排错被卸载至 DSH,Antigravity `T1–T5` 强模型输出直降 **57.9%**,Codex `T5` 主控输出直降 **44.2%–69.5%**;而几分钟可改完的极小单点修改(`T4`)存在固定预检与验收往返开销,更适合直接在宿主端顺手完成。
63
+ 3. **双端宿主架构各有优势,`1.9.2` 大幅缩小 Codex 单链前缀重放开销**:Antigravity 依托 `flash` 后台子智能体吸收中间等待与审批回合,`T1–T5` 强模型含缓存总 Token(`336.2 万`)几乎与无插件基线(`327.7 万`)持平,`T1`/`T3` 总 Token 甚至净省 `23%–29%`;Codex 由主会话单链直调 MCP,`1.9.2` 通过根除 `ALL_TOOLS` 截断、收口 `1200s` 长等待与合并本地审查回合,将 7 题主控步数压缩至 **`113–126` 步**、含缓存总 Token 压降至 **`641 万–751 万`**(较 `1.9.1` 满分场净降 **34%–44%**)。
64
+ 4. **以适度后台墙钟耗时换取主力旗舰配额**:7 题全并发下 `1.9.2` Codex 端到端约 **46 分钟**一气呵成跑完(含重型三域重构题 `T5`),非常适合在后台或多工作树并行场景下派发中大型编码包,把宝贵的旗舰模型配额留给架构决策与代码把关。
60
65
 
61
66
  ---
62
67
 
@@ -110,7 +115,7 @@ dsh-taskbridge
110
115
  | **独立工作树(`worktree`,默认)** | 从已提交基线拉出隔离工作树,折叠在 DSH 侧栏 `TaskBridge` 节点下并按任务标题命名;多阶段依赖子包可通过 `reuseWorktreeFromTaskId` 在同一隔离树上开启新会话接力开发 | 希望改动与主工作区完全隔离、同仓库多任务并行推进,待全部验收通过后再合入主分支;联动清理可一并移除工作树与临时工作区。 |
111
116
  | **共享工作区(`shared`)** | 经预检确认后直接在授权项目目录内修改,沿用项目原生工作区并保留原名称 | 当前仓库已有未提交草稿且确认原地协作安全;联动清理严格保护源码目录与共享工作区不被删除。 |
112
117
 
113
- > **仓库硬前提**:两种模式均要求目标路径是**已初始化且至少有 1 次 commit 的 Git 仓库根目录**。审查通过(`accepted`)仅持久化验收记录,绝不自动合并工作树、创建提交或推送远端。
118
+ > **仓库硬前提**:两种模式均要求目标路径是**已初始化且至少有 1 次 commit 的 Git 仓库根目录**。审查通过(`accepted`)仅持久化验收记录,绝不自动合并工作树、创建提交或推送远端;在 `worktree` 模式下验收通过后,宿主端会汇报隔离工作树路径并询问是否将改动安全写回原目录。
114
119
 
115
120
  ### 分级静默监控与任务状态
116
121
 
@@ -140,7 +145,7 @@ dsh-taskbridge
140
145
 
141
146
  ## 更多文档与反馈
142
147
 
143
- - [1.9.1 更新说明](releases/1.9.1.zh.md) · [1.9.0 更新说明](releases/1.9.0.zh.md) · [Codex 集成契约](codex-integration.md) · [Antigravity 集成契约](antigravity-integration.md) · [Claude 接入规划](claude-code.md)
148
+ - [1.9.2 更新说明](releases/1.9.2.zh.md) · [1.9.1 更新说明](releases/1.9.1.zh.md) · [1.9.0 更新说明](releases/1.9.0.zh.md) · [Codex 集成契约](codex-integration.md) · [Antigravity 集成契约](antigravity-integration.md) · [Claude 接入规划](claude-code.md)
144
149
  - [静默等待说明](silent-wait.md) · [工作区与隔离](workspace-contract.md) · [会话放置与续接](conversation-placement.md)
145
150
  - [运行时兼容性](runtime-compatibility.md) · [插件发现与更新](plugin-market.md) · [旧名称迁移](taskbridge-upgrade.md)
146
151
 
@@ -1,6 +1,6 @@
1
1
  # Codex integration contract
2
2
 
3
- Status: implemented in 1.9.1 (retaining the 1.9.0 native skill migration from legacy subagent `agents/dsh-taskbridge.toml` to `skills/dsh-taskbridge/SKILL.md`, with safe automatic retirement of untouched 0.1.6–1.8.x legacy subagents and automatic refresh of untouched 1.9.0 skills; Antigravity integration is documented in `docs/antigravity-integration.md`, and Claude Code / Claude Desktop integration is planned for 2.0).
3
+ Status: implemented in 1.9.2 (retaining the 1.9.0 native skill migration from legacy subagent `agents/dsh-taskbridge.toml` to `skills/dsh-taskbridge/SKILL.md`, with safe automatic retirement of untouched 0.1.6–1.8.x legacy subagents and automatic refresh of untouched 1.9.0 / 1.9.1 skills; Antigravity integration is documented in `docs/antigravity-integration.md`, and Claude Code / Claude Desktop integration is planned for 2.0).
4
4
 
5
5
  The 1.7.0 release also makes future managed upgrades self-recognising: the two exact
6
6
  companions this machine really held (`1.6.1` in both terminator spellings and the local
@@ -591,7 +591,7 @@ successful diagnosis.
591
591
  ```jsonc
592
592
  {
593
593
  "codexHome": "…",
594
- "packageVersion": "1.9.1",
594
+ "packageVersion": "1.9.2",
595
595
  "boundary": {
596
596
  "blocked": false, "link": null, "unknown": false,
597
597
  "home": "directory", "skills": "directory", "skillDir": "directory", "agents": "directory"
@@ -685,7 +685,7 @@ remain those selected in the plugin settings.
685
685
  ## 5. Skill ownership & historical legacy TOML identities
686
686
 
687
687
  From `1.9.0`, the active shipped file is the Markdown skill `$CODEX_HOME/skills/dsh-taskbridge/SKILL.md`
688
- (with `<!-- dsh-taskbridge-version: 1.9.1 -->` and its content-addressed `rules-reference-<sha256>.md`).
688
+ (with `<!-- dsh-taskbridge-version: 1.9.2 -->` and its content-addressed `rules-reference-<sha256>.md`).
689
689
  Earlier `0.1.6`–`1.8.x` releases shipped a custom-agent TOML file:
690
690
 
691
691
  ```toml
@@ -0,0 +1,21 @@
1
+ # DSH TaskBridge 1.9.2 更新说明
2
+
3
+ ## 摘要
4
+
5
+ `1.9.2` 保持 `1.9.0` / `1.9.1` 的 MCP 协议、工作树隔离与安全边界不变,重点完成 **Codex Code Mode 低耗直调与零截断治理**、**全链路长等待(`yield_time_ms: 1200000`)统一收口**、**本地审查单回合串联** 以及 **隔离工作树(`worktree`)验收后写回确认机制**:
6
+
7
+ 1. **Codex Code Mode 低耗直调与参数契约内联(根治整组工具倾倒与输出截断)**:
8
+ - 在 Codex 原生技能 `skills/dsh-taskbridge/SKILL.md` 的 frontmatter `description` 与正文 `## CODE MODE CALLS` 中明确直调 `tools.mcp__dsh_delegate__*`,禁止整组打印 `ALL_TOOLS`(避免全局 MCP `instructions` 复制拼接导致首轮触发 `exec` 默认 10,000 Token 截断),仅在确需查询缺省参数时按精确工具名切片读取 `exec tool declaration:`。
9
+ - 在技能入口与按需附页 `rules-reference-<sha256>.md` 中补齐高频调用模板与跨字段契约(`delegate_plan` 单节点与 `nodes` 批量建树、`allowShared: true` 与 `autoPreflight: true` 联动、返工/子包复用省略 `autoPreflight`、`delegate_permission_decide` 精确 `fingerprint` 拷贝及 `delegate_question_answer` 答复格式)。
10
+ 2. **Codex Code Mode 全链路静默长等待收口**:
11
+ - 在首次 `delegate_submit({ wait: true })`、独立 `delegate_wait`、返工 `continueFromTaskId`、子包 `reuseWorktreeFromTaskId`、权限审批 `waitAfterDecision: true` 与提问答复 `waitAfterAnswer: true` 等全部等待入口统一声明 `// @exec: {"yield_time_ms": 1200000}`(杜绝回退为 `60000 ms` 短等待唤醒),并规范 `Script running with cell ID` 的单链续等行为。
12
+ 3. **本地审查单回合串联与 `worktree` 验收后回写询问**:
13
+ - Codex 端 `## LOCAL VERIFICATION` 将 `ready` 后的 `delegate_result({ taskId, includeDiff: false })` 回执校验与 `executionWorkspacePath` 内的单次组合验证命令紧凑收拢,减少审查拆步往返。
14
+ - Codex 与 Antigravity 双端同步明确 `worktree` 隔离模式的收官交互:整条任务链完成 `accepted` 落盘(含最终 `delegate_plan` 总评)后,默认保持原仓库 `sourcePath` 不改动并汇报 `executionWorkspacePath`,同时在会话中用纯文本询问用户是否需要将已验收改动写回原工作目录(不调用阻塞式提问弹窗工具);用户确认后先做冲突检查再本地安全同步,且不自动执行 `git commit`。
15
+ 4. **7 题黑盒基准省流复验与无感升级哈希补登**:
16
+ - `1.9.2` 候选构建在 Codex 7 题全集基准(`T0A`、`T0B`、`T1`–`T5`)中连续四轮 **7/7 满分通过(700/700)**,整组 `ALL_TOOLS` 倾倒、10k 输出截断、纯查工具回合与 MCP 参数报错全部清零为 **`0`**;相比 `1.9.1` 首个 `7/7` 满分场(`179` 步 / `1,139.2 万` 总 Token),7 题主控步数压降至 **`113–126` 步(降幅 `29.6%–36.9%`)**、含缓存总 Token 压降至 **`641.4 万–751.1 万`(降幅 `34.1%–43.7%`)**,其中重型三域重构题 `T5` 从 `78 步 / 698.9 万` 压降至 **`34–43 步 / 276.5 万–381.2 万`(降幅 `45.5%–60.4%`)**,主控代码输出较无插件基线净省 **`44.2%–69.5%`**;双端产品简介(`README.md`、`docs/INTRODUCTION.zh.md`、`docs/INTRODUCTION.md`)已同步刷新为 `1.9.1` / `1.9.2` 最新基准数据。
17
+ - 在 `src/codex/installer.js` 与 `src/antigravity/installer.js` 中补登已发布 `1.9.1`(LF / CRLF)及 `1.9.2` 各轮测试包的精确 `SKILL.md` SHA-256 哈希,确保既有托管安装可无缝自动刷新到 `1.9.2` 并完整保留用户自定义修改。
18
+
19
+ ## 升级说明
20
+
21
+ - **从 `1.9.1`、`1.9.0` 或更早版本升级**:在 DSH 插件管理页直接升级或本地安装 `dsh-taskbridge-1.9.2.tgz` 并启用;DSH 启动自检会自动将未修改过的旧版 Codex / Antigravity 托管技能刷新至 `1.9.2`(也可在插件设置页对应集成标签手动点击更新),重开宿主会话即可生效。既有接口配置、本机调用开关与历史任务记录全部原样保留。
@@ -1,6 +1,6 @@
1
1
  # Runtime compatibility
2
2
 
3
- Build 1.9.1 retains the loading policy introduced in 1.4.2: **no DSH version whitelist**: it omits `engines.dsh`, declares
3
+ Build 1.9.2 retains the loading policy introduced in 1.4.2: **no DSH version whitelist**: it omits `engines.dsh`, declares
4
4
  host-provided `@deepseek-ai/dsh-*` peers as `*`, and publishes no DSH engine range
5
5
  in the custom plugin index. The plugin uses runtime capability checks rather than
6
6
  rejecting a host solely by its version number. Node.js `>=24` is still required.
@@ -53,7 +53,7 @@ acceptance run.
53
53
  - Development dependencies remain pinned for reproducible tests; they do not
54
54
  restrict the host-provided peer versions used by an installed plugin.
55
55
  - Older plugin packages keep their own metadata and can still be refused by a
56
- newer host. Upgrade to `dsh-taskbridge@1.9.1` (or `1.4.2+`) to use this loading policy.
56
+ newer host. Upgrade to `dsh-taskbridge@1.9.2` (or `1.4.2+`) to use this loading policy.
57
57
 
58
58
  ## 2. What DSH 0.2.2 changes
59
59
 
@@ -183,10 +183,10 @@ What remains genuinely unverified:
183
183
 
184
184
  ## 5. Upgrading from an older plugin build
185
185
 
186
- 1. Download `dsh-taskbridge-1.9.1.tgz` from the GitHub Release (or install `dsh-taskbridge` from npm), or build the package locally (`npm pack`).
186
+ 1. Download `dsh-taskbridge-1.9.2.tgz` from the GitHub Release (or install `dsh-taskbridge` from npm), or build the package locally (`npm pack`).
187
187
  2. Install it the way your surface requires: the Desktop **Plugins manager** for a
188
188
  Desktop profile (npm/CLI operations on that profile are refused), or
189
- `dsh plugin --profile <name> add ./dsh-taskbridge-1.9.1.tgz` for a CLI profile you
189
+ `dsh plugin --profile <name> add ./dsh-taskbridge-1.9.2.tgz` for a CLI profile you
190
190
  start yourself.
191
191
  3. The settings, the switch value and the task history are preserved
192
192
  (`$DSH_HOME/data/dsh-delegate`); nothing is migrated destructively.
@@ -6,7 +6,7 @@
6
6
 
7
7
  1. 等待当前任务结束,关闭旧插件的本机调用开关。
8
8
  2. 在 DSH 插件管理中停用并卸载本项目旧 `dsh-delegate` 或 `dsh-taskdispatch` 包。**保留 `<DSH_HOME>/data/dsh-delegate` 数据目录**;DSH 若提供删除数据选项,不要勾选。新旧包不能同时启用。
9
- 3. 在“添加插件”中输入 **`dsh-taskbridge`**。中国大陆镜像未同步时改选 npm 官方源。也可安装对应版本的本地包,例如 `dsh-taskbridge-1.9.1.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
9
+ 3. 在“添加插件”中输入 **`dsh-taskbridge`**。中国大陆镜像未同步时改选 npm 官方源。也可安装对应版本的本地包,例如 `dsh-taskbridge-1.9.2.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
10
10
  4. 打开 **DSH TaskBridge** 配置页,核对 API、模型、思考强度和总开关。数据目录与旧版相同;安装前关闭旧开关,避免恢复之前保存的开启状态。
11
11
  5. 在 Codex 集成中点击“安装 / 更新 TaskBridge 技能”,安装原生技能 `skills/dsh-taskbridge/SKILL.md` 并更新 MCP,然后重新加载 Codex。未修改的旧 `agents/dsh-delegate.toml` 与 `agents/dsh-taskbridge.toml` 会在迁移后自动安全移除;用户手动改过的文件原样保留。只需修复 MCP 时可使用“仅修复 MCP 配置”。启动自检不会接管其他安装目录。
12
12
  6. 若添加过旧索引,改用 `https://ranranyya.github.io/dsh-taskbridge/index.json`。
package/locale/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "DSH TaskBridge",
4
- "description": "Cross-host task delegation bridge for DeepSeek Harness (DSH): let your upper host focus on architecture planning and delivery review while offloading heavy coding and test loops to DSH to save flagship model quota. Centralizes API, model, and reasoning-effort routing with Git worktree isolation, cross-subtask reuse, one-click host setup, silent waiting, scoped approvals, and linked cleanup (supports Codex and Antigravity; Claude Code / Claude Desktop planned for 2.0).",
4
+ "description": "Cross-host task delegation bridge for DeepSeek Harness (DSH): let your upper host focus on architecture planning and delivery review while offloading heavy coding and test loops to DSH to save flagship model quota. Centralizes API, model, and reasoning-effort routing with Git worktree isolation, cross-subtask reuse, one-click host setup, low-overhead direct calls, silent waiting, scoped approvals, post-review write-back confirmation, and linked cleanup (supports Codex and Antigravity; Claude Code / Claude Desktop planned for 2.0).",
5
5
  "detail": "docs/INTRODUCTION.md"
6
6
  }
7
7
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "DSH TaskBridge",
4
- "description": "面向 DeepSeek Harness(DSH)的跨宿主派工桥接插件:让上层宿主端专注架构规划与交付验收,将繁重的编码实现与测试调测交给 DSH 黑盒执行以节省主力模型配额;统一封装 API、执行模型、思考强度与 Git 工作树隔离,支持一键宿主集成、低耗静默长等、按需权限审批、跨包工作树复用与整链清理(已支持 Codex、Antigravity 一键接入,Claude Code / Claude Desktop 计划于 2.0 上线)。",
4
+ "description": "面向 DeepSeek Harness(DSH)的跨宿主派工桥接插件:让上层宿主端专注架构规划与交付验收,将繁重的编码实现与测试调测交给 DSH 黑盒执行以节省主力模型配额;统一封装 API、执行模型、思考强度与 Git 工作树隔离,支持一键宿主集成、低耗直调与静默长等、按需权限审批、跨包工作树复用、验收后确认写回与整链清理(已支持 Codex、Antigravity 一键接入,Claude Code / Claude Desktop 计划于 2.0 上线)。",
5
5
  "detail": "docs/INTRODUCTION.zh.md"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-taskbridge",
3
- "version": "1.9.1",
4
- "description": "面向 DeepSeek Harness(DSH)的跨宿主派工桥接插件:让上层宿主端专注架构规划与交付验收,将繁重的编码实现与测试调测交给 DSH 黑盒执行以节省主力模型配额;统一封装 API、执行模型、思考强度与 Git 工作树隔离,支持一键宿主集成、静默长等、按需权限审批、跨包工作树复用与联动清理(已支持 Codex、Antigravity 一键接入,Claude Code 计划于 2.0 上线)。",
3
+ "version": "1.9.2",
4
+ "description": "面向 DeepSeek Harness(DSH)的跨宿主派工桥接插件:让上层宿主端专注架构规划与交付验收,将繁重的编码实现与测试调测交给 DSH 黑盒执行以节省主力模型配额;统一封装 API、执行模型、思考强度与 Git 工作树隔离,支持一键宿主集成、低耗直调与静默长等、按需权限审批、跨包工作树复用、验收后确认写回与联动清理(已支持 Codex、Antigravity 一键接入,Claude Code / Claude Desktop 计划于 2.0 上线)。",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -86,7 +86,8 @@
86
86
  "docs/releases/1.8.0.zh.md",
87
87
  "docs/releases/1.8.1.zh.md",
88
88
  "docs/releases/1.9.0.zh.md",
89
- "docs/releases/1.9.1.zh.md"
89
+ "docs/releases/1.9.1.zh.md",
90
+ "docs/releases/1.9.2.zh.md"
90
91
  ],
91
92
  "dsh": {
92
93
  "manifestVersion": 1,
@@ -619,6 +619,8 @@ const KNOWN_PRIOR_ANTIGRAVITY_FILES = Object.freeze({
619
619
  'ce3a02c9b9ba4e45be30f3ba83ec93ee5254da64f643f12bfcc841dd9dbd2e3f',
620
620
  // Layered 1.9.0-preview2 / preview3 SKILL.md (LF)
621
621
  'b27118375a6f87fc35ea623c131912ef1545adc84f7c0c5a94790d12b73d4d4d',
622
+ // Published 1.9.0 / 1.9.1 SKILL.md (LF)
623
+ '0a3f0e10cb627de8a8b5c02d92352226d233291294599ea8b824bb250b9ea2ab',
622
624
  ]),
623
625
  'agents/dsh-taskbridge.md': Object.freeze([
624
626
  // Published 1.8.0 agents/dsh-taskbridge.md (LF)
@@ -578,6 +578,14 @@ export const KNOWN_SKILL_TEMPLATES = [
578
578
  // Published 1.9.0 native Codex skill, in LF and CRLF.
579
579
  { version: '1.9.0', sha256: '203e686fe12ee4827ea9c5bab404997f641a8f45d45daa37efc776b7e9620d71' },
580
580
  { version: '1.9.0', sha256: '9a0eaf95266ad13e175d0223f954f19e0c41573d817cd6099112416156cc395f' },
581
+ // Exact contents of the 1.9.1 release (LF and CRLF) and archived 1.9.2-test1 .. test4 Codex packages.
582
+ { version: '1.9.1', sha256: 'a6459641eab745f7494976559f6da6e6b4d3431e41183cf0100ff86092797433' },
583
+ { version: '1.9.1', sha256: '90e40ae2a09cfcfd66b5f7264f086b79d923214805cf1073dd4eba0f86db7499' },
584
+ { version: '1.9.2-test1', sha256: 'a2cd721be797ae7548924e437d1ff6fc5dde7e0ebd26237573cb31b4a5fe488b' },
585
+ { version: '1.9.2-test2', sha256: 'd0bc51f2105a08eb61c194847f5ffa957e2a6caf7882aa85ed18f57b7664864b' },
586
+ { version: '1.9.2-test3', sha256: '6b117f95c8ac875401ecbc09182be47235746a567d36cd2f6a421b00831ebe1c' },
587
+ { version: '1.9.2-test4', sha256: 'f4b844a2fa8c167ee78ff2000d2cac656ab261973c4446c70135c4f52fd98fce' },
588
+ { version: '1.9.2-test4', sha256: '73b0d2bdd29c9397106b68c3389c25a30127e1e079df5390a4dff9b62f747a7a' },
581
589
  ];
582
590
 
583
591
  /** The version provenance comment line inside a shipped Markdown Codex skill file. */