dsh-taskbridge 1.8.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +751 -733
  3. package/antigravity/agents/dsh-taskbridge.md +14 -12
  4. package/antigravity/skills/dsh-taskbridge/SKILL.md +32 -19
  5. package/bin/dsh-delegate-codex-agent.js +9 -4
  6. package/codex/skills/dsh-taskbridge/SKILL.md +131 -0
  7. package/codex/skills/dsh-taskbridge/rules-reference-96027c387cb9b7587efa4aa3836235d86db1108068e007dc08196e807ca25e5d.md +114 -0
  8. package/docs/INTRODUCTION.md +148 -122
  9. package/docs/INTRODUCTION.zh.md +151 -134
  10. package/docs/antigravity-integration.md +47 -42
  11. package/docs/assets/taskbridge-workflow.en.svg +72 -0
  12. package/docs/assets/taskbridge-workflow.zh.png +0 -0
  13. package/docs/claude-code.md +18 -18
  14. package/docs/codex-integration.md +139 -113
  15. package/docs/releases/1.8.0.zh.md +16 -16
  16. package/docs/releases/1.8.1.zh.md +24 -24
  17. package/docs/releases/1.9.0.zh.md +31 -0
  18. package/docs/runtime-compatibility.md +7 -9
  19. package/docs/silent-wait.md +17 -26
  20. package/docs/taskbridge-upgrade.md +4 -4
  21. package/lib/client.d.ts +2 -2
  22. package/lib/client.js +7 -7
  23. package/locale/en.json +7 -7
  24. package/locale/zh.json +7 -7
  25. package/package.json +10 -4
  26. package/src/antigravity/installer.js +1099 -1068
  27. package/src/antigravity/seam.js +142 -142
  28. package/src/client/api.js +135 -13
  29. package/src/client/index.jsx +19 -18
  30. package/src/codex/agent-ownership.js +72 -12
  31. package/src/codex/installer.js +688 -268
  32. package/src/http/execution-plane.js +17 -0
  33. package/src/http/user-plane.js +6 -0
  34. package/src/index.d.ts +9 -1
  35. package/src/index.js +86 -64
  36. package/src/jobs/engine.js +278 -5
  37. package/src/jobs/history.js +17 -1
  38. package/src/jobs/record-cleanup.js +715 -641
  39. package/src/mcp/server.js +241 -12
  40. package/src/runtime/permissions.js +18 -0
  41. package/src/runtime/worker-prompt.js +13 -9
  42. package/codex/dsh-taskbridge.toml +0 -181
@@ -1,122 +1,148 @@
1
- # DSH TaskBridge
2
-
3
- **Plan and review in your favorite commander. Delegate the implementation to DeepSeek Harness (DSH).**
4
-
5
- > **Supports Codex and Antigravity out of the box. Claude Code and Claude Desktop integration is planned for 2.0.**
6
-
7
- [简体中文](INTRODUCTION.zh.md) · [Quick start](#quick-start) · [Key capabilities](#key-capabilities) · [How it works](#how-it-works) · [FAQ](#faq) · [Changelog](../CHANGELOG.md)
8
-
9
- TaskBridge is a multi-client task delegation plugin for **DeepSeek Harness (DSH)**.
10
- Keep designing, breaking down work and reviewing diffs inside **Codex** or **Antigravity**, while letting the model configured in DSH edit files, run tools and verify tests over a clean, standard MCP interface.
11
-
12
- Execution stays a **black box** to the commander: API connections, worker model, reasoning effort, Git worktree isolation and DSH native workspaces/sessions are managed inside the TaskBridge plugin. The commander focuses purely on planning, per-operation approvals and final review.
13
-
14
- ![DSH TaskBridge multi-commander black-box architecture: Codex and Antigravity plan and review, TaskBridge encapsulates MCP, routing, isolation and quiet waiting, and DSH executes with same-session follow-ups](https://raw.githubusercontent.com/ranranyya/dsh-taskbridge/v1.8.1/docs/assets/taskbridge-workflow.en.png)
15
-
16
- ## Why TaskBridge
17
-
18
- When you want Codex or Antigravity to drive architecture and code review, while delegating implementation to models already connected in DSH, copying prompts and diffs back and forth breaks down fast. TaskBridge bridges the two cleanly:
19
-
20
- - **Clean layered black-box architecture:** Configure provider, model and reasoning effort once in DSH. Every commander talks to the same standard MCP surface (11 bounded tools, compact single-line JSON payloads) without leaking low-level routing or workspace details into prompts.
21
- - **Plan before dispatch:** The commander inspects code first and sends a concrete implementation brief and acceptance criteria (or builds a multi-step plan tree). DSH executes the plan using native file/search tools first and reports evidence back if a premise conflicts with the repository.
22
- - **Quiet waiting with low commander overhead:** A local wait loop tracks real worker activity without busy polling, and Antigravity delegates wait & routine approval loops to a lightweight `flash` background subagent so flagship context stays clean.
23
- - **Same-session follow-ups:** Review diffs and test evidence together, record an explicit accept or rework verdict, and send consolidated fixes right back to the original DSH session and worktree.
24
- - **Isolated parallel runs & linked cleanup:** Default Git worktree isolation lets one project run multiple independent work packets in parallel, and **Task history** offers preset selection, linked worktree/session/plan cleanup, `interrupted` record removal and orphan residual sweeps.
25
-
26
- ## Key capabilities
27
-
28
- | Capability | What you get |
29
- | --- | --- |
30
- | **Codex & Antigravity one-click setup** | Dedicated settings tabs to install, update, repair MCP only, or cleanly remove managed integrations while preserving any user edits via content digests. |
31
- | **Reuse DSH APIs & models** | Pick from providers already enabled in DSH with your chosen worker model and reasoning effort; credentials stay inside DSH. |
32
- | **Task trees, history & linked cleanup** | Plan multi-level goals and subtasks; filter task records by date, batch-select with presets (`All`, `Accepted`, `Failed / Cancelled / Interrupted`), inspect full review notes, jump to the native DSH session, and optionally archive sessions, remove isolated worktrees/workspaces, clean empty plan ancestors and sweep historical orphans (never touching source files or shared workspaces). |
33
- | **Worktree isolation & workspace tree** | Run isolated parallel worktrees (nested automatically under DSH's `TaskBridge` sidebar root and titled per task) or explicit shared checkouts (reusing the project's native workspace and keeping its original name), with lightweight badges on dispatched sessions. |
34
- | **Tiered silent monitoring** | No default total execution timeout. By default, a one-time local self-check runs 10 minutes after execution starts, and a commander check-in triggers after 40 minutes with no new delivery — plus deduplicated repeated-failure reminders (all adjustable or toggleable). |
35
- | **Per-operation approvals & native questions** | Commands beyond workspace write require exact-fingerprint commander approval for that single call (omitting bulky monitoring blobs during interactive pauses); native DSH questions forward cleanly and resume waiting in one call. |
36
- | **Optional Agent Teams** | Off by default; configurable as a new-task default or per dispatch, with continuations inheriting the chain's choice. |
37
- | **Auto-save, presets & project overrides** | Changes save automatically; store reusable worker presets and per-project overrides. |
38
-
39
- ## Quick start
40
-
41
- ### 1. Install in DSH
42
-
43
- Open **Plugins → Add plugin** in DSH, install and enable:
44
-
45
- ```text
46
- dsh-taskbridge
47
- ```
48
-
49
- > Switch to the official npm registry if a regional mirror lags behind, or install a `.tgz` archive from GitHub Releases. The local MCP bridge requires Node.js 24+ (automatically resolved by the integration installer without ever pointing at the Electron GUI binary).
50
-
51
- ### 2. Choose your worker model
52
-
53
- 1. Open **DSH TaskBridge Settings → API management** and add an enabled DSH provider.
54
- 2. Open **Execution settings** and choose the provider, worker model and supported reasoning effort.
55
- 3. Confirm the page shows a saved status before dispatching.
56
-
57
- ### 3. Connect a commander
58
-
59
- - **Codex:** Open **Codex integration** and click **Install / update TaskBridge agent**, then reload Codex and dispatch by naming `dsh-taskbridge` (or explicitly assigning the task to DSH / TaskBridge).
60
- - **Antigravity:** Open **Antigravity integration** and click **Install / update Antigravity plugin**. This installs a self-contained bundle under `~/.gemini/config/plugins/dsh-taskbridge/` (`plugin.json`, on-demand `SKILL.md`, lightweight background dispatcher subagent, and plugin-scoped `mcp_config.json`) without modifying your global Antigravity config. When Antigravity prompts for external MCP confirmation on the first `delegate_*` call, choose **Always Allow** so quiet waiting is not interrupted.
61
-
62
- ### 4. Flip the switch and dispatch
63
-
64
- Enable **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, for example:
65
-
66
- > Use TaskBridge to have DSH fix the autosave draft-loss bug in this repository. Inspect the code first, write a clear implementation plan limited to the save queue, add regression tests, and review the delivered diff and test results.
67
-
68
- Follow execution live in DSH's workspace sidebar and review delivery records in **Task history**.
69
-
70
- ## How it works
71
-
72
- The settings page has a top delegation switch and five tabs: **API management, Execution settings, Task history, Codex integration, and Antigravity integration**.
73
-
74
- ### Isolation modes
75
-
76
- - **Independent worktree (default):** Creates an isolated Git worktree from the committed baseline so candidate edits stay separate and independent tasks can run in parallel; automatically nested under DSH's `TaskBridge` sidebar node and named after the task title.
77
- - **Shared workspace:** Runs directly inside the authorized checkout when uncommitted changes exist and in-place execution is explicitly approved after preflight; reuses the project's own native DSH workspace, preserves its original name, and is strictly protected from linked cleanup deletion.
78
-
79
- > **Git repository requirement:** Both **worktree** and **shared** modes require an initialized Git repository root with at least one commit (general non-code Q&A or plain folders are not dispatched through TaskBridge). Accepting a review records your conclusion only — it never merges a worktree, commits or pushes automatically.
80
-
81
- ### Quiet waiting & monitoring
82
-
83
- - **Quiet local wait:** During normal execution, the local wait loop observes the run silently without asking the commander to poll or read in-progress files.
84
- - **10 minutes after execution starts (default):** Runs **one** read-only local self-check per run (no commander model call); ongoing worker activity does not postpone it.
85
- - **40 minutes with no new delivery to the commander (default):** Sends a concise progress diagnosis to the commander without cancelling the task. Even if DSH is actively working, this check-in still fires if no new result has been delivered back within 40 minutes.
86
- - **Repeated identical tool failures (default threshold: 3):** Sends an acknowledged reminder so loops do not burn tokens unchecked.
87
-
88
- The two clocks measure different boundaries (**execution start** vs. **time since last delivery** — internal model steps, tool calls, heartbeats and self-check readings do not reset the 40-minute clock). Neither is a hard execution timeout, and healthy runs are never killed by a default cap. See [Silent waiting](silent-wait.md).
89
-
90
- ## FAQ
91
-
92
- **Does installing TaskBridge make Codex or Antigravity send everything to DSH automatically?**
93
- No. Dispatch only happens when the local delegation switch is enabled AND you explicitly assign a Git-repository code/verification task to DSH / TaskBridge. General Q&A (even if `@dsh-taskbridge` is mentioned) stays in the commander.
94
-
95
- **Will plugin updates overwrite my custom edits to `dsh-taskbridge.toml` or `SKILL.md`?**
96
- No. Ownership is verified by content digest: unmodified plugin-managed files refresh automatically on upgrade, while customized files are preserved and reported. Use **Repair MCP only** to refresh just the MCP connection.
97
-
98
- **Does the Antigravity integration touch my global `mcp_config.json` or `config.json`?**
99
- No. Everything lives inside `~/.gemini/config/plugins/dsh-taskbridge/` so Antigravity can enable, disable or remove it cleanly as one unit.
100
-
101
- **How does TaskBridge reduce commander token usage?**
102
- Planning, approvals, questions and final review still use the commander, while TaskBridge cuts overhead at three layers: (1) quiet local waiting with no intermediate polling; (2) Antigravity defaults to a lightweight `flash` background subagent for wait & approval loops, returning only a concise summary to the flagship model; and (3) worker prompts prefer native file/search tools over shell commands, paired with compact single-line JSON MCP responses that trim bulky monitoring blobs during interactive pauses.
103
-
104
- ## Client support & roadmap
105
-
106
- | Client | Status | Integration |
107
- | --- | --- | --- |
108
- | **Codex** | Supported | One-click managed companion (`agents/dsh-taskbridge.toml`) + MCP entry |
109
- | **Antigravity** | Supported | One-click self-contained plugin (`plugins/dsh-taskbridge/`: Skill + Subagent + MCP) |
110
- | **Claude Code / Claude Desktop** | Planned (2.0) | Shares the same standard MCP interface; see [Claude roadmap](claude-code.md) |
111
-
112
- ## Documentation & feedback
113
-
114
- - [Codex integration](codex-integration.md) · [Antigravity integration](antigravity-integration.md) · [Claude roadmap](claude-code.md)
115
- - [Silent waiting](silent-wait.md) · [Workspace isolation](workspace-contract.md) · [Conversation placement](conversation-placement.md)
116
- - [Runtime compatibility](runtime-compatibility.md) · [Plugin market](plugin-market.md) · [Legacy migration](taskbridge-upgrade.md)
117
-
118
- Report issues or share suggestions on [GitHub Issues](https://github.com/ranranyya/dsh-taskbridge/issues) with your plugin version, steps to reproduce and redacted diagnostics (never include API keys).
119
-
120
- ## License
121
-
122
- [MIT](../LICENSE)
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)