dsh-taskbridge 1.9.0 → 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.
@@ -1,148 +1,153 @@
1
- # DSH TaskBridge
2
-
3
- **Keep architecture planning and final code review in Codex or Antigravity. Delegate heavy coding and test loops to DeepSeek Harness (DSH) inside a clean black-box MCP bridge.**
4
-
5
- > **Version `1.9.0` · Native one-click integration for Codex and Antigravity. Claude Code / Claude Desktop support is planned for 2.0.**
6
-
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
-
9
- **DSH TaskBridge** is a cross-client task delegation plugin for **DeepSeek Harness (DSH)**.
10
- Stay inside **Codex** or **Antigravity** 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.
11
-
12
- To the commander, execution is a **controlled black-box workshop**: API credentials, provider/model routing, reasoning effort, Git `worktree` isolation, cross-subtask worktree reuse, and native DSH sessions stay encapsulated inside the plugin. The commander focuses strictly on **direction, boundary approvals, and pragmatic acceptance**.
13
-
14
- ![DSH TaskBridge four-layer architecture. Users and developers access the shared dispatch core, MCP protocol, and DSH execution engine through host adapters.](./assets/taskbridge-workflow.en.svg)
15
-
16
- ## Why TaskBridge
17
-
18
- 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
- - **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
- - **Antigravity (Self-contained plugin bundle):** Offloads preflight, silent wait loops, and routine approvals to a lightweight `flash` background subagent so the flagship commander stays asleep until a compact structured delivery receipt is ready for review.
23
- - **L2 Shared architect-style commander 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
- - **L3 Bounded compact MCP protocol:** Single-line JSON payloads, one-call `autoPreflight` + `wait` submission, and diff-free local review receipts (`includeDiff: false` / `receiptOnly: true`).
25
- - **L4 Isolated Git worktrees & seamless continuations:** Runs in isolated Git worktrees by default; downstream multi-stage subtasks can reuse an accepted isolated worktree with a fresh DSH Session via `reuseWorktreeFromTaskId` without touching the user's source checkout; follow-up fixes resume the exact session via `continueFromTaskId`; linked cleanup removes histories, archived sessions, and temporary worktrees in one click.
26
-
27
- ---
28
-
29
- ## 1.9.0 Benchmark Results & Takeaways
30
-
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
-
33
- ### 1. Cross-Host Summary
34
-
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
- | --- | --- | :---: | :---: | ---: | ---: | ---: | ---: | ---: |
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%)* |
53
-
54
- ### 3. Key Benchmark Conclusions
55
-
56
- 1. **Lightweight worker + strong commander 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 commander 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 commander.
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.
60
-
61
- ---
62
-
63
- ## Key Capabilities
64
-
65
- | Capability | What You Get |
66
- | --- | --- |
67
- | **Codex & Antigravity one-click setup** | Dedicated settings tabs to install, update, repair MCP only, or cleanly remove managed integrations (including automatic retirement of untouched legacy Codex `.toml` subagents) while preserving any user edits via SHA-256 content digests. |
68
- | **Reuse DSH APIs, models & effort** | Select providers, worker models, and reasoning effort already configured in DSH; API keys never leave DSH. |
69
- | **Plan trees, worktree reuse & linked cleanup** | Decompose multi-stage goals with `delegate_plan`; pass `reuseWorktreeFromTaskId` so dependent subtasks start a fresh DSH Session on an accepted isolated worktree; filter **Task history** by date, jump to native sessions, and clean task chains, archived sessions, and isolated worktrees in one click. |
70
- | **Parallel worktree isolation & workspace tree** | Run isolated parallel Git worktrees (nested under DSH's `TaskBridge` sidebar root and titled per task) or explicit shared checkouts (preserving the project's native workspace name). |
71
- | **Tiered silent monitoring** | No default total execution cap; runs one local read-only self-check 10 minutes after start, checks in with the commander after 40 minutes without a new delivery, and deduplicates repeated tool-failure reminders (all configurable). |
72
- | **Single-call approvals & native questions** | The commander approves each out-of-sandbox call using its exact argument fingerprint. Native DSH questions forward and resume waiting in one call. |
73
- | **Optional Agent Teams & project overrides** | `agentTeams` is off by default and configurable globally or per dispatch; settings auto-save with reusable presets and per-project path overrides. |
74
-
75
- ## Quick Start
76
-
77
- ### 1. Install in DSH
78
-
79
- Open **Plugins → Add plugin** in DSH, install and enable:
80
-
81
- ```text
82
- dsh-taskbridge
83
- ```
84
-
85
- > Switch to the official npm registry if a regional mirror lags behind, or install a `.tgz` archive from [GitHub Releases](https://github.com/ranranyya/dsh-taskbridge/releases). Requires Node.js 24+ (automatically resolved without ever writing the Electron GUI executable).
86
-
87
- ### 2. Configure the Worker Model
88
-
89
- 1. Open **Plugins → Installed plugins → dsh-taskbridge → API management** and enable a DSH provider.
90
- 2. Open **Execution settings** and pick the provider, worker model, and supported reasoning effort.
91
- 3. Confirm changes show as saved.
92
-
93
- ### 3. Connect Your Commander
94
-
95
- - **Codex:** Open **Codex integration** and click **Install / update TaskBridge skill** (writes `skills/dsh-taskbridge/SKILL.md`, its rules reference appendix, and `config.toml` MCP entry while retiring untouched legacy `agents/dsh-taskbridge.toml`). Start a new Codex session and dispatch with `$dsh-taskbridge` or an explicit DSH / TaskBridge instruction.
96
- - **Antigravity:** Open **Antigravity integration** and click **Install / update Antigravity plugin** (installed cleanly under `~/.gemini/config/plugins/dsh-taskbridge/`). Dispatch with `@[plugin:dsh-taskbridge]` / `@dsh-taskbridge` or an explicit instruction; select **Always Allow** on the first `delegate_*` prompt so background waiting runs uninterrupted.
97
-
98
- ### 4. Enable the Switch and Dispatch
99
-
100
- Turn on **Allow local MCP calls to DSH delegation** at the top of the settings page (off by default), then assign a task from Codex or Antigravity:
101
-
102
- > Use TaskBridge to have DSH implement the tiered overage billing module and export CLI in this repository. Inspect the specs first, define the module contracts and boundaries, dispatch the implementation and unit tests to DSH, and review the delivered diff and test suite before accepting.
103
-
104
- ## How It Works
105
-
106
- ### Isolation Modes
107
-
108
- - **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
- - **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
-
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.
112
-
113
- ### Quiet Waiting & Monitoring
114
-
115
- - **10 minutes after start (default):** One read-only local self-check with zero LLM cost.
116
- - **40 minutes with no new delivery (default):** Returns a compact progress check-in to `delegate_wait` without cancelling the run.
117
- - **Repeated identical tool failures (default: 3):** Surfaces an acknowledged `eventId` reminder to prevent runaway loops. See [Silent waiting](silent-wait.md).
118
-
119
- ## FAQ
120
-
121
- **Does installing TaskBridge send ordinary chat or code questions to DSH?**
122
- No. Both the local delegation switch AND an explicit assignment of a Git-repository implementation/verification task are required. General Q&A stays directly in Codex or Antigravity with zero tool calls.
123
-
124
- **Will updates overwrite my edits to `SKILL.md` or legacy `dsh-taskbridge.toml`?**
125
- No. Ownership is proved by SHA-256 content digests; customized files are preserved verbatim. Use **Repair MCP only** to refresh just the MCP entry.
126
-
127
- **When should I delegate vs. edit directly in the commander?**
128
- Edit tiny one-file tweaks directly in the commander. Delegate multi-file features, test suites, CLI/service modules, and cross-domain refactors to TaskBridge to save 25%–43% of strong-model effective tokens while maintaining full review control.
129
-
130
- ## Client Support & Roadmap
131
-
132
- | Client | Status | Integration |
133
- | --- | --- | --- |
134
- | **Codex** | Supported (`1.9.0` Native Skill) | One-click `skills/dsh-taskbridge/SKILL.md` + reference appendix + MCP (auto-retires untouched legacy subagents) |
135
- | **Antigravity** | Supported | One-click self-contained plugin (`plugins/dsh-taskbridge/`: Skill + `flash` Subagent + MCP) |
136
- | **Claude Code / Claude Desktop** | Planned (`2.0`) | Shares the same layered commander core and MCP surface; see [Claude roadmap](claude-code.md) |
137
-
138
- ## Documentation & Feedback
139
-
140
- - [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
- - [Silent waiting](silent-wait.md) · [Workspace isolation](workspace-contract.md) · [Conversation placement](conversation-placement.md)
142
- - [Runtime compatibility](runtime-compatibility.md) · [Plugin market](plugin-market.md) · [Legacy migration](taskbridge-upgrade.md)
143
-
144
- Report issues or suggestions on [GitHub Issues](https://github.com/ranranyya/dsh-taskbridge/issues) with your plugin version, reproduction steps, and redacted diagnostics (never include API keys).
145
-
146
- ## License
147
-
148
- [MIT](../LICENSE)
1
+ # DSH TaskBridge
2
+
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
+
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).
7
+
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)
9
+
10
+ **DSH TaskBridge** is a cross-host task delegation plugin for **DeepSeek Harness (DSH)**.
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.
12
+
13
+ To the host, execution is a **controlled black-box workshop**: API credentials, provider/model routing, reasoning effort, Git `worktree` isolation, cross-subtask worktree reuse, and native DSH sessions stay encapsulated inside the plugin. The host focuses strictly on **direction, boundary approvals, and pragmatic acceptance**.
14
+
15
+ ![DSH TaskBridge four-layer architecture. Users and developers access the shared dispatch core, MCP protocol, and DSH execution engine through host adapters.](./assets/taskbridge-workflow.en.svg)
16
+
17
+ ## Why TaskBridge
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:
20
+
21
+ - **L1 Host-native zero-busy-wait adapters:**
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.
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.
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)**.
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
+ - **L4 Isolated Git worktrees & seamless continuations:** Runs in isolated Git worktrees by default; downstream multi-stage subtasks can reuse an accepted isolated worktree with a fresh DSH Session via `reuseWorktreeFromTaskId` without touching the user's source checkout; follow-up fixes resume the exact session via `continueFromTaskId`; linked cleanup removes histories, archived sessions, and temporary worktrees in one click.
27
+
28
+ ---
29
+
30
+ ## Benchmark Results & Token Savings
31
+
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.
33
+
34
+ ### 1. Cross-Host Summary
35
+
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 |
37
+ | --- | --- | :---: | :---: | ---: | ---: | ---: | ---: | ---: |
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)* |
58
+
59
+ ### 3. Key Benchmark Conclusions
60
+
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.
65
+
66
+ ---
67
+
68
+ ## Key Capabilities
69
+
70
+ | Capability | What You Get |
71
+ | --- | --- |
72
+ | **One-click host integration** | Dedicated settings tabs for Codex and Antigravity to install, update, repair MCP only, or cleanly remove managed integrations (including automatic retirement of untouched legacy Codex `.toml` subagents) while preserving any user edits via SHA-256 content digests. |
73
+ | **Reuse DSH APIs, models & effort** | Select providers, worker models, and reasoning effort already configured in DSH; API keys never leave DSH. |
74
+ | **Plan trees, worktree reuse & linked cleanup** | Decompose multi-stage goals with `delegate_plan`; pass `reuseWorktreeFromTaskId` so dependent subtasks start a fresh DSH Session on an accepted isolated worktree; filter **Task history** by date, jump to native sessions, and clean task chains, archived sessions, and isolated worktrees in one click. |
75
+ | **Parallel worktree isolation & workspace tree** | Run isolated parallel Git worktrees (nested under DSH's `TaskBridge` sidebar root and titled per task) or explicit shared checkouts (preserving the project's native workspace name). |
76
+ | **Tiered silent monitoring** | No default total execution cap; runs one local read-only self-check 10 minutes after start, checks in with the host after 40 minutes without a new delivery, and deduplicates repeated tool-failure reminders (all configurable). |
77
+ | **Single-call approvals & native questions** | The host approves each out-of-sandbox call using its exact argument fingerprint. Native DSH questions forward and resume waiting in one call. |
78
+ | **Optional Agent Teams & project overrides** | `agentTeams` is off by default and configurable globally or per dispatch; settings auto-save with reusable presets and per-project path overrides. |
79
+
80
+ ## Quick Start
81
+
82
+ ### 1. Install in DSH
83
+
84
+ Open **Plugins → Add plugin** in DSH, install and enable:
85
+
86
+ ```text
87
+ dsh-taskbridge
88
+ ```
89
+
90
+ > Switch to the official npm registry if a regional mirror lags behind, or install a `.tgz` archive from [GitHub Releases](https://github.com/ranranyya/dsh-taskbridge/releases). Requires Node.js 24+ (automatically resolved without ever writing the Electron GUI executable).
91
+
92
+ ### 2. Configure the Worker Model
93
+
94
+ 1. Open **Plugins → Installed plugins → dsh-taskbridge → API management** and enable a DSH provider.
95
+ 2. Open **Execution settings** and pick the provider, worker model, and supported reasoning effort.
96
+ 3. Confirm changes show as saved.
97
+
98
+ ### 3. Connect Your Host
99
+
100
+ - **Codex:** Open **Codex integration** and click **Install / update TaskBridge skill** (writes `skills/dsh-taskbridge/SKILL.md`, its rules reference appendix, and `config.toml` MCP entry while retiring untouched legacy `agents/dsh-taskbridge.toml`). Start a new Codex session and dispatch with `$dsh-taskbridge` or an explicit DSH / TaskBridge instruction.
101
+ - **Antigravity:** Open **Antigravity integration** and click **Install / update Antigravity plugin** (installed cleanly under `~/.gemini/config/plugins/dsh-taskbridge/`). Dispatch with `@[plugin:dsh-taskbridge]` / `@dsh-taskbridge` or an explicit instruction; select **Always Allow** on the first `delegate_*` prompt so background waiting runs uninterrupted.
102
+
103
+ ### 4. Enable the Switch and Dispatch
104
+
105
+ Turn on **Allow local MCP calls to DSH delegation** at the top of the settings page (off by default), then assign a task from your host:
106
+
107
+ > Use TaskBridge to have DSH implement the tiered overage billing module and export CLI in this repository. Inspect the specs first, define the module contracts and boundaries, dispatch the implementation and unit tests to DSH, and review the delivered diff and test suite before accepting.
108
+
109
+ ## How It Works
110
+
111
+ ### Isolation Modes
112
+
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`.
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.
115
+
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.
117
+
118
+ ### Quiet Waiting & Monitoring
119
+
120
+ - **10 minutes after start (default):** One read-only local self-check with zero LLM cost.
121
+ - **40 minutes with no new delivery (default):** Returns a compact progress check-in to `delegate_wait` without cancelling the run.
122
+ - **Repeated identical tool failures (default: 3):** Surfaces an acknowledged `eventId` reminder to prevent runaway loops. See [Silent waiting](silent-wait.md).
123
+
124
+ ## FAQ
125
+
126
+ **Does installing TaskBridge send ordinary chat or code questions to DSH?**
127
+ No. Both the local delegation switch AND an explicit assignment of a Git-repository implementation/verification task are required. General Q&A stays directly in the host with zero tool calls.
128
+
129
+ **Will updates overwrite my edits to `SKILL.md` or legacy `dsh-taskbridge.toml`?**
130
+ No. Ownership is proved by SHA-256 content digests; customized files are preserved verbatim. Use **Repair MCP only** to refresh just the MCP entry.
131
+
132
+ **When should I delegate vs. edit directly in the host?**
133
+ Edit tiny one-file tweaks directly in the host. Delegate multi-file features, test suites, CLI/service modules, and cross-domain refactors to TaskBridge to save flagship model effective tokens while maintaining full review control.
134
+
135
+ ## Host Support & Roadmap
136
+
137
+ | Host | Status | Integration |
138
+ | --- | --- | --- |
139
+ | **Codex** | Supported (`1.9.0` Native Skill) | One-click `skills/dsh-taskbridge/SKILL.md` + reference appendix + MCP (auto-retires untouched legacy subagents) |
140
+ | **Antigravity** | Supported | One-click self-contained plugin (`plugins/dsh-taskbridge/`: Skill + `flash` Subagent + MCP) |
141
+ | **Claude Code / Claude Desktop** | Planned (`2.0`) | Shares the same layered dispatch core and MCP surface; see [Claude roadmap](claude-code.md) |
142
+
143
+ ## Documentation & Feedback
144
+
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)
146
+ - [Silent waiting](silent-wait.md) · [Workspace isolation](workspace-contract.md) · [Conversation placement](conversation-placement.md)
147
+ - [Runtime compatibility](runtime-compatibility.md) · [Plugin market](plugin-market.md) · [Legacy migration](taskbridge-upgrade.md)
148
+
149
+ Report issues or suggestions on [GitHub Issues](https://github.com/ranranyya/dsh-taskbridge/issues) with your plugin version, reproduction steps, and redacted diagnostics (never include API keys).
150
+
151
+ ## License
152
+
153
+ [MIT](../LICENSE)