dsh-taskbridge 1.7.1 → 1.8.1

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 (84) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +21 -21
  3. package/README.md +733 -877
  4. package/THIRD_PARTY_NOTICES.txt +23 -23
  5. package/antigravity/agents/dsh-taskbridge.md +32 -0
  6. package/antigravity/skills/dsh-taskbridge/SKILL.md +51 -0
  7. package/codex/dsh-taskbridge.toml +181 -631
  8. package/cordis.patch.yml +6 -6
  9. package/docs/INTRODUCTION.md +122 -295
  10. package/docs/INTRODUCTION.zh.md +134 -279
  11. package/docs/antigravity-integration.md +42 -0
  12. package/docs/auth-contract.md +138 -138
  13. package/docs/claude-code.md +6 -11
  14. package/docs/codex-integration.md +2 -2
  15. package/docs/contracts-stage-b.md +443 -443
  16. package/docs/conversation-placement.md +7 -6
  17. package/docs/plugin-market.md +30 -30
  18. package/docs/redaction-contract.md +170 -170
  19. package/docs/releases/1.7.0.zh.md +11 -11
  20. package/docs/releases/1.8.0.zh.md +16 -0
  21. package/docs/releases/1.8.1.zh.md +24 -0
  22. package/docs/runtime-compatibility.md +1 -1
  23. package/docs/taskbridge-upgrade.md +28 -28
  24. package/docs/taskdispatch-upgrade.md +25 -25
  25. package/docs/workspace-contract.md +538 -538
  26. package/docs/workspace-grouping.md +126 -126
  27. package/icon.svg +1 -1
  28. package/lib/client.d.ts +804 -699
  29. package/lib/client.js +7 -7
  30. package/locale/en.json +1 -1
  31. package/locale/zh.json +1 -1
  32. package/package.json +150 -144
  33. package/src/antigravity/installer.js +1068 -0
  34. package/src/antigravity/seam.js +142 -0
  35. package/src/auth/fence.js +361 -361
  36. package/src/auth/grants.js +789 -789
  37. package/src/client/api.js +266 -3
  38. package/src/client/index.jsx +224 -11
  39. package/src/client/sidebar.jsx +862 -862
  40. package/src/client/styles.js +624 -624
  41. package/src/client/task-cleanup.js +429 -304
  42. package/src/client/task-records-table.jsx +217 -217
  43. package/src/client/task-view.js +307 -307
  44. package/src/client/workspace-groups.js +482 -482
  45. package/src/client/workspaces-browser.jsx +770 -770
  46. package/src/codex/agent-ownership.js +270 -270
  47. package/src/codex/installer.js +6 -0
  48. package/src/codex/toml.js +784 -784
  49. package/src/config/defaults.js +11 -15
  50. package/src/config/redact.js +245 -245
  51. package/src/config/store.js +186 -186
  52. package/src/credentials/seam.js +202 -202
  53. package/src/http/respond.js +6 -5
  54. package/src/http/user-plane.js +83 -1
  55. package/src/index.js +25 -0
  56. package/src/jobs/diagnostics.js +15 -15
  57. package/src/jobs/engine.js +1 -0
  58. package/src/jobs/history.js +1 -1
  59. package/src/jobs/plan-store.js +1103 -1020
  60. package/src/jobs/record-cleanup.js +452 -7
  61. package/src/jobs/review-note.js +63 -63
  62. package/src/jobs/task-descriptions.js +82 -82
  63. package/src/jobs/task-display.js +73 -73
  64. package/src/jobs/task-tree.js +786 -786
  65. package/src/jobs/title.js +134 -134
  66. package/src/mcp/continuation.js +317 -317
  67. package/src/mcp/server.js +34 -27
  68. package/src/mcp/wait.js +34 -15
  69. package/src/model/connectivity.js +371 -371
  70. package/src/model/discovery.js +582 -582
  71. package/src/model/native-catalog.js +68 -68
  72. package/src/model/openai-adapter.js +671 -671
  73. package/src/model/probe.js +264 -264
  74. package/src/model/providers.js +756 -756
  75. package/src/model/routing.js +321 -321
  76. package/src/runtime/agent-runner.js +1 -0
  77. package/src/runtime/permissions.js +1619 -1619
  78. package/src/runtime/question-call.js +162 -162
  79. package/src/runtime/questions.js +909 -909
  80. package/src/runtime/session-placement.js +36 -1
  81. package/src/runtime/worker-prompt.js +61 -55
  82. package/src/workspace/audit.js +775 -775
  83. package/src/workspace/preflight.js +424 -424
  84. package/src/workspace/worktrees.js +833 -679
package/cordis.patch.yml CHANGED
@@ -1,6 +1,6 @@
1
- # dsh-delegate bundle patch: mounts the delegation service into the profile.
2
- # The plugin is inert on load: local MCP dispatch stays OFF until the operator
3
- # enables the single switch in the DSH plugin settings page.
4
- - insert:
5
- - id: dsh-taskbridge
6
- name: dsh-taskbridge
1
+ # dsh-delegate bundle patch: mounts the delegation service into the profile.
2
+ # The plugin is inert on load: local MCP dispatch stays OFF until the operator
3
+ # enables the single switch in the DSH plugin settings page.
4
+ - insert:
5
+ - id: dsh-taskbridge
6
+ name: dsh-taskbridge
@@ -1,295 +1,122 @@
1
- # DSH TaskBridge
2
-
3
- **Let Codex direct DSH. Choose the execution API, model and reasoning effort in the DSH plugin.**
4
-
5
- > **Codex is the currently supported client. Claude Code and Claude Desktop integration is planned for version 2.0.**
6
-
7
- [简体中文](INTRODUCTION.zh.md) · [Get started](#get-started) · [Settings](#settings) · [FAQ](#faq) · [Changelog](../CHANGELOG.md)
8
-
9
- TaskBridge is a task delegation plugin for **DeepSeek Harness (DSH)**. Keep describing your goals in Codex: the commander plans the work, handles requests that need a decision and reviews delivery. The model running in DSH implements changes, runs tools and tests, and returns its results.
10
-
11
- **You choose the model. The commander organizes and reviews the work. DSH executes.** TaskBridge connects dispatch, waiting, review and follow-up corrections in one workflow.
12
-
13
- ![TaskBridge workflow: the commander plans and reviews, TaskBridge connects and waits, and DSH executes; corrections continue the original task](https://raw.githubusercontent.com/ranranyya/dsh-taskbridge/v1.5.2/docs/assets/taskbridge-workflow.en.png)
14
-
15
- *Workflow diagram. The program waits during normal execution; decisions return to the commander, and corrections continue the original task.*
16
-
17
- ## Why TaskBridge?
18
-
19
- Use TaskBridge when you want Codex to understand the project and check the result, while a model already connected to DSH does the implementation.
20
-
21
- - **Keep tasks and results connected.** The commander dispatches through MCP and reads the delivered changes and verification evidence.
22
- - **Choose execution settings once.** Select the provider, model and reasoning effort in DSH; tasks use the effective plugin configuration.
23
- - **Reduce repetitive progress checks.** The program observes execution and returns when there is something to decide or review.
24
- - **Keep context for corrections.** Send a consolidated correction list back to the original conversation and execution workspace.
25
- - **Distinguish delivery from acceptance.** Execution status and the commander's final conclusion have separate records.
26
-
27
- Typical tasks include feature development, bug fixes, test coverage, code cleanup and project documentation. Both the commander and executor still incur their own model usage; quiet waiting reduces repetitive queries and transfers of intermediate results.
28
-
29
- ## Features at a glance
30
-
31
- | Feature | What it gives you |
32
- | --- | --- |
33
- | **Existing API connections** | Select providers enabled in DSH without copying endpoints or API keys. |
34
- | **Worker model and reasoning effort** | Choose the executor and its supported effort, plus timeout, concurrency and isolation. |
35
- | **Codex integration controls** | Install or update the TaskBridge agent, MCP connection and dispatch rules; repair MCP separately. |
36
- | **One delegation switch** | Control whether local task submission is allowed. |
37
- | **Quiet waiting** | Let the program wait and return for approvals, questions, exceptions and delivery. |
38
- | **Per-operation permissions** | Decide a specific request, then continue waiting for the same task. |
39
- | **Task workspaces and continuation** | Name workspaces after the work; start independent tasks separately and explicitly continue corrections. |
40
- | **Agent collaboration default** | Decide the new-task agent-teams default, overridable per dispatch; off by default. |
41
- | **Review after delivery** | Inspect changes and evidence together, then record acceptance or request changes. |
42
- | **Automatic settings saving** | Save selections promptly and text edits after a short pause, with visible save status. |
43
- | **Presets and project overrides** | Reuse worker settings and give projects their own settings. |
44
- | **Task history and details** | Inspect phases, actual routing, activity, permission decisions, changes and complete review notes. |
45
-
46
- ## Get started
47
-
48
- ### 1. Install in DSH
49
-
50
- Open **Plugins → Add plugin** and enter:
51
-
52
- ```text
53
- dsh-taskbridge
54
- ```
55
-
56
- To install this specific release:
57
-
58
- ```text
59
- dsh-taskbridge
60
- ```
61
-
62
- Enable **DSH TaskBridge** and open its settings. Use the official npm registry if a regional mirror has not synchronized yet. GitHub Releases also provide `.tgz` packages.
63
-
64
- TaskBridge runs tasks through DSH. The local MCP connection to Codex requires Node.js 24 or newer. The Codex integration installer checks for an available runtime.
65
-
66
- ### 2. Select an API, model and effort
67
-
68
- In **API management**, add a provider from DSH's enabled connections. Then open **Execution settings** and choose the provider, worker model and supported reasoning effort.
69
-
70
- Credentials remain managed by DSH. If the connection is missing, configure and enable it in DSH's own model/API settings first, then refresh the plugin's catalog.
71
-
72
- Settings save automatically. Check for a saved status before dispatching; an invalid or unsaved draft is not the active configuration.
73
-
74
- ### 3. Connect the commander
75
-
76
- Open **Codex integration** and click **Install / update TaskBridge agent**. The button configures:
77
-
78
- - **The TaskBridge agent:** writes `agents/dsh-taskbridge.toml`.
79
- - **The MCP connection:** registers the plugin's tool entry.
80
- - **Commander rules:** explicit dispatch, quiet waiting, permission decisions, review and continuation.
81
-
82
- Reload Codex afterward. Clients with agent mentions can select `@dsh-taskbridge` and describe a task; availability of the `@` picker depends on the client.
83
-
84
- Initial setup requires a button click. Later updates can refresh recognized plugin-managed entries while preserving custom edits. **Claude Code and Claude Desktop are not supported integration clients in this release; their integration is planned for 2.0.**
85
-
86
- ### 4. Enable delegation and assign a task
87
-
88
- Turn on **Allow local MCP calls to DSH delegation** at the top of the page. Tell the commander the goal, the project it may change and the acceptance criteria. For example:
89
-
90
- > Use TaskBridge to fix settings changes not taking effect in this project. Plan and review the work; let DSH implement it using the model selected in the plugin. Limit changes to settings persistence, preserve the existing interaction and add regression verification. Review delivery and continue the original task if corrections are needed.
91
-
92
- The commander checks the connection and workspace before submission. Follow execution in the DSH workspace conversation and inspect delivery in **Task history**.
93
-
94
- ## How a task gets completed
95
-
96
- | Stage | Commander | DSH / TaskBridge |
97
- | --- | --- | --- |
98
- | **Plan** | Define the scope and acceptance criteria; split work if needed. | Provide connection status and workspace preflight information. |
99
- | **Dispatch** | Submit a clear goal, project path and task title. | Start the task with the effective configuration and create its record and conversation. |
100
- | **Execute** | Wait. | Modify files, run tools and tests, record activity and keep waiting internally. |
101
- | **Request or question** | Decide specific permissions and answer questions needed for execution. | Pause the relevant operation, provide evidence and resume the same task after a decision. |
102
- | **Deliver** | Review actual changes, verification and unresolved issues together. | Return results and evidence. |
103
- | **Accept or correct** | Record a review conclusion or prepare one correction list. | Save the conclusion or continue the original conversation and execution workspace. |
104
-
105
- Execution completion means the executor has returned its work. Acceptance means the commander has reviewed it. Task history distinguishes the two.
106
-
107
- ## Settings
108
-
109
- The page has **API management, Execution settings, Task history and Codex integration** tabs, with the local delegation switch above them.
110
-
111
- ### API, model and execution options
112
-
113
- | Setting | Purpose |
114
- | --- | --- |
115
- | **Provider** | Select an enabled DSH API connection added to the plugin. |
116
- | **Worker model** | Choose the implementation model; task details record the actual provider and model used. |
117
- | **Reasoning effort** | Choose from the selected model's declared capabilities. |
118
- | **Timeout** | Total time budget for a task, 1800 seconds by default; inactivity checks do not extend it. |
119
- | **Maximum concurrency** | Limit simultaneous tasks, 1 by default; the commander decides whether to split work. |
120
- | **Workspace isolation** | Use an independent Git worktree or the authorized shared project directory. |
121
- | **Agent collaboration for new tasks** | Decide whether a new dispatch with no per-task choice uses DSH's native agent teams; off by default, a per-task choice wins, continuations keep the chain's choice. |
122
- | **Presets** | Save commonly used worker settings. |
123
- | **Project overrides** | Apply project-specific settings instead of the global selection. |
124
-
125
- **You choose the executor.** Managed commander rules preserve the configured provider, model and reasoning effort. An unavailable combination is reported instead of silently switching to another model.
126
-
127
- Settings affect subsequent dispatches. A running task keeps its submission-time configuration snapshot.
128
-
129
- ### Worktree or shared workspace
130
-
131
- | Mode | Where files change | When to use it |
132
- | --- | --- | --- |
133
- | **Independent worktree (default)** | An isolated Git worktree created from the source repository's committed baseline. | Keep candidate changes separate from the current checkout and review before integrating. |
134
- | **Shared workspace** | The authorized project directory itself. | Explicitly work in the current directory, including its existing uncommitted content. |
135
-
136
- Worktree mode requires a usable Git repository and committed baseline. Preflight blocks a dirty source checkout to avoid handing the executor an older version of the project. Commit the intended baseline first, or explicitly choose shared mode with its implications understood.
137
-
138
- **Accepting a review does not merge a worktree, create a commit or push.** Integration into the project remains part of the work you authorize the commander to perform.
139
-
140
- ### One switch controls local delegation
141
-
142
- The switch starts disabled. Installing the plugin or merely mentioning DSH does not start a task. Even with the switch enabled, the commander needs an explicit assignment.
143
-
144
- Disabling the switch rejects new tasks and requests that running tasks stop. Local use does not require manually issuing signed connections.
145
-
146
- ## Quiet waiting
147
-
148
- Quiet waiting reduces repeated status checks and intermediate-code reads while the executor is still working.
149
-
150
- | Situation | Response |
151
- | --- | --- |
152
- | New output, reasoning activity or tool events | Update the activity timestamp and keep waiting internally. |
153
- | **5 minutes** without new activity | Program-level execution and connection checks; no commander model call just for the check. |
154
- | **10 minutes** without new activity | Return a brief diagnosis for the commander to assess. |
155
- | Permission request or question | Return the information needed for a decision, then continue the same task. |
156
- | Repeated identical operation failures reach the threshold | Send an acknowledged reminder; the default threshold is 3 and is adjustable. |
157
- | Completion, failure, cancellation or interruption | Return for review or exception handling. |
158
-
159
- The 5/10-minute values measure **continuous inactivity**. They are not intervals for periodically asking GPT to inspect the work. UI refreshes and connection heartbeats do not count as execution activity, and a lack of file changes alone does not mean the task has stalled.
160
-
161
- Advanced settings control inactivity thresholds and repeated-failure reminders. If a waiting limit or client timeout ends a call, continue the same task; that does not automatically cancel, redispatch or switch its model. See [quiet waiting](silent-wait.md) for the detailed contract.
162
-
163
- ## Conversations and task organization
164
-
165
- ### Separate independent work
166
-
167
- A new task starts a new conversation in the corresponding DSH Workspace, named after the work, such as “Fix settings persistence” or “Add login regression tests.” In worktree mode, independent tasks normally have separate execution directories. A shared directory can map to the same DSH Workspace, while independent tasks still get separate conversations.
168
-
169
- ### Continue corrections with the original context
170
-
171
- After review, tell the commander:
172
-
173
- > Continue the previous task. Send the three review findings together to the original executor, keep its conversation and workspace, and review again after the corrections are delivered.
174
-
175
- The commander uses `continueFromTaskId` to identify that task explicitly. The original conversation and candidate changes stay available; matching project paths alone do not make unrelated tasks share one chat.
176
-
177
- After a DSH restart, the plugin checks the original task and workspace identities before attempting continuation. A missing directory or unverifiable identity is reported.
178
-
179
- ### Use DSH teams when appropriate
180
-
181
- **You set the default; the dispatcher may decide one task.** Execution settings have a
182
- **"Enable agent collaboration for new tasks"** switch, and upgrades and fresh installs
183
- both start it **off**:
184
-
185
- - Upgrading or installing never turns it on by itself.
186
- - It decides only what a **new dispatch** does when it states no per-task choice. When the
187
- dispatcher states `true` or `false` for one dispatch, **that choice wins**.
188
- - **Continuations** with no new choice keep the collaboration choice the task they
189
- continue **recorded**. If that task recorded none (an older record), the plugin applies
190
- nothing and writes nothing: the Session keeps the mode it already has.
191
- - It affects **later submissions only**; a task that already started keeps its own
192
- frozen snapshot.
193
- - It is **not DSH's global switch**: the plugin writes only that one task's own Session
194
- and never changes DSH's global default or a conversation you adjusted yourself.
195
-
196
- On a DSH without agent-teams support, an **explicit** `true` or `false` is refused
197
- **before the prompt** and the task detail states why; it never quietly runs in the previous
198
- mode. The one exception is the implicit off default: such an ordinary dispatch still runs,
199
- but reports **not applied** (not "turned off"), which keeps older dispatches working. This
200
- decision does not change your configured API, model or effort, and team members' additional
201
- permissions currently have to be handled through the main executor. Cancellation works the
202
- same either way.
203
-
204
- One outer task always holds **one conversation and one concurrency slot**: enabling
205
- collaboration adds neither, and there is no reason to dispatch extra tasks for it.
206
-
207
- ## Task history: progress and acceptance
208
-
209
- Open **Task history → Details** to inspect:
210
-
211
- - **Execution:** phase, recent activity, current tool and inactivity diagnosis.
212
- - **Effective settings:** actual provider, model, effort and isolation.
213
- - **Agent collaboration:** the choice frozen on this task, where it came from (per-task
214
- request / inherited continuation / TaskBridge default), and what DSH confirmed or why it
215
- could not be applied.
216
- - **Task relationships:** execution workspace, conversation and continuation links.
217
- - **Decisions:** permission requests and their per-operation allow/deny records.
218
- - **Delivery evidence:** changed files, diffs, verification and results.
219
- - **Review:** commander acceptance and complete review notes.
220
-
221
- | Status | Meaning |
222
- | --- | --- |
223
- | **Running / waiting for a tool** | Execution is active; the program keeps waiting. |
224
- | **Awaiting a permission decision** | A specific operation needs commander judgment. |
225
- | **Awaiting host review** | Delivery exists, but final commander acceptance is not yet recorded. |
226
- | **Accepted** | The commander has recorded acceptance. |
227
- | **Changes requested** | Findings are recorded and can be handled by continuing the task. |
228
- | **Review persistence unconfirmed** | Saving has not been confirmed; do not treat the conclusion as durably recorded. |
229
-
230
- Background list refreshes are program operations, not model calls. Full review notes can be expanded from task details.
231
-
232
- ## FAQ
233
-
234
- ### Will Codex delegate everything after installation?
235
-
236
- No. Enable the local switch and explicitly assign work to TaskBridge. Managed rules distinguish discussion from delegation; you can still ask Codex to perform work itself.
237
-
238
- ### Does dispatch use the model I selected in DSH?
239
-
240
- It uses the effective TaskBridge execution configuration. A matching project override can replace the global selection, and running tasks retain their submission-time snapshot. Check the actual routing in task details.
241
-
242
- ### Do I have to approve every operation manually?
243
-
244
- Requests return to the commander using TaskBridge. It assesses the specific operation against your authorized scope and asks you when a new decision is required. A single approval applies only to that operation.
245
-
246
- ### Does quiet waiting guarantee zero Codex token use?
247
-
248
- No. Planning, approvals, answers, exception handling and review still use model calls. Savings depend on the task, client waiting behavior and context size. See the [historical waiting-stage comparison](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.0-token-benchmark.zh.md) for measurements and their limits.
249
-
250
- ### Why does a finished task still say “awaiting host review”?
251
-
252
- Reading the result does not record acceptance. The commander must review it, call `delegate_review` and confirm persistence. Managed rules include this step.
253
-
254
- ### Why is the old introduction or integration still visible after an update?
255
-
256
- Check the installed DSH plugin version and refresh the page. Registry mirrors and discovery indexes may be cached; online updates for a local `.tgz` installation depend on DSH's source management.
257
-
258
- For Codex, use the install/update button and reload the client. Use the MCP-only repair control when that is the affected entry. Custom edits remain protected and require separate handling.
259
-
260
- ### Does TaskBridge install every dependency and client integration?
261
-
262
- Enable TaskBridge in DSH and keep DSH running during delegated tasks. Set up the dependencies each project needs. To connect Codex for the first time, open **Codex integration** in the plugin and click **Install / update TaskBridge agent**. Claude Code and Claude Desktop integration is planned for 2.0.
263
-
264
- ## Client support and the 2.0 plan
265
-
266
- | Client | Current status | Plan |
267
- | --- | --- | --- |
268
- | **Codex** | Supported, with agent and MCP installation, update and repair controls. | Continue improving delegation and review. |
269
- | **Claude Code** | Not yet available. | Integration planned for **2.0**. |
270
- | **Claude Desktop** | Not yet available. | Integration planned for **2.0**. |
271
-
272
- The goal for 2.0 is to let more commanders use the execution models configured in DSH. Setup details and delivery scope will be documented in the 2.0 release notes. Use Codex with the current release.
273
-
274
- ## Documentation and feedback
275
-
276
- | Guide | Covers |
277
- | --- | --- |
278
- | [Codex integration](codex-integration.md) | Installation, updates, repairs, configuration locations and managed rules. |
279
- | [Claude integration plans](claude-code.md) | Planned 2.0 support for Claude Code and Claude Desktop. |
280
- | [Quiet waiting](silent-wait.md) | Activity timing, continuation, reminders and validation scope. |
281
- | [Workspaces and isolation](workspace-contract.md) | Preflight, worktrees, shared mode and task identity. |
282
- | [Conversation placement](conversation-placement.md) | Workspace naming, conversation creation and explicit continuation. |
283
- | [Plugin discovery and updates](plugin-market.md) | Custom indexes, npm and GitHub installation sources. |
284
- | [Migration](taskbridge-upgrade.md) | Upgrading from DSH Delegate / TaskDispatch. |
285
- | [1.5.4 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.4.zh.md) | Persisted task records, explicit goals and summaries, and placement checks. |
286
- | [1.5.3 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.3.zh.md) | Review summaries, full-note layout, mixed line endings, and commander planning rules. |
287
- | [1.5.2 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.2.zh.md) | The introduction update and its validation scope. |
288
-
289
- TaskBridge uses runtime capability checks rather than a DSH version whitelist; see [runtime notes](runtime-compatibility.md). A separate CLI execution channel and validation of every runtime environment are not complete. Existing limits are documented in the [1.5.1 notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.1.zh.md).
290
-
291
- Report issues and suggestions on [GitHub Issues](https://github.com/ranranyya/dsh-taskbridge/issues). Include the plugin version, reproduction steps and relevant redacted errors; leave out API keys.
292
-
293
- ## License
294
-
295
- [MIT](../LICENSE)
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)