dsh-taskbridge 1.8.1 → 1.9.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.
- package/CHANGELOG.md +27 -0
- package/README.md +139 -121
- package/antigravity/agents/dsh-taskbridge.md +14 -12
- package/antigravity/skills/dsh-taskbridge/SKILL.md +32 -19
- package/bin/dsh-delegate-codex-agent.js +9 -4
- package/codex/skills/dsh-taskbridge/SKILL.md +131 -0
- package/codex/skills/dsh-taskbridge/rules-reference-96027c387cb9b7587efa4aa3836235d86db1108068e007dc08196e807ca25e5d.md +114 -0
- package/docs/INTRODUCTION.md +94 -68
- package/docs/INTRODUCTION.zh.md +94 -77
- package/docs/antigravity-integration.md +6 -1
- package/docs/assets/taskbridge-workflow.en.svg +72 -0
- package/docs/assets/taskbridge-workflow.zh.png +0 -0
- package/docs/claude-code.md +5 -5
- package/docs/codex-integration.md +1102 -1076
- package/docs/releases/1.9.0.zh.md +31 -0
- package/docs/releases/1.9.1.zh.md +14 -0
- package/docs/runtime-compatibility.md +7 -9
- package/docs/silent-wait.md +17 -26
- package/docs/taskbridge-upgrade.md +4 -4
- package/lib/client.d.ts +2 -2
- package/lib/client.js +7 -7
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +157 -150
- package/src/antigravity/installer.js +33 -2
- package/src/client/api.js +139 -17
- package/src/client/index.jsx +20 -19
- package/src/codex/agent-ownership.js +72 -12
- package/src/codex/installer.js +4613 -4190
- package/src/http/execution-plane.js +17 -0
- package/src/http/user-plane.js +6 -0
- package/src/index.d.ts +9 -1
- package/src/index.js +86 -64
- package/src/jobs/engine.js +278 -5
- package/src/jobs/history.js +17 -1
- package/src/jobs/record-cleanup.js +76 -2
- package/src/mcp/server.js +241 -12
- package/src/runtime/permissions.js +18 -0
- package/src/runtime/worker-prompt.js +13 -9
- package/codex/dsh-taskbridge.toml +0 -181
package/docs/INTRODUCTION.md
CHANGED
|
@@ -1,42 +1,78 @@
|
|
|
1
1
|
# DSH TaskBridge
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Keep architecture planning and final code review in your upper host. Delegate heavy coding and test loops to DeepSeek Harness (DSH) inside a clean black-box MCP bridge.**
|
|
4
4
|
|
|
5
|
-
> **
|
|
5
|
+
> **Version `1.9.1` · Native one-click integration for Codex and Antigravity. Claude Code / Claude Desktop support is planned for 2.0.**
|
|
6
6
|
|
|
7
|
-
[简体中文](INTRODUCTION.zh.md) · [
|
|
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
8
|
|
|
9
|
-
TaskBridge is a
|
|
10
|
-
|
|
9
|
+
**DSH TaskBridge** is a cross-host task delegation plugin for **DeepSeek Harness (DSH)**.
|
|
10
|
+
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.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
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**.
|
|
13
13
|
|
|
14
|
-

|
|
15
15
|
|
|
16
16
|
## Why TaskBridge
|
|
17
17
|
|
|
18
|
-
|
|
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
19
|
|
|
20
|
-
- **
|
|
21
|
-
- **
|
|
22
|
-
- **
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
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 host model stays asleep until a compact structured delivery receipt is ready for review.
|
|
23
|
+
- **L2 Shared architect-style dispatch core:** Unified single-source rules across hosts — **decompose large multi-subsystem goals (`delegate_plan`) + steer architecture, exported contracts, and scope redlines (never dictating line-by-line code or pseudocode in prompts) + enforce pragmatic review (consolidate real spec/bug/test defects into one rework round; never invent out-of-spec fuzz probes)**.
|
|
24
|
+
- **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.
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
---
|
|
27
28
|
|
|
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 host review achieves full per-task score parity with frontier baselines:** Even with a lightweight `deepseek-v4.1-flash` worker, clear upfront contract briefs combined with independent host test/diff verification (including 1–3 targeted `continueFromTaskId` rework rounds on Codex) delivered **100/100** on the 235-test 3-domain `T5` architecture task — matching no-plugin frontier baselines point-for-point on both hosts.
|
|
57
|
+
2. **Savings scale with task complexity (38%–43% effective token reduction on heavy tasks):** Multi-file features and cross-module refactors (`T2`, `T3`, `T5`) are the sweet spot, saving **13.0%–43.3%** of expensive uncached input and code-output tokens on the strong model. Trivial single-point edits (`T4`) incur fixed preflight/review overhead (`+6.4%` to `+25.8%`) and are simpler to edit directly in the host.
|
|
58
|
+
3. **Host architectures shape prefix-cache behavior differently:** Antigravity's `flash` subagent absorbs 67.5% of intermediate turns on `T5`, keeping paired `T1–T5` flagship turns nearly flat (`11.80` vs. `11.00` baseline; `9.57` across all 7 tasks) and even reducing total cached+uncached tokens on `T1`/`T2`/`T3`. Codex runs a single direct MCP chain in the main session: multi-round approvals and rework (`33–54` turns on `T2`/`T5`) replay main-session prefix cache (`4.61×` total tokens, over 94% low-cost `cacheRead`), while high-cost uncached input + output still drops by **24.5%**.
|
|
59
|
+
4. **Trades background wall-clock time for flagship quota:** Paired `T1–T5` end-to-end duration averaged `1.76×` baseline on Antigravity (`656s` vs. `372s`; `481s` across all 7 tasks) and `3.11×` cumulative CLI time on Codex (`~1.9×` after excluding ~9-minute initial queueing under 7-way full concurrency) — ideal for background or parallel worktree delegation.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Key Capabilities
|
|
64
|
+
|
|
65
|
+
| Capability | What You Get |
|
|
29
66
|
| --- | --- |
|
|
30
|
-
| **
|
|
31
|
-
| **Reuse DSH APIs &
|
|
32
|
-
| **
|
|
33
|
-
| **
|
|
34
|
-
| **Tiered silent monitoring** | No default total execution
|
|
35
|
-
| **
|
|
36
|
-
| **Optional Agent Teams** |
|
|
37
|
-
| **Auto-save, presets & project overrides** | Changes save automatically; store reusable worker presets and per-project overrides. |
|
|
67
|
+
| **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. |
|
|
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 host after 40 minutes without a new delivery, and deduplicates repeated tool-failure reminders (all configurable). |
|
|
72
|
+
| **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. |
|
|
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. |
|
|
38
74
|
|
|
39
|
-
## Quick
|
|
75
|
+
## Quick Start
|
|
40
76
|
|
|
41
77
|
### 1. Install in DSH
|
|
42
78
|
|
|
@@ -46,76 +82,66 @@ Open **Plugins → Add plugin** in DSH, install and enable:
|
|
|
46
82
|
dsh-taskbridge
|
|
47
83
|
```
|
|
48
84
|
|
|
49
|
-
> Switch to the official npm registry if a regional mirror lags behind, or install a `.tgz` archive from GitHub Releases.
|
|
50
|
-
|
|
51
|
-
### 2. Choose your worker model
|
|
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).
|
|
52
86
|
|
|
53
|
-
|
|
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.
|
|
87
|
+
### 2. Configure the Worker Model
|
|
56
88
|
|
|
57
|
-
|
|
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.
|
|
58
92
|
|
|
59
|
-
|
|
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.
|
|
93
|
+
### 3. Connect Your Host
|
|
61
94
|
|
|
62
|
-
|
|
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.
|
|
63
97
|
|
|
64
|
-
|
|
98
|
+
### 4. Enable the Switch and Dispatch
|
|
65
99
|
|
|
66
|
-
|
|
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 your host:
|
|
67
101
|
|
|
68
|
-
|
|
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.
|
|
69
103
|
|
|
70
|
-
## How
|
|
104
|
+
## How It Works
|
|
71
105
|
|
|
72
|
-
|
|
106
|
+
### Isolation Modes
|
|
73
107
|
|
|
74
|
-
|
|
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.
|
|
75
110
|
|
|
76
|
-
|
|
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.
|
|
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.
|
|
78
112
|
|
|
79
|
-
|
|
113
|
+
### Quiet Waiting & Monitoring
|
|
80
114
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- **
|
|
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).
|
|
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).
|
|
89
118
|
|
|
90
119
|
## FAQ
|
|
91
120
|
|
|
92
|
-
**Does installing TaskBridge
|
|
93
|
-
No.
|
|
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.
|
|
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 the host with zero tool calls.
|
|
97
123
|
|
|
98
|
-
**
|
|
99
|
-
No.
|
|
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.
|
|
100
126
|
|
|
101
|
-
**
|
|
102
|
-
|
|
127
|
+
**When should I delegate vs. edit directly in the host?**
|
|
128
|
+
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.
|
|
103
129
|
|
|
104
|
-
##
|
|
130
|
+
## Host Support & Roadmap
|
|
105
131
|
|
|
106
|
-
|
|
|
132
|
+
| Host | Status | Integration |
|
|
107
133
|
| --- | --- | --- |
|
|
108
|
-
| **Codex** | Supported | One-click
|
|
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
|
|
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 dispatch core and MCP surface; see [Claude roadmap](claude-code.md) |
|
|
111
137
|
|
|
112
|
-
## Documentation &
|
|
138
|
+
## Documentation & Feedback
|
|
113
139
|
|
|
114
|
-
- [Codex integration](codex-integration.md) · [Antigravity integration](antigravity-integration.md) · [Claude roadmap](claude-code.md)
|
|
140
|
+
- [1.9.1 Release Notes (ZH)](releases/1.9.1.zh.md) · [1.9.0 Release Notes (ZH)](releases/1.9.0.zh.md) · [Codex integration](codex-integration.md) · [Antigravity integration](antigravity-integration.md) · [Claude roadmap](claude-code.md)
|
|
115
141
|
- [Silent waiting](silent-wait.md) · [Workspace isolation](workspace-contract.md) · [Conversation placement](conversation-placement.md)
|
|
116
142
|
- [Runtime compatibility](runtime-compatibility.md) · [Plugin market](plugin-market.md) · [Legacy migration](taskbridge-upgrade.md)
|
|
117
143
|
|
|
118
|
-
Report issues or
|
|
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).
|
|
119
145
|
|
|
120
146
|
## License
|
|
121
147
|
|
package/docs/INTRODUCTION.zh.md
CHANGED
|
@@ -1,133 +1,150 @@
|
|
|
1
1
|
# DSH TaskBridge
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**让上层宿主端专注架构规划与验收把关,把繁重编码与测试调测交给 DeepSeek Harness(DSH)黑盒执行。**
|
|
4
4
|
|
|
5
|
-
>
|
|
5
|
+
> **当前版本 `1.9.1` · 已原生支持 Codex 与 Antigravity 一键集成;Claude Code / Claude Desktop 接入计划于 2.0 上线。**
|
|
6
6
|
|
|
7
|
-
[English](INTRODUCTION.md) · [
|
|
7
|
+
[English](INTRODUCTION.md) · [为什么选择 TaskBridge](#为什么选择-taskbridge) · [1.9.0 双端基准测试与结论](#190-双端基准测试与结论) · [核心能力](#核心能力) · [快速上手](#快速上手) · [设置与机制](#设置与机制) · [常见问题](#常见问题) · [更新日志](../CHANGELOG.md)
|
|
8
8
|
|
|
9
|
-
TaskBridge 是面向 **DeepSeek Harness(DSH)**
|
|
10
|
-
|
|
9
|
+
**DSH TaskBridge** 是面向 **DeepSeek Harness(DSH)** 的跨宿主黑盒派工桥接插件。
|
|
10
|
+
你可以在最顺手的上层宿主端里阅读仓库、拆解架构、设定接口契约并独立验收交付;将耗费大量输出与反复调测轮次的具体编码工作,通过 11 个有界标准 `delegate_*` MCP 工具交给 DSH 内已配置的高性价比或专属模型落地。
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
对宿主端而言,底层执行是一座**受控黑盒车间**——API 密钥、模型路由、思考强度、Git `worktree` 隔离、跨子包工作树复用与 DSH 原生会话管理全部在插件内收口,宿主端只管**定方向、批越权、做验收**。
|
|
13
13
|
|
|
14
|
-

|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## 为什么选择 TaskBridge
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
当你信任高阶旗舰模型(如 GPT / Gemini 高推理档位)的架构设计与代码审查能力,但不想让它在样板代码编写和反复跑单测排错上烧掉宝贵配额,同时又厌倦了在多个窗口间手工粘贴提示词与 diff 时,TaskBridge 通过四层架构直接打通协同闭环:
|
|
19
19
|
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
20
|
+
- **L1 宿主因地制宜,零空转等待**:
|
|
21
|
+
- **Codex 端(1.9.0 原生技能)**:安装紧凑入口 `skills/dsh-taskbridge/SKILL.md` 与按需读取附页,由当前主会话直调 `delegate_submit({ autoPreflight: true, wait: true })` + 单链 `delegate_wait`(配合 `tool_timeout_sec = 3660` 静默长等),彻底根除旧版 `spawn_agent` + 短超时 `wait_agent` 的高频轮询空转,并自动安全退役未修改的旧 `.toml` 子智能体。
|
|
22
|
+
- **Antigravity 端(自包含插件包)**:默认将预检、等待循环与常规权限审批卸载给轻量 `flash` 后台子智能体托管,主旗舰模型零唤醒挂起,仅在交付后接收精简结构化证据完成最终审查。
|
|
23
|
+
- **L2 架构师式派工,杜绝代写与洁癖返工**:双端共享单一真源派工内核——**大任务拆小包(`delegate_plan`)+ 指明架构骨架、接口契约与范围红线(严禁宿主端在提示词中代写逐行实现代码或伪代码)+ 务实独立审查(仅对违背规范、真 Bug、测试失败或越界残留合并一轮打回,拒绝超纲假设空耗)**。
|
|
24
|
+
- **L3 紧凑有界 MCP 协议**:支持预检、提交与首段等待合并为一次调用。单行 JSON 载荷支持在本地审查时省略补丁正文或只返回回执(`includeDiff: false` / `receiptOnly: true`)。
|
|
25
|
+
- **L4 Git 工作树并行隔离与无缝续接**:默认从干净基线拉出独立 `worktree` 并行执行;多阶段下游子包可通过 `reuseWorktreeFromTaskId` 在同一隔离工作树上开启全新干净 DSH 会话(全程不污染主仓库);同一任务返工通过 `continueFromTaskId` 原会话续接;完成后支持按任务链一键联动清理。
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 1.9.0 双端基准测试与结论
|
|
30
|
+
|
|
31
|
+
我们使用覆盖 7 类真实工程场景的跨宿主黑盒基准套件(`T0A` 非指派静默边界、`T0B` 三类非法/未提交 Git 目录只读拦截、`T1` 配额账本核心实现、`T2` 超额计费与审计报告、`T3` 折扣集成与导出 CLI、`T4` 脏工作区未提交草稿完整性保护、`T5` 含 **235 项单测 + 6 份只读契约 SHA-256 校验**的企业级三域计费平台重构),在相同初始靶场与统一独立黑盒阅卷脚本下,基于 **`1.9.0-test6` 候选构建**对 **Antigravity** 与 **Codex** 双端进行了同宿主无插件直做基线对照实测。插件组 DSH 执行后端统一采用轻量模型 `deepseek-v4.1-flash`。
|
|
32
|
+
|
|
33
|
+
### 1. 双端综合实测总览
|
|
34
|
+
|
|
35
|
+
| 宿主端与主控配置 | 运行模式 | 全集通过(得分) | `T1–T5` 同题通过 | `T1–T5` 主控均步 | `T1–T5` 强模型有效 Token(非缓存输入 + 输出) | 强模型有效省流率 | `T1–T5` 强模型含缓存总 Token | 辅助 / DSH 执行端 Token |
|
|
36
|
+
| --- | --- | :---: | :---: | ---: | ---: | ---: | ---: | ---: |
|
|
37
|
+
| **Antigravity**<br>`gemini-4-neon-xhigh` | 无插件直做基线 | — | 5/5(均分 100) | 11.00 | 618,861 | 基线 | 3,276,639 | 0 |
|
|
38
|
+
| **Antigravity**<br>`gemini-4-neon-xhigh` | **`1.9.0-test6` 插件组**<br>(`flash` 子智能体 + DSH) | **7/7(均分 100)** | **5/5(均分 100)** | **11.80**<br>*(7 题全集 9.57)* | **420,450**<br>*(7 题全集 484,480)* | **净省 32.06%** | 3,724,763<br>*(+13.68%)* | Flash 辅助 2,298,138<br>+ DSH 后端执行 |
|
|
39
|
+
| **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | 无插件直做基线 | — | 4/5(均分 96) | 11.20 | 608,065 | 基线 | 1,966,145 | 0 |
|
|
40
|
+
| **Codex CLI**<br>`gpt-6.2-sol (xhigh)` | **`1.9.0-test6` 插件组**<br>(原生 Skill 单链 + DSH) | **6/7 通过** | **4/5(均分 96)**<br>*逐题得分 100% 一致* | **28.60**<br>*(7 题全集 21.29)* | **459,102**<br>*(7 题全集 503,180)* | **净省 24.50%** | 9,060,958<br>*(4.61×,94%+ 为缓存读)* | DSH 回执 745,409 |
|
|
41
|
+
|
|
42
|
+
> **核验说明**:① `T0A`(普通非代码问答)中 Codex 仅 1 步直接回答、工具调用为 0,Antigravity 辅助步数为 0,两端均 100% 严守非指派不触发红线;`T0B` 三类不合规目录均被只读预检精准拦截且靶场完好。② Codex 端基线与 `1.9.0-test6` 插件组在 `T2` 上均因标准阅卷省略超额策略参数时要求返回 `overageUnits` 扣 20 分(同得 80 分),显式传入 `charge-overage-tier` 补测后两组三个样例均满分通过。③ 相比升级单链架构前的 `test5` 轮询态(Codex 7 题有效 Token `2,367,661`、总 Token `1,863 万`),`1.9.0-test6` 将 Codex 有效 Token 压降了 **78.7%**。
|
|
43
|
+
|
|
44
|
+
### 2. `T1–T5` 分题强模型有效 Token(非缓存输入 + 输出)省流明细
|
|
45
|
+
|
|
46
|
+
| 题目与工程特征 | Antigravity 基线 → `1.9.0-test6` | Antigravity 有效省流率 | Codex 基线 → `1.9.0-test6` | Codex 有效省流率 |
|
|
47
|
+
| --- | ---: | ---: | ---: | ---: |
|
|
48
|
+
| **`T4`** · 脏仓库小型增量修复(保留未提交草稿) | 44,731 → 56,269 | -25.79% *(小任务固定开销)* | 81,590 → 86,816 | -6.40% *(小任务固定开销)* |
|
|
49
|
+
| **`T1`** · 配额账本核心模块实现(20 项单测) | 73,559 → 46,177 | **+37.22%** *(总 Token 亦省 9.8%)* | 52,768 → 52,446 | **+0.61%** *(基本打平)* |
|
|
50
|
+
| **`T2`** · 分层超额计费与审计报告(39 项单测) | 92,737 → 53,542 | **+42.26%** *(总 Token 亦省 19.2%)* | 100,570 → 87,502 | **+13.00%** |
|
|
51
|
+
| **`T3`** · 折扣引擎、账本集成与导出 CLI(51 项单测) | 85,481 → 64,440 | **+24.61%** *(总 Token 亦省 15.9%)* | 82,885 → 67,827 | **+18.17%** |
|
|
52
|
+
| **`T5`** · 企业级三域计费平台重构(235 项单测 + 6 契约校验) | 322,353 → 200,022 | **+37.95%** | 290,252 → 164,511 | **+43.32%** *(主控输出降 47.9%)* |
|
|
53
|
+
|
|
54
|
+
### 3. 四点实测结论与选型建议
|
|
55
|
+
|
|
56
|
+
1. **轻量模型执行 + 强主控验收,同题得分与无插件旗舰基线完全持平**:尽管执行端使用的是轻量高性价比模型(`deepseek-v4.1-flash`),依靠主控在派工前定清接口契约与防坑边界、交付后在隔离工作树独立跑测验收并按需发起原会话修正(如 Codex 在 `T1–T5` 执行了 1~3 轮精准退回修复),双端在包含 235 项跨模块单测的重型架构题 `T5` 上均拿到 **100/100**,`T1–T5` 逐题得分与同宿主旗舰模型直做完全一致。
|
|
57
|
+
2. **任务越复杂,强模型有效 Token 省得越显著(重型任务省流约 38%–43%)**:在 `T2`、`T3`、`T5` 等多文件功能开发、复杂业务规则与跨子系统重构中,原本由强模型承担的大段代码输出与反复跑测上下文被转移至 DSH,双端有效 Token 稳定节省 **13.0%–43.3%**;而对于像 `T4` 这样几分钟即可改完的极小单点修改,预检与审查往返的固定开销会抵消省流(微增 `6.4%`–`25.8%`),更适合直接在当前宿主端顺手改完。
|
|
58
|
+
3. **双端宿主运行机制不同,前缀缓存表现各有特征**:Antigravity 依托 `flash` 后台子智能体隔离了等待与常规审批(`T5` 中卸载了 67.5% 的交互步数),`T1–T5` 同题主控平均步数(`11.80` vs 基线 `11.00`,7 题全集 `9.57`)基本持平,`T1`/`T2`/`T3` 连含缓存总 Token 都低于无插件基线;Codex 由主会话单链直调 MCP,遇到多轮权限审批或返工(如 `T2`/`T5` 退回 3 轮、33~54 步)时会重放主会话前缀缓存(含缓存总 Token 为基线的 `4.61` 倍,但其中 **94% 以上均为低单价 `cacheRead` 命中**),高单价的非缓存输入与代码输出仍净降 `24.5%`。
|
|
59
|
+
4. **以适度后台墙钟耗时换取主力模型配额**:由于增加了派工通信、轻量模型编码调测及审查返工轮次,Antigravity 同题 `T1–T5` 平均端到端耗时约为基线的 `1.76` 倍(`656s` vs `372s`,7 题全集均耗时 `481s`),Codex 逐题累计耗时约为基线的 `3.11` 倍(扣除 7 题全并发首包约 9 分钟排队等待后约为基线的 `1.9` 倍)。推荐在后台或多工作树并行场景下派发中大型编码包,把主力旗舰配额留给核心架构决策与代码把关。
|
|
60
|
+
|
|
61
|
+
---
|
|
25
62
|
|
|
26
63
|
## 核心能力
|
|
27
64
|
|
|
28
65
|
| 能力 | 说明 |
|
|
29
66
|
| --- | --- |
|
|
30
|
-
|
|
|
31
|
-
| **复用 DSH 已有 API
|
|
32
|
-
|
|
|
33
|
-
| **隔离并行与原生工作区整合** | 默认独立 Git
|
|
34
|
-
| **分级静默监控** |
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
| **设置自动保存与项目覆盖** | 选项改动即时保存,文本输入自动防抖落盘;支持保存常用预设和按项目路径单独覆盖执行配置。 |
|
|
67
|
+
| **宿主端一键集成** | 设置页分别提供 Codex(原生技能 `skills/dsh-taskbridge/SKILL.md` + 按需附页 + MCP,自动安全退役未修改的旧版 `.toml` 子智能体)和 Antigravity(自包含插件包 + Skill + 轻量后台子智能体 + MCP)的安装、更新、仅修复 MCP 与卸载入口,按内容哈希完整保护用户自定义修改。 |
|
|
68
|
+
| **复用 DSH 已有 API、模型与思考强度** | 直接选用 DSH 已启用的接口、执行模型与思考强度;API 密钥全程留在 DSH 内,不导出、不回显。 |
|
|
69
|
+
| **任务树拆解、跨包工作树复用与联动清理** | 支持 `delegate_plan` 规划多层任务树;下游依赖子包可通过 `reuseWorktreeFromTaskId` 直接复用上游已验收隔离 `worktree` 并开启干净新会话;「任务记录」支持日期筛选、快捷预设勾选、查看完整审查意见、一键跳转原生会话及整链联动清理(严保主项目源码与共享工作区)。 |
|
|
70
|
+
| **隔离并行与原生工作区整合** | 默认独立 Git 工作树隔离(支持同项目多任务并行,自动归拢于 DSH 侧栏 `TaskBridge` 节点下并按任务标题命名),也支持预检确认后在脏仓库共享执行(保留项目原工作区名称)。 |
|
|
71
|
+
| **分级静默监控** | 普通任务无默认总执行时长上限;默认开始运行满 10 分钟本机只读自检一次、连续 40 分钟未回传新成果时提醒宿主端检查,连续同类工具失败(默认 3 次)带事件 ID 去重提醒(均可调或关闭)。 |
|
|
72
|
+
| **精确指纹单次审批与原生提问** | 超出常规工作区写权限的操作逐次审批,并核验本次调用的完整参数指纹。DSH 原生提问直传宿主端,答复后在同一次调用中续等。 |
|
|
73
|
+
| **可选智能体团队协作与项目覆盖** | `agentTeams` 默认关闭,支持全局默认或按单次派工显式指定(续接自动继承);设置改动即时/防抖自动保存,支持常用预设与按项目路径独立覆盖配置。 |
|
|
38
74
|
|
|
39
75
|
## 快速上手
|
|
40
76
|
|
|
41
|
-
### 1. 在 DSH
|
|
77
|
+
### 1. 在 DSH 中安装并启用插件
|
|
42
78
|
|
|
43
|
-
|
|
79
|
+
打开 DSH 的 **插件(Plugins manager)→ 添加插件**,输入包名安装并启用:
|
|
44
80
|
|
|
45
81
|
```text
|
|
46
82
|
dsh-taskbridge
|
|
47
83
|
```
|
|
48
84
|
|
|
49
|
-
> 若区域镜像尚未同步最新版,可切换 npm 官方源,或从 GitHub Releases 下载 `.tgz` 本地安装。本机 MCP
|
|
50
|
-
|
|
51
|
-
### 2. 配好执行模型
|
|
85
|
+
> 若区域镜像尚未同步最新版,可切换 npm 官方源,或从 [GitHub Releases](https://github.com/ranranyya/dsh-taskbridge/releases) 下载 `.tgz` 本地安装。本机 MCP 服务运行在 Node.js 24+ 上,安装器会自动绑定真实 Node 运行时(绝不误写桌面端 GUI 可执行文件)。
|
|
52
86
|
|
|
53
|
-
|
|
54
|
-
2. 切到 **执行设置**,选定执行提供方、执行模型与支持的思考强度。
|
|
55
|
-
3. 确认页面底部提示“已保存”或“所有修改已保存”。
|
|
87
|
+
### 2. 选定 DSH 执行模型
|
|
56
88
|
|
|
57
|
-
|
|
89
|
+
1. 打开 **Plugins → Installed plugins → dsh-taskbridge** 进入配置页,在 **接口管理** 中勾选已启用的 DSH 提供方。
|
|
90
|
+
2. 切换到 **执行设置**,选择执行提供方、执行模型与模型支持的思考强度。
|
|
91
|
+
3. 确认页面提示已自动保存。
|
|
58
92
|
|
|
59
|
-
|
|
60
|
-
- **接入 Antigravity**:切到 **Antigravity 集成**,点击 **安装 / 更新 Antigravity 插件**。插件会写入独立的 `~/.gemini/config/plugins/dsh-taskbridge/`(内含 `SKILL.md`、轻量后台子智能体和插件内 `mcp_config.json`,不碰全局配置),Antigravity 加载后即可通过 `@[plugin:dsh-taskbridge]` / `@dsh-taskbridge` 或明确指令派工。首次调用 `delegate_*` MCP 工具时若弹出外部工具确认框,建议勾选 **Always Allow**,避免打断静默等待与审批续等。
|
|
93
|
+
### 3. 一键接入你的宿主端
|
|
61
94
|
|
|
62
|
-
|
|
95
|
+
- **接入 Codex**:打开 **Codex 集成** 页签,点击 **安装 / 更新 TaskBridge 技能**(自动写入 `skills/dsh-taskbridge/SKILL.md`、同目录规则附页与 `config.toml` MCP 配置,并安全清理未修改过的旧版 `agents/dsh-taskbridge.toml`)。重开或新建 Codex 会话后,输入 `$dsh-taskbridge` 或明确交代“交给 DSH / TaskBridge 执行”即可激活单链直等派工。
|
|
96
|
+
- **接入 Antigravity**:打开 **Antigravity 集成** 页签,点击 **安装 / 更新 Antigravity 插件**(独立写入 `~/.gemini/config/plugins/dsh-taskbridge/`,不触碰全局配置)。加载后通过 `@[plugin:dsh-taskbridge]` / `@dsh-taskbridge` 或明确指令派工;首次弹出外部 `delegate_*` 工具确认框时建议勾选 **Always Allow**,保持后台静默等待连贯。
|
|
63
97
|
|
|
64
|
-
|
|
98
|
+
### 4. 打开总开关,派发任务
|
|
65
99
|
|
|
66
|
-
|
|
100
|
+
开启配置页顶部的 **允许本机 MCP 调用 DSH 委派**(新安装默认关闭,关闭即拒收新单并中止在途运行),随后在宿主端下达需求即可:
|
|
67
101
|
|
|
68
|
-
|
|
102
|
+
> 用 TaskBridge 把当前仓库的分层超额计费模块和导出 CLI 交给 DSH 实现。你先核对现有目录与规范定好接口契约和边界,拆包或单包派给 DSH 完成编码与单测;交付后独立核验 diff 与测试结果并记录验收结论,若有缺陷就续接原任务修完。
|
|
69
103
|
|
|
70
104
|
## 设置与机制
|
|
71
105
|
|
|
72
|
-
设置页顶部是本机调用总开关,下方分为五个页签:**接口管理、执行设置、任务记录、Codex 集成、Antigravity 集成**。
|
|
73
|
-
|
|
74
106
|
### 独立工作树 vs 共享工作区
|
|
75
107
|
|
|
76
|
-
| 模式 |
|
|
108
|
+
| 模式 | 修改落点与会话组织 | 适用场景 |
|
|
77
109
|
| --- | --- | --- |
|
|
78
|
-
|
|
|
79
|
-
|
|
|
110
|
+
| **独立工作树(`worktree`,默认)** | 从已提交基线拉出隔离工作树,折叠在 DSH 侧栏 `TaskBridge` 节点下并按任务标题命名;多阶段依赖子包可通过 `reuseWorktreeFromTaskId` 在同一隔离树上开启新会话接力开发 | 希望改动与主工作区完全隔离、同仓库多任务并行推进,待全部验收通过后再合入主分支;联动清理可一并移除工作树与临时工作区。 |
|
|
111
|
+
| **共享工作区(`shared`)** | 经预检确认后直接在授权项目目录内修改,沿用项目原生工作区并保留原名称 | 当前仓库已有未提交草稿且确认原地协作安全;联动清理严格保护源码目录与共享工作区不被删除。 |
|
|
80
112
|
|
|
81
|
-
>
|
|
113
|
+
> **仓库硬前提**:两种模式均要求目标路径是**已初始化且至少有 1 次 commit 的 Git 仓库根目录**。审查通过(`accepted`)仅持久化验收记录,绝不自动合并工作树、创建提交或推送远端。
|
|
82
114
|
|
|
83
|
-
###
|
|
115
|
+
### 分级静默监控与任务状态
|
|
84
116
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
| 指挥端**连续 40 分钟未收到新成果**(默认,可调/可关) | 向指挥端返回简短进度诊断,由指挥端决定继续等还是介入;即使 DSH 一直在工作,只要尚未回传新成果仍会提醒,且提醒**不会中止任务**。 |
|
|
90
|
-
| 同一工具操作连续失败达到阈值(默认 3 次) | 发送带事件编号的去重提醒,避免死循环重试。 |
|
|
91
|
-
| 权限申请、原生提问、交付或异常结束 | 立即回调指挥端处理。 |
|
|
92
|
-
|
|
93
|
-
> 10 分钟自检从**开始运行**算起,40 分钟进度检查从**最近一次回传新成果**(首段以开始运行为基准)算起;DSH 内部模型输出、工具调用、心跳和自检结论都不会重置 40 分钟计时,且两项提醒都不是任务总时长上限,不会自动判失败或中止任务。详见 [静默等待说明](silent-wait.md)。
|
|
94
|
-
|
|
95
|
-
### 任务状态一眼看懂
|
|
96
|
-
|
|
97
|
-
- **执行中 / 等待工具**:DSH 正在干活,本机静默等待中。
|
|
98
|
-
- **等待本次调用授权决定**:某条具体命令超出常规权限,等待指挥端审批。
|
|
99
|
-
- **等待宿主审查**:DSH 已交活,但指挥端尚未写回最终验收结论。
|
|
100
|
-
- **审查通过 / 需要修正**:指挥端已将结论持久化落盘;需要修正时直接续接原任务返工。
|
|
117
|
+
- **开始运行满 10 分钟(默认,可调/可关)**:插件在本机做**一次**零模型消耗的只读自检,活跃运行不会推迟它。
|
|
118
|
+
- **连续 40 分钟未回传新成果(默认,可调/可关)**:在 `delegate_wait` 中向宿主端返回一次紧凑进度诊断(DSH 内部模型/工具活动与心跳不重置该计时),仅作提醒、**不会自动判超时或中止任务**。
|
|
119
|
+
- **连续同类工具失败(默认 3 次)**:发送带稳定 `eventId` 的去重提醒,确认后停止重放。
|
|
120
|
+
- **核心状态流转**:`执行中` / `等待本次调用授权决定` / `等待回答问题` → DSH 交活进入 `等待宿主审查` → 宿主端核验并调用 `delegate_review` 持久化后变为 `审查通过` 或 `需要修正`(通过 `continueFromTaskId` 原会话返工)。详见 [静默等待说明](silent-wait.md)。
|
|
101
121
|
|
|
102
122
|
## 常见问题
|
|
103
123
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
**我手工改过 `dsh-taskbridge.toml` 或 `SKILL.md`,升级插件会被覆盖吗?**
|
|
108
|
-
不会。TaskBridge 按文件内容哈希判定所有权:只有未改动过的托管文件才会在升级时自动刷新;你编辑过的文件会被标记为自定义并原样保留。如果只更新连接路径,点「仅修复 MCP 配置」即可。
|
|
124
|
+
**安装后,宿主端会把普通提问也自动派给 DSH 吗?**
|
|
125
|
+
不会。必须同时满足「本机调用总开关已开启」且「你在对话中明确指派将 Git 仓库的代码实现或验证任务交给 DSH / TaskBridge」。日常聊天、概念解答、方案讨论(哪怕顺带提到了 `$dsh-taskbridge` 或 `@dsh-taskbridge`)都会直接在当前宿主端回答,零工具误调。
|
|
109
126
|
|
|
110
|
-
|
|
111
|
-
|
|
127
|
+
**我手动改过 `SKILL.md` 或旧版 `dsh-taskbridge.toml`,升级会被覆盖吗?**
|
|
128
|
+
不会。插件严格通过文件内容 SHA-256 哈希核验所有权:仅与历史发布模板或本机写入记录逐字节一致的未修改托管文件才会自动升级/退役;任何自定义改动都会被识别并原样保留。若只需修复路径连接,点击「仅修复 MCP 配置」即可。
|
|
112
129
|
|
|
113
|
-
|
|
114
|
-
|
|
130
|
+
**什么时候最适合交给 TaskBridge,什么时候适合让宿主端直接改?**
|
|
131
|
+
实测表明:几行代码的单点小修补(如改个常量或文案)直接让当前宿主端顺手改完最快、最省;一旦涉及**新建模块、多文件联动实现、补齐成套单测或跨层重构**,交给 TaskBridge 让宿主端专注把关方向与验收,能显著节省主力旗舰模型的非缓存输入与高价代码输出 Token。
|
|
115
132
|
|
|
116
|
-
##
|
|
133
|
+
## 宿主端支持路线
|
|
117
134
|
|
|
118
|
-
|
|
|
135
|
+
| 宿主端 | 当前状态 | 接入形态 |
|
|
119
136
|
| --- | --- | --- |
|
|
120
|
-
| **Codex** |
|
|
121
|
-
| **Antigravity** | 已支持 |
|
|
122
|
-
| **Claude Code / Claude Desktop** | 计划中(预计 2.0
|
|
137
|
+
| **Codex** | 已支持(`1.9.0` 原生技能) | 一键安装 `skills/dsh-taskbridge/SKILL.md` + 规则附页 + MCP(自动安全退役未修改旧子智能体) |
|
|
138
|
+
| **Antigravity** | 已支持 | 一键安装自包含插件包(`plugins/dsh-taskbridge/`:Skill + `flash` 后台子智能体 + MCP) |
|
|
139
|
+
| **Claude Code / Claude Desktop** | 计划中(预计 `2.0`) | 复用同一套分层派工内核与标准 MCP 服务接口,规划见 [Claude 接入规划](claude-code.md) |
|
|
123
140
|
|
|
124
|
-
##
|
|
141
|
+
## 更多文档与反馈
|
|
125
142
|
|
|
126
|
-
- [Codex 集成契约](codex-integration.md) · [Antigravity 集成契约](antigravity-integration.md) · [Claude 接入规划](claude-code.md)
|
|
143
|
+
- [1.9.1 更新说明](releases/1.9.1.zh.md) · [1.9.0 更新说明](releases/1.9.0.zh.md) · [Codex 集成契约](codex-integration.md) · [Antigravity 集成契约](antigravity-integration.md) · [Claude 接入规划](claude-code.md)
|
|
127
144
|
- [静默等待说明](silent-wait.md) · [工作区与隔离](workspace-contract.md) · [会话放置与续接](conversation-placement.md)
|
|
128
145
|
- [运行时兼容性](runtime-compatibility.md) · [插件发现与更新](plugin-market.md) · [旧名称迁移](taskbridge-upgrade.md)
|
|
129
146
|
|
|
130
|
-
|
|
147
|
+
遇到问题或有功能建议,欢迎前往 [GitHub Issues](https://github.com/ranranyya/dsh-taskbridge/issues) 反馈(请附上插件版本、复现步骤与脱敏诊断信息,切勿包含任何 API 密钥)。
|
|
131
148
|
|
|
132
149
|
## 许可证
|
|
133
150
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Antigravity integration contract
|
|
2
2
|
|
|
3
|
-
Status: implemented in 1.8.0.
|
|
3
|
+
Status: implemented in 1.8.0 (updated in 1.9.0 with layered commander core, isolated worktree reuse, per-task safe command approvals, and Flash subagent token boundaries).
|
|
4
4
|
|
|
5
5
|
This document defines the contract between the TaskBridge settings page (**Antigravity integration** tab), the host-side installer (`src/antigravity/installer.js`, `src/antigravity/seam.js`), and the self-contained Antigravity plugin bundle it manages.
|
|
6
6
|
|
|
@@ -40,3 +40,8 @@ TaskBridge **never modifies** `~/.gemini/config/mcp_config.json` or `~/.gemini/c
|
|
|
40
40
|
|
|
41
41
|
- Antigravity gates newly installed external MCP tools by default, so the first delegated task prompts for approval on each `delegate_*` call (`delegate_status`, `delegate_preflight`, `delegate_submit`, `delegate_wait`, `delegate_result`, `delegate_review`, etc.).
|
|
42
42
|
- Operators can choose **Always Allow** (or add Permission Grants for `dsh-taskbridge_dsh-taskbridge` in Antigravity Settings) to avoid repeated prompts during routine dispatches. Turning off DSH's master **Allow local MCP calls to DSH delegation** switch still rejects all new submissions immediately, and DSH workers remain inside their configured worktree/sandbox boundaries.
|
|
43
|
+
|
|
44
|
+
## 5. Layered rule maintenance (source repository)
|
|
45
|
+
|
|
46
|
+
- Both `antigravity/skills/dsh-taskbridge/SKILL.md` and `antigravity/agents/dsh-taskbridge.md` (along with `codex/skills/dsh-taskbridge/SKILL.md`) are generated from the layered single-source definitions under `integrations/core/` (Layer 2 shared commander core: activation redlines, decompose-and-steer planning philosophy, dispatch state machine, pragmatic review) and `integrations/adapters/` (Layer 1 host-specific thin adapters).
|
|
47
|
+
- After editing layered sources, run `npm run build:integrations`; `npm run check:integrations` and `tests/integrations-layering.test.js` verify byte-for-byte sync.
|