dsh-baton-mcp 0.6.14 → 0.6.16

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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <p align="center"><img src="./assets/logo/dsh-baton.svg" width="96" alt="dsh-baton logo"></p>
2
+
1
3
  <p align="center">
2
4
  <picture><source media="(prefers-color-scheme: dark)" srcset="./assets/readme/en/hero-dark.gif"><img src="./assets/readme/en/hero.gif" width="100%" alt="dsh-baton: pass the baton from Claude Code or Codex to DeepSeek Harness, watch it run live, and get it handed back when it's done"></picture>
3
5
  </p>
@@ -24,7 +26,7 @@
24
26
 
25
27
  Hand coding tasks from Claude Code, Codex or Antigravity to DeepSeek Harness on your machine: the task runs live in the Harness window, the main agent hears back once when it ends, and it gets back the files that changed, the project's own test results and a requirement-by-requirement checklist.
26
28
 
27
- - **Watch it and step in:** the task runs live in the Harness window and you can type into it at any time. Every message is labelled "Sent by Claude / ChatGPT / Antigravity from another chat". When Harness stops to ask a question, the main agent answers it if you told it to decide, or brings it to you with its own recommendation.
29
+ - **Watch it and step in:** the task runs live in the Harness window and you can type into it at any time. Every message is labelled "Sent by Claude / ChatGPT / Antigravity from another chat". When Harness stops to ask a question, the main agent brings it to you.
28
30
  - **Less of the 5-hour window:** a long Codex job takes 16% of a ChatGPT Plus 5-hour window instead of 86% (GPT-6 Astra, the kanban task). The rest of the numbers are under [Token usage](#token-usage).
29
31
  - **Nothing to watch or poll:** the main agent waits without polling and gets the result when the run ends. With several runs going at once, each one comes back within a second of finishing.
30
32
 
@@ -45,7 +47,7 @@ dsh-baton is an MCP server plus a small Harness plugin. The main agent hands the
45
47
  | You can step in mid-run | **Yes, in Harness, or the main agent steers it in** | Yes | Usually not |
46
48
  | Each message says who sent it | **Yes, sent by ChatGPT / Claude** | One side only | Not needed |
47
49
  | Changed files and test results come back | **dsh-baton lists the files and runs your tests itself** | No hand-over step | The sub-agent's own summary |
48
- | Questions reach you | **Yes, with the main agent's recommendation** | It asks you directly | Usually not |
50
+ | Questions reach you | **Yes, through the main agent** | It asks you directly | Usually not |
49
51
 
50
52
  <p align="center"><picture><source media="(prefers-color-scheme: dark)" srcset="./assets/readme/en/divider-dark.svg"><img src="./assets/readme/en/divider.svg" width="100%" alt=""></picture></p>
51
53
 
@@ -189,9 +191,15 @@ Working alone, Astra rated its own work 23/23; the independent check found 17/23
189
191
 
190
192
  **Pick a model:** just say which one, for example "hand it to DeepSeek, V4 Pro". `dsh_send` passes it as `model` (and `reasoning_effort`), matched against the models Harness lists, so a model Harness adds later works as soon as it shows up. It applies to that session only; Harness's default model stays as it was. `dsh_list_models` shows what is available.
191
193
 
194
+ **Default model for hand-overs:** a new hand-over session that names no model follows Harness's default model, and that default changes whenever a model is picked in Harness's model menu. To keep hand-overs on one model, choose it under **Default model for hand-overs** on the dsh-baton plugin page in Harness (Plugins → dsh-baton), with a reasoning effort if you like. It works for Claude Code, Codex and Antigravity at once, from the next hand-over, with no restart. A model named in the conversation still comes first, and a continued session keeps its own model. When the name it gives fits models from several providers (DeepSeek-V4.1-Flash from DeepSeek and from a WorkBuddy plugin, say), the one chosen here is used and the reply says so. Without it, the reply says when Harness's default changed since the last new hand-over.
195
+
192
196
  **Agent Teams:** ask for them, for example "hand it to DeepSeek with Agent Teams". `dsh_send` passes `team: true` and the session runs with Harness's Agent Teams on (Harness 0.2.2-rc.2 or later): the lead splits the work on a shared task board with its teammates, and the run comes back once they are done. `team: false` turns them off again.
193
197
 
194
- **Answering Harness's questions:** the main agent answers the way the task needs, rather than picking the least bad option. See `dsh_answer` under [Tools](#tools).
198
+ **Approvals:** a task sent through dsh-baton was already handed over by Claude Code, Codex or Antigravity, so an approval Harness asks for during a hand-over run is allowed at once, and the reply lists each one (`approvals_allowed`). A call Harness's Auto review mode turned down is never allowed this way; it waits for you in Harness, and so does every approval when the settings file cannot be read. On the plugin page, **Hand-over approvals** → **Leave them to me in Harness** makes every approval wait for you; the reply then says the run needs you in Harness.
199
+
200
+ **Questions:** when Harness asks you something during a hand-over, the question comes back to the main agent, which asks you its own way (its question card, or a message) and sends your answer to Harness. You can also answer in the Harness window.
201
+
202
+ **Git worktrees:** when the session moves to a new Git worktree (Harness's Git worktree plugin), the evidence lists that worktree's branch, commits and changed files under `worktrees`, and the checks run there. Merging the branch is up to you.
195
203
 
196
204
  **Several runs at once.** When a task is split across sessions, the main agent sends them all and waits for them together; whichever ends first comes back first, so it can review it and send a fix while the rest still run.
197
205
 
@@ -242,10 +250,10 @@ The server's MCP instructions are a single sentence; how to hand over, wait and
242
250
  | `dsh_list_sessions` | Sessions newest first, with title, folder, running state and `model` (what its next request uses); filter by folder or text. Archived sessions are left out |
243
251
  | `dsh_list_models` | The models Harness can run (provider, id, name, reasoning efforts) and its default model |
244
252
  | `dsh_read_session` | Recent prompts and replies of one session (with tool names); `archived: true` for an archived session |
245
- | `dsh_send` | Send a message: `session_id` continues that session; otherwise a new one starts in `cwd` or `workspace_id`, or, with neither, in the folder the conversation works in (a `cwd` that is not a workspace yet is registered first; a `cwd` outside the conversation's folder is allowed and noted in `folder_note`). `checks`: test commands dsh-baton runs itself when the run ends (see [How a hand-over is checked](#how-a-hand-over-is-checked)). Returns a `run_id` at once. In Harness the message is marked "Sent by Claude / ChatGPT from another chat". An archived session is refused: unarchive it in Harness, or start a new session. To a busy session, `mode` `followup` queues the message after the current turn and `steer` adds it to the running turn; left out, it does what Harness's own setting says (Settings → sending while busy: queue or steer), and `followup` when that cannot be read. `mode_source` says which applied. `model` only when the user names one ("DeepSeek-V4 Pro", "v4-pro"; `reasoning_effort` likewise): it is matched against Harness's own model list, ignoring case, spaces, hyphens and a leading DeepSeek, so a model Harness adds later (V4.1 Pro) works as soon as Harness lists it; a name that matches nothing or several fails the send, before anything is created, with the list (`provider/model` picks one). It is set on that session before the message goes in, and Harness's default model is put back as it was (Harness saves a session's pick as the default too). Left out, a continued session keeps its own model and a new one uses Harness's default. The reply says which in `model` and `model_source`. `team` (Harness 0.2.2-rc.2 or later): `true` turns Agent Teams on for the session before the message goes in, `false` turns them off; refused, with nothing sent, on an older Harness or on a sub-agent's session |
253
+ | `dsh_send` | Send a message: `session_id` continues that session; otherwise a new one starts in `cwd` or `workspace_id`, or, with neither, in the folder the conversation works in (a `cwd` that is not a workspace yet is registered first; a `cwd` outside the conversation's folder is allowed and noted in `folder_note`). A `cwd` inside the conversation's folder joins that folder's workspace instead of getting one of its own: the session opens in the conversation's folder and the message names the subfolder (`work_folder`), where `checks` run. Folders a client makes per conversation share one workspace each: Codex chats without a project (Codex chats), Claude scratch folders (Claude scratch), Codex worktrees (Codex worktrees) and a project's Claude worktrees (Claude worktrees). A folder that is a workspace already, or a Git worktree, keeps its own. `checks`: test commands dsh-baton runs itself when the run ends (see [How a hand-over is checked](#how-a-hand-over-is-checked)). Returns a `run_id` at once. In Harness the message is marked "Sent by Claude / ChatGPT from another chat". An archived session is refused: unarchive it in Harness, or start a new session. To a busy session, `mode` `followup` queues the message after the current turn and `steer` adds it to the running turn; left out, it does what Harness's own setting says (Settings → sending while busy: queue or steer), and `followup` when that cannot be read. `mode_source` says which applied. `model` only when the user names one ("DeepSeek-V4 Pro", "v4-pro"; `reasoning_effort` likewise): it is matched against Harness's own model list, ignoring case, spaces, hyphens and a leading DeepSeek, so a model Harness adds later (V4.1 Pro) works as soon as Harness lists it; a name that matches nothing or several fails the send, before anything is created, with the list (`provider/model` picks one). It is set on that session before the message goes in, and Harness's default model is put back as it was (Harness saves a session's pick as the default too). Left out, a continued session keeps its own model and a new one uses the hand-over default from the plugin page, else Harness's default. The reply says which in `model` and `model_source` (`requested`, `handover_default`, `default` or `session`), and `model_note` says when a hand-over default was skipped or Harness's default changed since the last new hand-over. `team` (Harness 0.2.2-rc.2 or later): `true` turns Agent Teams on for the session before the message goes in, `false` turns them off; refused, with nothing sent, on an older Harness or on a sub-agent's session |
246
254
  | `dsh_status` | Run progress: state, recent text and tool calls, final reply; `waiting_on` when the turn is over but sub-agents or jobs still run; `human_interjections` when someone typed in the Harness UI mid-run; state `interrupted` for a run cut short by a Harness restart; `model` the run was sent with. With `session_id` instead of `run_id`: what the session is doing, its Harness goal and its last turn's reply |
247
255
  | `dsh_wait` | Wait for the run to end; a finished run carries `evidence` (files changed, check results) when the message was sent with `checks` (or until it stops to ask a person, see `dsh_answer`): up to 3540 s per call for Codex (its tool timeout for dsh-baton less 60 s; 270 s when that is not set), 50 s for other clients. Still going: returns `timed_out` with just the state; call it again. Clients that can wait in the background use `dsh_send`'s `wait_command` instead. `dsh_status` is a one-off look, not a way to wait. A run in a session with a Harness goal is waited for until the goal stops (`until` `turn` and `every_minutes` for progress reports). With `session_id` instead of `run_id` it follows the session's Harness goal without sending anything (`until`, `cursor`, `every_minutes`; see How each client waits). With `run_ids` it waits for several runs and returns as soon as any ends or asks (`ended`, `still_running`) |
248
- | `dsh_answer` | Answer the questions a run stopped to ask (Harness's ask_user_question): per question, an option number or label, free text, or skip; on a single choice, free text replaces the option. `dsh_wait` and `wait_command` return as soon as a run asks, with the questions (`needs_input`, `question`; the option Harness's model would pick is in `harness_suggested`) and a layout for passing them on (`relay`, `question_tool`). When you let the main agent decide, it takes an option only if it fits as written, and otherwise answers in its own words; before it picks an option for you, the first call is held back and it writes the answer you would want without the options, sending the option only if the two agree. Otherwise it brings you the questions with its recommendation first, which may be an answer outside the options; pick that and only the answer itself is sent. You can also answer in the Harness window: whoever answers first wins |
256
+ | `dsh_answer` | Send your answer to the questions a run stopped to ask (Harness's ask_user_question): per question, an option number or label, free text, or skip; on a single choice, free text replaces the option. `dsh_wait` and `wait_command` return as soon as a run asks, with the questions (`needs_input`, `question`; the option Harness's model would pick is in `harness_suggested`); the main agent asks you and sends your answer. You can also answer in the Harness window: whoever answers first wins |
249
257
  | `dsh_session_activity` | Codex: through `dsh_call`. What a session is doing now: running turn, sub-agents (any depth), background jobs; `archived: true` for an archived session |
250
258
  | `dsh_update_queued` | Codex: through `dsh_call`. Change a message still waiting in the queue of a busy session, by its `run_id`: `edit` its text, `remove` it, or `steer` it into the running turn now. Once it has reached the conversation it can no longer be changed |
251
259
  | `dsh_cancel` | Stop everything a session is doing, by `run_id` or `session_id`: turn, sub-agents, jobs. Harness also drops the messages waiting in its queue; their runs end as `cancelled` |
@@ -331,7 +339,7 @@ Version history is on [GitHub Releases](https://github.com/JialaoLiu/dsh-baton/r
331
339
 
332
340
  **`npx -y dsh-baton-mcp setup`** does the same registration from a terminal: for a plugin that could not register, or when you come from an MCP directory. With the plugin already registered it changes nothing, then points you to the plugin if it is missing.
333
341
 
334
- **Updating.** On Harness 0.2.2 and later: Plugins → dsh-baton-host → **Update to x.y.z** (更新到) under Version; if it still says up to date, press **Check again** (重新检查) first. Harness 0.2.1 has no update button for this plugin: **Uninstall**, then **Add plugin** → `dsh-baton-host`. For about a day after a release, Harness installs the previous version instead (pnpm's `minimumReleaseAge` holds back versions published very recently, and the install dialog says so); to get the new one at once, type the version: `dsh-baton-host@x.y.z`. A pre-release must always be added by its exact version, such as `dsh-baton-host@0.6.0-next.0`: Harness resolves `@next` to a broken placeholder. Plain `dsh-baton-host` gets the latest release. Switched on again, the plugin brings the MCP server to the same version; new conversations use it. If the two are ever out of step, the first tool call that notices it says so, naming the older side and the newer side's exact version to install.
342
+ **Updating.** On Harness 0.2.1-rc.5 and later: Plugins → dsh-baton-host → **Update to x.y.z** (更新到) under Version; if it still says up to date, press **Check again** (重新检查) first. On older 0.2.1 builds without that button: **Uninstall**, then **Add plugin** → `dsh-baton-host`. For about a day after a release, Harness installs the previous version instead (pnpm's `minimumReleaseAge` holds back versions published very recently, and the install dialog says so); to get the new one at once, type the version: `dsh-baton-host@x.y.z`. A pre-release must always be added by its exact version, such as `dsh-baton-host@0.6.0-next.0`: Harness resolves `@next` to a broken placeholder. Plain `dsh-baton-host` gets the latest release. Switched on again, the plugin brings the MCP server to the same version; new conversations use it. If the two are ever out of step, the first tool call that notices it says so, naming the older side and the newer side's exact version to install.
335
343
 
336
344
  **Removing.** Harness → Plugins → dsh-baton-host → **Uninstall**, then `npx -y dsh-baton-mcp setup --remove`. The plugin cannot tell an uninstall from Harness quitting, so it leaves the MCP entries to that command, which also deletes `~/.dsh-baton/app`; run records stay in `~/.dsh-baton` until you delete it.
337
345
 
package/README.zh-CN.md CHANGED
@@ -1,3 +1,5 @@
1
+ <p align="center"><img src="./assets/logo/dsh-baton.svg" width="96" alt="dsh-baton logo"></p>
2
+
1
3
  <p align="center">
2
4
  <picture><source media="(prefers-color-scheme: dark)" srcset="./assets/readme/zh/hero-dark.gif"><img src="./assets/readme/zh/hero.gif" width="100%" alt="dsh-baton:让 Claude Code 或 Codex 把接力棒交给 DeepSeek Harness,界面实时可见,跑完那一刻就交回给你"></picture>
3
5
  </p>
@@ -24,7 +26,7 @@
24
26
 
25
27
  把 Claude Code、Codex 或 Antigravity 的编码任务交给本机的 DeepSeek Harness:任务在 Harness 界面里实时跑,跑完主 Agent 收到一次结果,带回改了哪些文件、项目自己的测试结果,以及逐条需求对照表。
26
28
 
27
- - **看得见、能插话**:任务在 Harness 界面里实时跑,你随时能插话;每条消息都标着“由 Claude / ChatGPT / Antigravity 从另一个聊天发送”。Harness 中途提问时,你让主 Agent 自己决定的,它直接回答;否则它带着自己的建议把问题转给你。
29
+ - **看得见、能插话**:任务在 Harness 界面里实时跑,你随时能插话;每条消息都标着“由 Claude / ChatGPT / Antigravity 从另一个聊天发送”。Harness 中途提问时,主 Agent 把问题转给你。
28
30
  - **省额度**:Codex 长任务占 ChatGPT Plus 5 小时额度,从 86% 降到 16%(GPT-6 Astra,看板案例)。其他数字在 [Token 用量实测](#token-用量实测)。
29
31
  - **不用盯**:主 Agent 等着结果、不轮询,做完就交回;几个任务同时跑时,每个做完 1 秒内就拿到。
30
32
 
@@ -45,7 +47,7 @@ dsh-baton 是一个 MCP 服务器加一个 Harness 小插件。主 Agent 用一
45
47
  | 能中途插话 | **能,在 Harness 里直接说,或由主 Agent 插队** | 能 | 通常不能 |
46
48
  | 消息标明是谁发的 | **每条都标着由 ChatGPT / Claude 发送** | 只有一方 | 不需要 |
47
49
  | 做完带回改动文件和测试结果 | **dsh-baton 自己列出改动文件、跑项目测试** | 没有交接这一步 | 子代理自己写的总结 |
48
- | 提问能转给你 | **能,主 Agent 带着建议转给你** | 直接问你 | 通常不能 |
50
+ | 提问能转给你 | **能,经主 Agent 转给你** | 直接问你 | 通常不能 |
49
51
 
50
52
  <p align="center"><picture><source media="(prefers-color-scheme: dark)" srcset="./assets/readme/zh/divider-dark.svg"><img src="./assets/readme/zh/divider.svg" width="100%" alt=""></picture></p>
51
53
 
@@ -79,7 +81,7 @@ dsh-baton 是一个 MCP 服务器加一个 Harness 小插件。主 Agent 用一
79
81
 
80
82
  就这些。要转交任务,在需求最后加一句“交给 DeepSeek Harness 去做”。更新、卸载、Windows,以及插件没能注册时怎么手动注册,在[后面](#安装细节)。
81
83
 
82
- **刚发版就安装?** 新版本发布后大约一天内,Harness 会装上一个版本,安装弹窗里会说明。打开插件详情页点 **更新到 x.y.z**,或者添加插件时带上版本号,比如 `dsh-baton-host@x.y.z`。
84
+ **刚发版就安装?** 新版本发布后大约一天内,Harness 装的是上一个版本,安装弹窗里会说明。打开插件详情页点 **更新到 x.y.z**,或者添加插件时带上版本号,比如 `dsh-baton-host@x.y.z`。
83
85
 
84
86
  <p align="center"><picture><source media="(prefers-color-scheme: dark)" srcset="./assets/readme/zh/divider-dark.svg"><img src="./assets/readme/zh/divider.svg" width="100%" alt=""></picture></p>
85
87
 
@@ -189,9 +191,15 @@ Codex 占 ChatGPT Plus 5 小时额度的比例,以及主 Agent 自己的花费
189
191
 
190
192
  **指定模型**:直接说用哪个就行,比如「交给 DeepSeek,用 V4 Pro」。`dsh_send` 会把它作为 `model`(以及 `reasoning_effort`)传过去,按 Harness 自己的模型列表匹配,所以 Harness 以后新加的模型一出现就能用。只对这个对话生效,Harness 的默认模型保持不变。`dsh_list_models` 可以看有哪些模型。
191
193
 
194
+ **转交默认模型**:新开的转交对话如果没点名模型,就跟随 Harness 的默认模型,而在 Harness 的模型菜单里选一次模型,默认就会跟着变。想让转交固定用一个模型,在 Harness 的 dsh-baton 插件页(插件 → dsh-baton)的**转交默认模型**里选好,推理强度也可以一起设。设一次就对 Claude Code、Codex 和 Antigravity 都生效,下一次转交就用上,不用重启。对话里点名的模型仍然优先,续接的对话保持它自己的模型。点名的名字对得上好几个供应商的模型时(比如 DeepSeek 和 WorkBuddy 插件都有 DeepSeek-V4.1-Flash),就用这里选好的那个,回复里会说明。没设的话,Harness 的默认模型和上一次新开转交时不一样时,回复里会说一句。
195
+
192
196
  **智能体团队**:直接说要用就行,比如「交给 DeepSeek,用智能体团队做」。`dsh_send` 会传 `team: true`,这个对话就开着 Harness 的智能体团队协作跑(需要 Harness 0.2.2-rc.2 及以上):lead 和队友在共享任务板上分工,都做完了才交回。`team: false` 可以再关掉。
193
197
 
194
- **回答 Harness 的提问**:主 Agent 按任务真正需要的答案来回答,不会在几个都不合适的选项里挑一个凑合。细节见[完整工具说明](#工具)里的 `dsh_answer`。
198
+ **审批**:经 dsh-baton 转交的任务已经由 Claude Code、Codex 或 Antigravity 交代过,所以转交过程中 Harness 弹出的审批会直接放行,回复里会逐条列出放行了什么(`approvals_allowed`)。Harness「自动审查」模式拒掉的调用不会这样放行,仍在 Harness 里等你处理;设置文件读不了时,所有审批也都等你处理。插件页的**转交会话里的审批**选**交给我在 Harness 里处理**后,所有审批都等你点,回复会说这个转交在等你。
199
+
200
+ **提问**:转交过程中 Harness 向你提问时,问题会回到主 Agent,由它用自己的方式问你(它自己的问题卡片或一条消息),再把你的回答发给 Harness。你也可以直接在 Harness 窗口里回答。
201
+
202
+ **Git 工作树**:会话切到新的 Git 工作树时(Harness 的「Git 工作树」插件),证据里的 `worktrees` 会列出这个工作树的分支、提交和改动文件,检查也在那里跑。要不要合并分支由你决定。
195
203
 
196
204
  **同时等多个任务**。一个任务拆给几个会话做时,主 Agent 全部发出去再一起等;哪个先做完就先拿到哪个,马上检查、发返修,其他的接着跑。
197
205
 
@@ -242,10 +250,10 @@ Codex 占 ChatGPT Plus 5 小时额度的比例,以及主 Agent 自己的花费
242
250
  | `dsh_list_sessions` | 列出对话(最新在前),带标题、目录、是否在跑和 `model`(下一次请求用的模型);可按目录或关键字过滤。已归档的对话不会列出 |
243
251
  | `dsh_list_models` | 列出 Harness 能用的模型(provider、id、名称、推理强度)和它的默认模型 |
244
252
  | `dsh_read_session` | 读某个对话最近的消息和回复(含用到的工具名);已归档的对话会带 `archived: true` |
245
- | `dsh_send` | 发消息。带 `session_id` 续接那个对话;否则新开对话,建在 `cwd` 或 `workspace_id` 指定的位置,都不带时建在当前对话所在的文件夹(`cwd` 还不是工作区时会先登记;指定的 `cwd` 在当前对话文件夹之外也可以,结果里的 `folder_note` 会提醒)。`checks`:运行结束后 dsh-baton 自己跑的测试命令(见[转交之后怎么验收](#转交之后怎么验收))。立即返回 `run_id`。Harness 里这条消息会标注「由 Claude / ChatGPT 从另一个聊天发送」。已归档的对话会被拒绝:先在 Harness 里取消归档,或新开对话。对话正忙时,`mode` 为 `followup` 会排在当前回合之后,`steer` 会插进正在跑的回合;不传时跟随 Harness 自己的设置(设置 → 繁忙时的发送行为:排队发送或插话发送),读不到设置时按 `followup`。返回里的 `mode_source` 说明用的是哪种。`model` 只在用户点名模型时传(如“DeepSeek-V4 Pro”“v4-pro”;`reasoning_effort` 同理):按 Harness 自己的模型列表匹配,不分大小写,忽略空格、连字符和开头的 DeepSeek,所以 Harness 以后上线的模型(如 V4.1 Pro)一出现在列表里就能用;匹配不到或匹配到多个时,发送直接失败、什么都不创建,并列出可用模型(用 `provider/model` 指定其一)。模型在消息发出前设到该对话上,Harness 的默认模型会恢复原样(Harness 会把对话里选的模型同时存成默认)。不传时,续接的对话沿用它自己的模型,新对话用 Harness 默认模型。返回值的 `model` 和 `model_source` 写明用的是哪个。`team`(需要 Harness 0.2.2-rc.2 及以上):`true` 在消息发出前为该对话打开智能体团队协作,`false` 关闭;Harness 版本太旧或传的是子智能体的对话时,直接拒绝、什么都不发 |
253
+ | `dsh_send` | 发消息。带 `session_id` 续接那个对话;否则新开对话,建在 `cwd` 或 `workspace_id` 指定的位置,都不带时建在当前对话所在的文件夹(`cwd` 还不是工作区时会先登记;指定的 `cwd` 在当前对话文件夹之外也可以,结果里的 `folder_note` 会提醒)。`cwd` 在当前对话文件夹里面时,不再单独建工作区,而是进当前对话文件夹的工作区:对话开在那个文件夹,消息里写明要在哪个子文件夹工作(`work_folder`),`checks` 也在子文件夹里跑。客户端给每个对话单独建的文件夹各自共用一个工作区:Codex 没选项目的对话(Codex chats)、Claude 的 scratch 文件夹(Claude scratch)、Codex 的 worktree(Codex worktrees)、同一项目的 Claude worktree(Claude worktrees)。本来就是工作区的文件夹,或者 Git worktree,仍用它自己的工作区。`checks`:运行结束后 dsh-baton 自己跑的测试命令(见[转交之后怎么验收](#转交之后怎么验收))。立即返回 `run_id`。Harness 里这条消息会标注「由 Claude / ChatGPT 从另一个聊天发送」。已归档的对话会被拒绝:先在 Harness 里取消归档,或新开对话。对话正忙时,`mode` 为 `followup` 会排在当前回合之后,`steer` 会插进正在跑的回合;不传时跟随 Harness 自己的设置(设置 → 繁忙时的发送行为:排队发送或插话发送),读不到设置时按 `followup`。返回里的 `mode_source` 说明用的是哪种。`model` 只在用户点名模型时传(如“DeepSeek-V4 Pro”“v4-pro”;`reasoning_effort` 同理):按 Harness 自己的模型列表匹配,不分大小写,忽略空格、连字符和开头的 DeepSeek,所以 Harness 以后上线的模型(如 V4.1 Pro)一出现在列表里就能用;匹配不到或匹配到多个时,发送直接失败、什么都不创建,并列出可用模型(用 `provider/model` 指定其一)。模型在消息发出前设到该对话上,Harness 的默认模型会恢复原样(Harness 会把对话里选的模型同时存成默认)。不传时,续接的对话沿用它自己的模型,新对话用插件页的转交默认模型,没设就用 Harness 默认模型。返回值的 `model` 和 `model_source`(`requested`、`handover_default`、`default` 或 `session`)写明用的是哪个;转交默认模型用不上,或 Harness 的默认模型和上一次新开转交时不一样时,`model_note` 会说明。`team`(需要 Harness 0.2.2-rc.2 及以上):`true` 在消息发出前为该对话打开智能体团队协作,`false` 关闭;Harness 版本太旧或传的是子智能体的对话时,直接拒绝、什么都不发 |
246
254
  | `dsh_status` | 查看运行进度:状态、最近的文字和工具调用、最终回复;回合结束但子智能体/后台任务还在跑时给出 `waiting_on`;中途有人在 Harness 界面里发消息时给出 `human_interjections`;被 Harness 重启打断的任务状态为 `interrupted`;以及这次运行发送时用的 `model`。用 `session_id` 代替 `run_id` 时:会话正在做什么、它的 Harness 目标,以及上一回合的回复 |
247
255
  | `dsh_wait` | 等运行结束;发消息时带了 `checks` 的,结束后会附上 `evidence`(改了哪些文件、测试结果)(或者等到它停下来问人,见 `dsh_answer`):Codex 每次最多等 3540 秒(它对 dsh-baton 的工具超时减 60 秒;没设时 270 秒),其他客户端 50 秒。没做完会带 `timed_out`,只返回状态,再调用一次即可。能在后台等待的客户端改用 `dsh_send` 返回的 `wait_command`。`dsh_status` 只用来看一眼,不用来等待。发到带 Harness 目标的会话的任务会一直等到目标停下(要汇报进度时用 `until` 为 `turn` 和 `every_minutes`)。用 `session_id` 代替 `run_id` 时,不发任何消息,跟进这个会话的 Harness 目标(`until`、`cursor`、`every_minutes`;见“各客户端怎么等待”)。用 `run_ids` 时同时等多个任务,任何一个做完或提问就返回(`ended`、`still_running`) |
248
- | `dsh_answer` | 回答运行中途提出的问题(Harness 的 ask_user_question):每道题可以填选项编号或选项文字、自由填写,或者跳过;单选题填了文字就以文字为准。运行一提问,`dsh_wait` 和 `wait_command` 就立刻返回,带上题目(`needs_input`、`question`;Harness 模型推荐的选项在 `harness_suggested`)和转给你时用的排版(`relay`、`question_tool`)。你让主 Agent 自己决定时,选项照原文正好合适它才选,否则用自己的话回答;要替你选某个选项时,第一次调用不会发出,它得先不看选项写出你想要的答案,两者一致才发。没让它决定时,它把题目转给你,开头先写它的建议,建议可以不在选项里;你选了这条建议,就只发这条答案。你也可以直接在 Harness 窗口里回答,谁先答就算谁的 |
256
+ | `dsh_answer` | 把你对运行中途提问的回答发回去(Harness 的 ask_user_question):每道题可以填选项编号或选项文字、自由填写,或者跳过;单选题填了文字就以文字为准。运行一提问,`dsh_wait` 和 `wait_command` 就立刻返回,带上题目(`needs_input`、`question`;Harness 模型推荐的选项在 `harness_suggested`),由主 Agent 问你并把你的回答发回去。你也可以直接在 Harness 窗口里回答,谁先答就算谁的 |
249
257
  | `dsh_session_activity` | Codex 里经 `dsh_call` 调用。对话此刻在做什么:正在跑的回合、子智能体(任意层级)、后台任务;已归档的对话会带 `archived: true` |
250
258
  | `dsh_update_queued` | Codex 里经 `dsh_call` 调用。按 `run_id` 修改还在忙碌对话队列里等待的消息:`edit` 改文字,`remove` 撤回,`steer` 立刻插进正在跑的回合。消息一旦进入对话就改不了了 |
251
259
  | `dsh_cancel` | 按 `run_id` 或 `session_id` 停掉整个对话的工作:当前回合、子智能体、后台任务。Harness 会同时清掉队列里等待的消息,这些运行记为 `cancelled` |
@@ -331,7 +339,7 @@ Harness 插件连不上时:
331
339
 
332
340
  **`npx -y dsh-baton-mcp setup`** 在终端里做同样的注册:用于插件没能注册的情况,或者从 MCP 目录过来的用户。插件已经注册过时它什么都不改;插件没装的话,它会提示去添加。
333
341
 
334
- **更新**。Harness 0.2.2 及以上:插件 → dsh-baton-host → 版本一栏里的 **更新到 x.y.z**;如果还显示已是最新版本,先点 **重新检查**。Harness 0.2.1 没有这个插件的更新按钮:**卸载**,再**添加插件** → `dsh-baton-host`。新版本发布后大约一天内,Harness 会装上一个版本(pnpm 的 `minimumReleaseAge` 会暂缓刚发布的版本,安装弹窗里会说明);想马上用新版,输入带版本号的名字:`dsh-baton-host@x.y.z`。预发布版必须写确切版本号添加,比如 `dsh-baton-host@0.6.0-next.0`:Harness 会把 `@next` 解析成一个坏掉的占位包。只输入 `dsh-baton-host` 装的是最新正式版。重新启用后,插件会把 MCP 服务器也更新到同一版本,新开的对话就会用上。万一两边版本对不上,第一次发现不一致的工具调用会提示,并写明哪一边旧、另一边的确切版本号。
342
+ **更新**。Harness 0.2.1-rc.5 及以上:插件 → dsh-baton-host → 版本一栏里的 **更新到 x.y.z**;如果还显示已是最新版本,先点 **重新检查**。更早的 0.2.1 没有这个按钮的话:**卸载**,再**添加插件** → `dsh-baton-host`。新版本发布后大约一天内,Harness 装的是上一个版本(pnpm 的 `minimumReleaseAge` 会暂缓刚发布的版本,安装弹窗里会说明);想马上用新版,输入带版本号的名字:`dsh-baton-host@x.y.z`。预发布版必须写确切版本号添加,比如 `dsh-baton-host@0.6.0-next.0`:Harness 会把 `@next` 解析成一个坏掉的占位包。只输入 `dsh-baton-host` 装的是最新正式版。重新启用后,插件会把 MCP 服务器也更新到同一版本,新开的对话就会用上。万一两边版本对不上,第一次发现不一致的工具调用会提示,并写明哪一边旧、另一边的确切版本号。
335
343
 
336
344
  **卸载**。Harness → 插件 → dsh-baton-host → **卸载**,再运行 `npx -y dsh-baton-mcp setup --remove`。插件分不清"被卸载"和"Harness 退出",所以 MCP 注册交给这条命令删,它也会删掉 `~/.dsh-baton/app`;运行记录留在 `~/.dsh-baton`,不需要的话自己删掉。
337
345
 
package/host/README.md CHANGED
@@ -1,29 +1,11 @@
1
1
  # dsh-baton-host
2
2
 
3
- Hand coding tasks from Claude Code or Codex to DeepSeek Harness: they run live in this window and come back with the changed files and test results. [Full guide](https://github.com/JialaoLiu/dsh-baton#readme)
3
+ **English** · [中文](#中文)
4
4
 
5
- 让 Claude Code 或 Codex 把编码任务交给 DeepSeek Harness:任务在这个窗口里实时跑,做完带着改动文件和测试结果交回去。[完整说明](https://github.com/JialaoLiu/dsh-baton/blob/main/README.zh-CN.md)
6
-
7
- ## Install / 安装
8
-
9
- **Install / 安装**: Plugins / 插件 → Add plugin / 添加插件 → `dsh-baton-host` → Install / 安装 → Enable now / 立即启用. That registers dsh-baton for Claude Code, Codex and Antigravity. / 启用后会为 Claude Code、Codex 和 Antigravity 注册 dsh-baton。
10
-
11
- **Check / 验证**:
12
- 1. Open a new chat in Claude Code or Codex (restart Antigravity once); Codex asks once to approve the dsh-baton tools. / 在 Claude Code 或 Codex 里新开对话(Antigravity 要重启一次),Codex 第一次会请你批准 dsh-baton 的工具。
13
- 2. Ask it to call `dsh_list_workspaces`; it lists your Harness workspaces. / 让它调用 `dsh_list_workspaces`,会列出你的 Harness 工作区。
14
-
15
- Not registered? / 没能注册?Run `npx -y dsh-baton-mcp setup`.
16
-
17
- ## Update / 更新
18
-
19
- Version → **Update to x.y.z** (press **Recheck** first if it says up to date). On Harness 0.2.1: uninstall, then add `dsh-baton-host@x.y.z`.
20
-
21
- 版本一栏 → **更新到 x.y.z**(显示已是最新时先点 **重新检查**)。Harness 0.2.1:先卸载,再添加 `dsh-baton-host@x.y.z`。
22
-
23
- ## Remove / 卸载
24
-
25
- Uninstall, then run `npx -y dsh-baton-mcp setup --remove`. / 卸载插件后运行 `npx -y dsh-baton-mcp setup --remove`。
5
+ Claude Code, Codex and Antigravity hand coding tasks to DeepSeek Harness here. Each runs live in this window and comes back with the changed files and test results. Below you can choose the default model for hand-overs, and how approvals in hand-over sessions are answered. [Full guide](https://github.com/JialaoLiu/dsh-baton#readme)
26
6
 
27
7
  ---
28
8
 
29
- [Socket protocol / 套接字协议](https://github.com/JialaoLiu/dsh-baton/blob/main/host/PROTOCOL.md) · MIT
9
+ ## 中文
10
+
11
+ Claude Code、Codex 和 Antigravity 在这里把编码任务交给 DeepSeek Harness,任务在这个窗口里实时跑,做完带着改动文件和测试结果交回。下面可以设转交默认模型,以及转交会话里的审批怎么处理。[完整说明](https://github.com/JialaoLiu/dsh-baton/blob/main/README.zh-CN.md)
@@ -0,0 +1 @@
1
+ ![Claude Code, Codex and Antigravity hand coding tasks to DeepSeek Harness; they run live here and come back with the changed files and test results](preview.svg)
@@ -0,0 +1 @@
1
+ ![Claude Code、Codex 和 Antigravity 把编码任务交给 DeepSeek Harness,在这里实时跑,做完带着改动文件和测试结果交回](preview.zh.svg)
@@ -0,0 +1,31 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300">
2
+ <rect width="640" height="300" rx="12" fill="#F5F6FC"/>
3
+ <text x="32" y="52" font-family="&quot;Songti SC&quot;, &quot;Noto Serif SC&quot;, &quot;Source Han Serif SC&quot;, &quot;SimSun&quot;, Georgia, serif" font-size="25" font-weight="400" fill="#253047">Hand tasks to DeepSeek Harness</text>
4
+ <text x="32" y="80" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12.5" font-weight="400" fill="#66738B">From Claude Code, Codex or Antigravity · runs live here · comes back checked</text>
5
+ <rect x="32" y="100" width="206" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
6
+ <text x="48" y="126" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">Your conversation</text>
7
+ <rect x="48" y="140" width="174" height="30" rx="8" fill="#EEF1FF"/>
8
+ <svg x="58" y="147" width="16" height="16" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#4655B3"/></svg>
9
+ <text x="84" y="160" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="13" font-weight="600" fill="#4655B3">Claude Code</text>
10
+ <rect x="48" y="178" width="174" height="30" rx="8" fill="#F3F5FA"/>
11
+ <svg x="58" y="185" width="16" height="16" viewBox="0 0 24 24"><path d="M9.20509 8.76514V6.50548C9.20509 6.31517 9.27649 6.17237 9.44293 6.07733L13.9861 3.46091C14.6046 3.10416 15.342 2.93772 16.103 2.93772C18.9573 2.93772 20.7651 5.14986 20.7651 7.50457C20.7651 7.67101 20.7651 7.86132 20.7412 8.05164L16.0316 5.29243C15.7462 5.12599 15.4607 5.12599 15.1753 5.29243L9.20509 8.76514ZM19.8136 17.566V12.1665C19.8136 11.8334 19.6708 11.5955 19.3854 11.4291L13.4152 7.95637L15.3656 6.83836C15.5321 6.74332 15.6749 6.74332 15.8413 6.83836L20.3845 9.45477C21.6928 10.216 22.5728 11.8334 22.5728 13.4032C22.5728 15.2108 21.5025 16.8759 19.8136 17.5657V17.566ZM7.80173 12.8088L5.8513 11.6671C5.68486 11.5721 5.61346 11.4293 5.61346 11.239V6.00616C5.61346 3.46114 7.56389 1.53436 10.2042 1.53436C11.2033 1.53436 12.1307 1.86746 12.9159 2.46205L8.2301 5.17374C7.94475 5.34018 7.80196 5.57801 7.80196 5.91112V12.809L7.80173 12.8088ZM12 15.2349L9.20509 13.6651V10.3352L12 8.76537L14.7947 10.3352V13.6651L12 15.2349ZM13.7958 22.4659C12.7967 22.4659 11.8693 22.1328 11.0841 21.5382L15.7699 18.8265C16.0553 18.6601 16.198 18.4223 16.198 18.0892V11.1912L18.1723 12.3329C18.3388 12.4279 18.4102 12.5707 18.4102 12.7611V17.9939C18.4102 20.5389 16.4359 22.4657 13.7958 22.4657V22.4659ZM8.15848 17.1617L3.61528 14.5453C2.30696 13.784 1.42701 12.1667 1.42701 10.5969C1.42701 8.76537 2.52115 7.12417 4.20987 6.43431V11.8575C4.20987 12.1906 4.35266 12.4284 4.63802 12.5948L10.5846 16.0437L8.63415 17.1617C8.46771 17.2567 8.32492 17.2567 8.15848 17.1617ZM7.897 21.0626C5.20919 21.0626 3.23488 19.0407 3.23488 16.5432C3.23488 16.3529 3.25875 16.1626 3.2824 15.9723L7.96817 18.684C8.25352 18.8504 8.53911 18.8504 8.82447 18.684L14.7947 15.2351V17.4948C14.7947 17.6851 14.7233 17.8279 14.5568 17.9229L10.0136 20.5394C9.39518 20.8961 8.6578 21.0626 7.89677 21.0626H7.897ZM13.7958 23.8929C16.6739 23.8929 19.0762 21.8475 19.6235 19.1358C22.2874 18.4459 24 15.9484 24 13.4034C24 11.7383 23.2865 10.121 22.002 8.95546C22.121 8.45591 22.1924 7.95637 22.1924 7.45705C22.1924 4.05573 19.4331 1.51048 16.2458 1.51048C15.6037 1.51048 14.9852 1.60553 14.3668 1.81971C13.2963 0.773101 11.8215 0.107117 10.2042 0.107117C7.32606 0.107117 4.92383 2.15259 4.37653 4.86428C1.7126 5.55414 0 8.05164 0 10.5967C0 12.2617 0.713506 13.8791 1.99795 15.0446C1.87904 15.5441 1.80764 16.0437 1.80764 16.543C1.80764 19.9443 4.56685 22.4896 7.75421 22.4896C8.39632 22.4896 9.01478 22.3945 9.63324 22.1803C10.7035 23.2269 12.1783 23.8929 13.7958 23.8929Z" fill="#253047"/></svg>
12
+ <text x="84" y="198" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="13" font-weight="500" fill="#253047">Codex</text>
13
+ <rect x="48" y="216" width="174" height="30" rx="8" fill="#F3F5FA"/>
14
+ <svg x="58" y="223" width="16" height="16" viewBox="0 0 24 24"><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z" fill="#253047"/></svg>
15
+ <text x="84" y="236" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="13" font-weight="500" fill="#253047">Antigravity</text>
16
+ <path d="M244 184 H 260" stroke="#9CA9CC" stroke-width="1.5" fill="none"/>
17
+ <path d="M255 179 L 261 184 L 255 189" stroke="#9CA9CC" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
18
+ <rect x="266" y="100" width="342" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
19
+ <svg x="284" y="116" width="12" height="12" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#7A859E"/></svg>
20
+ <text x="302" y="126" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">Sent by Claude from another chat</text>
21
+ <text x="284" y="154" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="15" font-weight="600" fill="#253047">Fix the login retry</text>
22
+ <circle cx="290" cy="174" r="3.5" fill="#428466"/>
23
+ <text x="300" y="178" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12" font-weight="400" fill="#397359">Done</text>
24
+ <text x="400" y="178" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12" font-weight="400" fill="#515F7B">3 files changed</text>
25
+ <line x1="278" y1="192" x2="596" y2="192" stroke="#E6EAF2"/>
26
+ <rect x="278" y="202" width="318" height="26" rx="6" fill="#EAF5EF"/>
27
+ <path d="M290 215 l3.5 3.5 l6.5 -7" stroke="#428466" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
28
+ <text x="308" y="219" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="400" fill="#253047">npm test</text>
29
+ <text x="586" y="219" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12" font-weight="400" fill="#397359" text-anchor="end">passed</text>
30
+ <text x="284" y="252" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="11.5" font-weight="400" fill="#66738B">Reply, files and test results go back to Claude Code</text>
31
+ </svg>
@@ -0,0 +1,31 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300">
2
+ <rect width="640" height="300" rx="12" fill="#F5F6FC"/>
3
+ <text x="32" y="52" font-family="&quot;Songti SC&quot;, &quot;Noto Serif SC&quot;, &quot;Source Han Serif SC&quot;, &quot;SimSun&quot;, Georgia, serif" font-size="25" font-weight="400" fill="#253047">把编码任务交给 DeepSeek Harness</text>
4
+ <text x="32" y="80" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12.5" font-weight="400" fill="#66738B">从 Claude Code、Codex、Antigravity 转交 · 在这里实时跑 · 带着结果交回</text>
5
+ <rect x="32" y="100" width="206" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
6
+ <text x="48" y="126" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">你的对话</text>
7
+ <rect x="48" y="140" width="174" height="30" rx="8" fill="#EEF1FF"/>
8
+ <svg x="58" y="147" width="16" height="16" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#4655B3"/></svg>
9
+ <text x="84" y="160" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="13" font-weight="600" fill="#4655B3">Claude Code</text>
10
+ <rect x="48" y="178" width="174" height="30" rx="8" fill="#F3F5FA"/>
11
+ <svg x="58" y="185" width="16" height="16" viewBox="0 0 24 24"><path d="M9.20509 8.76514V6.50548C9.20509 6.31517 9.27649 6.17237 9.44293 6.07733L13.9861 3.46091C14.6046 3.10416 15.342 2.93772 16.103 2.93772C18.9573 2.93772 20.7651 5.14986 20.7651 7.50457C20.7651 7.67101 20.7651 7.86132 20.7412 8.05164L16.0316 5.29243C15.7462 5.12599 15.4607 5.12599 15.1753 5.29243L9.20509 8.76514ZM19.8136 17.566V12.1665C19.8136 11.8334 19.6708 11.5955 19.3854 11.4291L13.4152 7.95637L15.3656 6.83836C15.5321 6.74332 15.6749 6.74332 15.8413 6.83836L20.3845 9.45477C21.6928 10.216 22.5728 11.8334 22.5728 13.4032C22.5728 15.2108 21.5025 16.8759 19.8136 17.5657V17.566ZM7.80173 12.8088L5.8513 11.6671C5.68486 11.5721 5.61346 11.4293 5.61346 11.239V6.00616C5.61346 3.46114 7.56389 1.53436 10.2042 1.53436C11.2033 1.53436 12.1307 1.86746 12.9159 2.46205L8.2301 5.17374C7.94475 5.34018 7.80196 5.57801 7.80196 5.91112V12.809L7.80173 12.8088ZM12 15.2349L9.20509 13.6651V10.3352L12 8.76537L14.7947 10.3352V13.6651L12 15.2349ZM13.7958 22.4659C12.7967 22.4659 11.8693 22.1328 11.0841 21.5382L15.7699 18.8265C16.0553 18.6601 16.198 18.4223 16.198 18.0892V11.1912L18.1723 12.3329C18.3388 12.4279 18.4102 12.5707 18.4102 12.7611V17.9939C18.4102 20.5389 16.4359 22.4657 13.7958 22.4657V22.4659ZM8.15848 17.1617L3.61528 14.5453C2.30696 13.784 1.42701 12.1667 1.42701 10.5969C1.42701 8.76537 2.52115 7.12417 4.20987 6.43431V11.8575C4.20987 12.1906 4.35266 12.4284 4.63802 12.5948L10.5846 16.0437L8.63415 17.1617C8.46771 17.2567 8.32492 17.2567 8.15848 17.1617ZM7.897 21.0626C5.20919 21.0626 3.23488 19.0407 3.23488 16.5432C3.23488 16.3529 3.25875 16.1626 3.2824 15.9723L7.96817 18.684C8.25352 18.8504 8.53911 18.8504 8.82447 18.684L14.7947 15.2351V17.4948C14.7947 17.6851 14.7233 17.8279 14.5568 17.9229L10.0136 20.5394C9.39518 20.8961 8.6578 21.0626 7.89677 21.0626H7.897ZM13.7958 23.8929C16.6739 23.8929 19.0762 21.8475 19.6235 19.1358C22.2874 18.4459 24 15.9484 24 13.4034C24 11.7383 23.2865 10.121 22.002 8.95546C22.121 8.45591 22.1924 7.95637 22.1924 7.45705C22.1924 4.05573 19.4331 1.51048 16.2458 1.51048C15.6037 1.51048 14.9852 1.60553 14.3668 1.81971C13.2963 0.773101 11.8215 0.107117 10.2042 0.107117C7.32606 0.107117 4.92383 2.15259 4.37653 4.86428C1.7126 5.55414 0 8.05164 0 10.5967C0 12.2617 0.713506 13.8791 1.99795 15.0446C1.87904 15.5441 1.80764 16.0437 1.80764 16.543C1.80764 19.9443 4.56685 22.4896 7.75421 22.4896C8.39632 22.4896 9.01478 22.3945 9.63324 22.1803C10.7035 23.2269 12.1783 23.8929 13.7958 23.8929Z" fill="#253047"/></svg>
12
+ <text x="84" y="198" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="13" font-weight="500" fill="#253047">Codex</text>
13
+ <rect x="48" y="216" width="174" height="30" rx="8" fill="#F3F5FA"/>
14
+ <svg x="58" y="223" width="16" height="16" viewBox="0 0 24 24"><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z" fill="#253047"/></svg>
15
+ <text x="84" y="236" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="13" font-weight="500" fill="#253047">Antigravity</text>
16
+ <path d="M244 184 H 260" stroke="#9CA9CC" stroke-width="1.5" fill="none"/>
17
+ <path d="M255 179 L 261 184 L 255 189" stroke="#9CA9CC" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
18
+ <rect x="266" y="100" width="342" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
19
+ <svg x="284" y="116" width="12" height="12" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#7A859E"/></svg>
20
+ <text x="302" y="126" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">由 Claude 从另一个聊天发送</text>
21
+ <text x="284" y="154" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="15" font-weight="600" fill="#253047">修复登录重试</text>
22
+ <circle cx="290" cy="174" r="3.5" fill="#428466"/>
23
+ <text x="300" y="178" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12" font-weight="400" fill="#397359">已完成</text>
24
+ <text x="400" y="178" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12" font-weight="400" fill="#515F7B">改动 3 个文件</text>
25
+ <line x1="278" y1="192" x2="596" y2="192" stroke="#E6EAF2"/>
26
+ <rect x="278" y="202" width="318" height="26" rx="6" fill="#EAF5EF"/>
27
+ <path d="M290 215 l3.5 3.5 l6.5 -7" stroke="#428466" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
28
+ <text x="308" y="219" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="400" fill="#253047">npm test</text>
29
+ <text x="586" y="219" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="12" font-weight="400" fill="#397359" text-anchor="end">通过</text>
30
+ <text x="284" y="252" font-family="-apple-system, BlinkMacSystemFont, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Segoe UI&quot;, sans-serif" font-size="11.5" font-weight="400" fill="#66738B">回复、改动文件和测试结果交回 Claude Code</text>
31
+ </svg>
package/host/icon.svg ADDED
@@ -0,0 +1,27 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="10 9 180 180" role="img" aria-labelledby="t">
2
+ <title id="t">dsh-baton</title>
3
+ <style>
4
+ .front { stroke: #2D2F33; }
5
+ .back { stroke: #9A9DA4; }
6
+ @media (prefers-color-scheme: dark) {
7
+ .front { stroke: #F4F4F5; }
8
+ .back { stroke: #6B6E75; }
9
+ }
10
+ </style>
11
+ <defs>
12
+ <!-- the back window hides behind the front one, and both frames open where the baton passes -->
13
+ <mask id="behind" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="200">
14
+ <rect width="200" height="200" fill="#fff"/>
15
+ <rect x="20" y="46" width="102" height="84" rx="19" fill="#000"/>
16
+ <rect x="62.5" y="92.5" width="79" height="24" rx="12" fill="#000"/>
17
+ </mask>
18
+ <mask id="cut" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="200">
19
+ <rect width="200" height="200" fill="#fff"/>
20
+ <rect x="62.5" y="92.5" width="79" height="24" rx="12" fill="#000"/>
21
+ </mask>
22
+ </defs>
23
+ <rect class="back" x="92" y="80" width="84" height="68" rx="15" fill="none" stroke-width="8" mask="url(#behind)"/>
24
+ <rect class="front" x="24" y="50" width="94" height="76" rx="15" fill="none" stroke-width="8" mask="url(#cut)"/>
25
+ <path class="front" d="M42 76 L56 90 L42 104" fill="none" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
26
+ <rect x="66" y="96" width="72" height="17" rx="8.5" fill="#FF8A3D"/>
27
+ </svg>