DeepSHPlugins
dsh-plugin-bridge 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-plugin-bridge

會話與訊息JavaScriptMIT

透過可預覽的五段式交接,將已有 DSH 會話遷移到另一個 Agent Preset;保留源會話,並可讓目標會話暫停等待確認或立即繼續。

164 StarsTotoro-qaq 更新時間 2026-09-10
訪問 GitHub 倉庫
dsh-plugin-bridge 專案預覽
dsh-plugin-bridge 介面截圖dsh-plugin-bridge 介面截圖dsh-plugin-bridge 介面截圖dsh-plugin-bridge 介面截圖

專案介紹

中文

透過可預覽的五段式交接,將已有 DSH 會話遷移到另一個 Agent Preset;保留源會話,並可讓目標會話暫停等待確認或立即繼續。

English

Moves an existing DSH session to another agent preset through a previewable five-section handoff, preserving the source session and either pausing the target for confirmation or continuing immediately.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
Totoro-qaq
倉庫
Totoro-qaq/dsh-plugin-bridge
GitHub Stars
164
Forks
11
開發語言
JavaScript
許可證
MIT
最近推送
2026-09-10
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

85/ 100
維護活躍
100
文件與實用資訊
85
生態關注度
69
安裝便捷訊號
75
專案宣告訊號
100

近 1 天仍在更新;README 含完整安裝與使用說明。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-plugin-bridge

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-plugin-bridge

dsh-plugin-bridge moves a locked session to a new preset through a previewable five-part handoff

dsh-plugin npm ci license node ≥22 dsh 0.1.5-alpha.1 Listed in Awesome DSH Plugin dshfind

English | 中文

Halfway through a task and need another tool preset? Switching the produced session in place would leave tool history that belongs to the old assembly. Bridge previews a bounded five-part handoff, opens a clean target, and leaves the original session untouched.

A real Bridge migration in the official DeepSeek Harness WebUI

Quick start · Why Bridge · Evidence · Decisions · Compatibility

Quick start

Install from npm:

dsh plugin --profile web add dsh-plugin-bridge
# restart dsh web once

Pinned GitHub fallback:

dsh plugin --profile web add github:Totoro-qaq/dsh-plugin-bridge#v0.3.4

Then type in the official WebUI:

/bridge                       list target presets
/bridge --doctor              check the host contract after a DSH upgrade
/bridge code                  preview the handoff; change nothing
/bridge code --go             migrate, restate, then wait
/bridge code --go --continue  restate and start work in the same target request

On DSH rc.7 and later, the official WebUI renders /bridge as a native card. Text exposes the fixed five sections as ordinary fields and flat bullet or ordered-list rows while preserving their Markdown markers; Markdown preserves full source freedom; Preview renders Markdown or a complete JSON tree. Long content scrolls inside the card while the action bar stays reachable. Confirm migration opens the created target session.

UIs that implement the official conversation.chat.commandview slot receive the same card automatically. Other custom UIs retain the complete server result, summary-file workflow, and target title/session-ID fallback; UI authors can reuse the framework-free dsh-plugin-bridge/client-contract export instead of reimplementing the wire. On an older or non-slot client, correct the printed summary file and run:

/bridge code --go --file <path>

Preview edits are temporary until migration is confirmed. Restarting the client or system may discard them; the source session remains untouched, and you can regenerate the preview.

Uninstall with dsh plugin --profile web remove dsh-plugin-bridge, then restart dsh web.

Why Bridge

PromiseWhat it means
Preview before execution/bridge <preset> creates no target and changes no source session. Review or edit the five-section handoff first.
Move state, not tool tracesDecisions, paths, current state, and next steps move to a clean preset. Incompatible calls from the old tool assembly do not.
Fail closedThe target goal is paused before kickoff. If that cannot be guaranteed, Bridge clears/cancels the target and sends no model request.

Installing Bridge adds zero prompt tokens to ordinary sessions. It is a host slash command, not a model tool or skill.

Evidence at a glance

The release gate is intentionally small and reproducible; these are regression results, not population guarantees.

GateResult
Five-part summary facts30/30
Target restatement / first useful work facts60/60 · 60/60
Critical facts / obsolete-value resurrection90/90 · 0
Existing image evidence / unresolved raw image5/5 · 5/5
Confirm / --continue target request shape2 · 1 to first useful work
Confirm extra, paired nominal median+8.1% vs --continue
Summary worker share of clean acceptance components20.74% nominal
Native WebUI repeat gate (preview / target facts)3/3 · 3/3, five facts each
DSH 0.1.2 alpha.2 / alpha.3 / alpha.5 installed WebUI13/13 · ordered-list edit · PTC paused · image → text fallback

The token percentage varies widely with preset, response length, and cache state. The worker share is composition, not causal overhead versus no Bridge; the stable product claim is one additional confirmation request. Read the design and evidence boundaries, full release report, and vision report.

How it works

fold history -> five-part handoff -> preview/edit -> clean target session
             -> pause stored goal -> inject -> restate -> wait or continue
image history -> verbatim assistant evidence; unresolved originals use the attachment gateway

The five sections are Goal, Current state, Key decisions and conventions, Key files, and Next step. The original session is never rewritten; archive the target and return to the source if the handoff is unsatisfactory.

Migration decisions

SituationBridge behaviorCost / fidelity effect
Plugin installed, no /bridge callNo prompt injection or model tool0 Bridge prompt tokens
/bridge codeOne bounded summary worker; preview onlyNo target session is created
Default --goTarget restates and waitsOne explicit confirmation request before useful work
--go --continueRestate and work in one target requestLower request count; no background goal round
Image already has assistant analysisCopy that response verbatimNo raw image is resent by default
Image is unresolved and target accepts imagesCopy the original attachment and preserve the source VLMVision pricing comes from the selected provider
Image is unresolved and target is text-onlyPrompt admission rejects the image; Bridge sends a visible text fallbackNo hidden local VLM and no silent claim of visual understanding

Compatibility

DSH baselineServer handoffNative cardVerification boundary
0.1.0-rc.6YesNoNarrow RPC contract and text compatibility tests
0.1.0-rc.7 / rc.8YesContract-checkedClient-module/command-slot contract plus server fallback
0.1.1-rc.2YesYesInstalled official WebUI: doctor 13/13, edit/confirm/auto-open, three-run repeat gate
0.1.2-alpha.2 / alpha.3 / alpha.5YesYesOfficial DSH npm hosts: typed controllers 13/13 and PTC auto-open; the alpha.5 gate installed the branch tarball, retained alpha.3 titles, edited ordered lists, fell back from unresolved image to text, and removed cleanly
0.1.2-rc.1 → 0.1.3-alpha.2Yes (Bridge 0.3.3+)Yes (Bridge 0.3.3+)Real npm-host upgrade, preserved v2 history/title, exact edited payload, PTC paused goal, image fallback and clean removal; see acceptance report
0.1.5-alpha.1Yes (Bridge 0.3.4+)Yes (Bridge 0.3.4+)Official npm host with session format V3: tarball install, served native-card bundle, doctor 13/13 and preset listing on a V3 session; SDK type diff and V3 fold fixtures. Model-backed preview, migration and image fallback were not re-run; see smoke report

Use Bridge 0.3.4 or later for DSH 0.1.5-alpha.1: DSH published no 0.1.4, and a caret prerelease range such as ^0.1.3-alpha.2 never matches the next prerelease minor, so 0.3.4 adds ^0.1.5-alpha.1 and builds against that SDK with byte-identical lib/ output. Session format V3 records the system prompt as a system/message surface node; Bridge folds only user, assistant and tool events, so prompt text never enters a handoff. Use Bridge 0.3.3 or later for DSH 0.1.3-alpha.2; Bridge 0.3.2 does not include those compatibility changes. The typed adapter reads the default 240-message history window with one fresh inspect call instead of four; it does not cache running state. doctor checks method availability, not end-to-end compatibility.

CI covers Node.js 22 and 24. Run /bridge --doctor after every Harness upgrade; it names missing required gateway methods instead of failing vaguely.

Current limits:

  • installation needs one WebUI restart;
  • the native card auto-opens the created target through the official Session runtime; older clients still receive the title and session ID fallback;
  • progress appears immediately while the worker runs; the current fixed three-run sample took 7.4–12.8 seconds of worker time, while previewTimeoutMs remains the hard bound;
  • text-only models cannot inspect unresolved images;
  • the native-card repeat gate is still only three fixed runs, so it is release evidence rather than a statistical guarantee.

The server command stays the compatibility core. The same package now adds an optional official client half for rendered editing and navigation; if that prerelease client contract fails to load, /bridge still returns the complete server result. See the implementation boundary.

Documentation

Development

npm ci
npm run verify

verify builds and type-checks both plugin halves, runs 176 tests, checks generated lib/ and datasets, then packs, installs, and imports the actual npm tarball. Tests spend no model tokens. prepublishOnly runs the same gate; GitHub releases also require the tag to match package.json before trusted npm publishing.

Community listings: Awesome DSH Plugin · Awesome DeepSeek Harness

Ecosystem discovery: dsh-TUI. Bridge remains a standard DSH plugin; TUI/std conformance is tracked separately.

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案