返回目錄

dsh-better-sidebar

編輯精選維護狀態: 活躍

omdsh-dev/dsh-better-sidebar

開放的側邊欄底座,支援三方拓展註冊新側邊欄頁面。內建檔案渲染編輯/終端/側邊對話/Git/子代理頁面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git, and sub-agent pages.

前往 GitHub
$ dsh plugin --profile web add dsh-better-sidebar@latest

3,524

星數

318

Fork

TypeScript

語言

MIT

授權條款

2026-08-07

建立於

2026-09-11

最近推送

MIT 授權的服務化側邊欄框架,透過官方 dsh plugin CLI 原生安裝進 DeepSeek Harness web profile,內建檔案工作台、真實終端機、Git 面板,並開放第三方外掛註冊新分頁的擴充 API。

DSH 整合

原生執行環境

作者聲明

安全稽核

未稽核

最後核實

2026-08-21

授權條款

MIT

01它能幫你完成什麼?

  • Turn the DeepSeek Harness web UI into a full IDE-style workbench: files, terminal, Git and subagents in a sidebar

    Right sidebar + bottom panel dual workbench with 7 built-in tabs: file explorer + CodeMirror editor with inline image / Markdown / HTML / PDF preview, embedded browser, real terminal, Git panel, background tasks and a plugin directory

    DeepSeek Harness (dsh web) users who want an IDE-grade sidebar UI without leaving the harness

  • Extend the DSH sidebar with custom tabs and file viewers from other plugins

    New sidebar pages and file previewers registered through the `ctx.betterSidebar` service (`registerTab` / `registerFileViewer`), with the same API the built-in 7 tabs + 6 viewers use

    DSH plugin developers building UI panels on top of a shared sidebar foundation

02如何將外掛接入 DeepSeek Harness?

先決條件

  • DSH installed and running (`dsh web` works)
  • Node.js ≥ 20 and pnpm ≥ 10
  • DSH 0.1.0-rc.8 — this release pins all `@deepseek-ai/*` dependencies to `^0.1.0-rc.8`; rc.7 and earlier cannot resolve the dependencies

安裝步驟

  1. 01

    Run `dsh plugin --profile web add dsh-better-sidebar@latest`

    $ dsh plugin --profile web add dsh-better-sidebar@latest

  2. 02

    Hard-refresh the browser (Cmd/Ctrl+Shift+R) to load the sidebar — DSH hot-loads client changes, so no restart is needed unless the host half updates

驗證整合成功

  • Hard-refresh the browser (Cmd/Ctrl+Shift+R); the sidebar workbench appears in the DSH web UI

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

Native DSH web-profile plugin installed via the official `dsh plugin --profile web add` command, organized per the official DSH plugin spec (host/client dual-half, dual client bundles)

  • File workbench with inline preview

    workspace fileslazy-loading directory tree + CodeMirror editor; inline preview for images, Markdown (Mermaid with strict safe rendering), HTML and PDF; drag-and-drop file/folder upload

    saves go through atomic `fs.write`; uploads write files into the workspace (media/preview routes are limited to the session cwd)
  • Real terminal (xterm.js + node-pty)

    shell configuration (shell / shellArgs settable in the settings page or cordis.patch.yml)real shell with disconnect-reconnect replay; optional `terminal_*` tools injected for the model

    spawns real shell processes on the host; optionally exposes terminal tools to the model
  • Service-first extension API (ctx.betterSidebar)

    third-party DSH plugins injecting the `betterSidebar` servicecustom sidebar tabs and file viewers registered via `registerTab` / `registerFileViewer`

  • Git panel + session-isolated dual workbench

    the session's git repository and open tabsreal diff with VSCode-style diff tabs, history, right-click stage / commit / restore; layout, tabs and panels persisted per session

    invokes the git CLI (stage/commit/restore) but never sets git identity

04適合誰?何時不該用?

適合

  • DeepSeek Harness (dsh web) users who want an IDE-grade sidebar UI without leaving the harness
  • DSH plugin developers building UI panels on top of a shared sidebar foundation

不適合

  • The current release requires DSH 0.1.0-rc.8 — all `@deepseek-ai/*` peer/dev dependencies are pinned to `^0.1.0-rc.8`, and DSH rc.7 or earlier cannot resolve the dependencies (upgrade DSH first).
  • The real terminal depends on node-pty prebuilt binaries; if your Node version has no prebuild (common on Windows), a compile toolchain such as VS Build Tools is required.

05相容性、維護與安全提醒

  • The current release requires DSH 0.1.0-rc.8 — all `@deepseek-ai/*` peer/dev dependencies are pinned to `^0.1.0-rc.8`, and DSH rc.7 or earlier cannot resolve the dependencies (upgrade DSH first).
  • Git integration has no push/pull/fetch, there is no file watcher (manual refresh needed), and inline file-open buttons in tool output cannot be intercepted.
  • The real terminal depends on node-pty prebuilt binaries; if your Node version has no prebuild (common on Windows), a compile toolchain such as VS Build Tools is required.
2026-08-072026-08-19v0.14.0

MIT · actively maintained (latest release v0.14.0, 2026-08-19)

06常見問題

如何把 dsh-better-sidebar 安裝到 DeepSeek Harness?

在 DSH 可正常執行(`dsh web`)的前提下執行 `dsh plugin --profile web add dsh-better-sidebar@latest`,然後硬重新整理瀏覽器(Cmd/Ctrl+Shift+R)即可看到側邊欄。client 變更熱載入無需重啟,僅 host 半更新時需要重啟。前置條件:Node.js ≥ 20、pnpm ≥ 10。

它是 DSH 原生外掛還是 MCP?

是原生 DSH 外掛:依 DSH 官方外掛規範組織(無 default 匯出、雙 client bundle),透過官方 `dsh plugin` 命令安裝到 web profile,執行期 `@deepseek-ai/*` 模組由 web profile 提供,不走 MCP。

對 DSH 版本有什麼要求?

目前版本相容 DSH 0.1.0-rc.8,全部 `@deepseek-ai/*` 相依套件升至 `^0.1.0-rc.8`。rc.7 及更早的 DSH 環境無法解析本版相依,需要先升級 DSH。

其他外掛能在側邊欄裡加分頁嗎?

可以。外掛自 v0.4.0 起公開 `ctx.betterSidebar` 服務,第三方外掛透過 `registerTab` / `registerFileViewer` 註冊側邊欄頁面與檔案預覽器,與內建的 7 個分頁、6 個 viewer 使用同一套 API。

有哪些已知限制?

Git 面板不支援 push/pull/fetch,沒有檔案 watcher(需手動重新整理);真實終端機依賴 node-pty,Windows 上若目前 Node 版本沒有預編譯二進位,需要安裝編譯工具鏈(VS Build Tools)。

08資料與來源

  • 作者聲明github.com50a888845fc6…

    dsh plugin --profile web add dsh-better-sidebar@latest

  • 作者聲明github.com50a888845fc6…

    插件按 DSH 官方规范组织(无 default 导出、双 client bundle),运行期不依赖 npm / checkout(`@deepseek-ai/*` 由 web profile 提供)。

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-21。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。