DSH Hub

kuanfu0430/dsh-sidebar-branch-chat

dsh-sidebar-branch-chat

UIWeb UI0 GitHub stars· updated 2026-08-26

Adds a Branch Chat tab to dsh-better-sidebar: independent archived sessions with a context digest and the same tools as the main agent.

Install

npx @deepseek-ai/dsh plugin --profile web add dsh-better-sidebar

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-sidebar-branch-chat DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-sidebar-branch-chat.svg)](https://dshhub.dev/plugins/dsh-sidebar-branch-chat)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from kuanfu0430/dsh-sidebar-branch-chat, cleaned of badges and images.

@kuanfu0430/dsh-sidebar-branch-chat

Adds a Branch Chat tab to dsh-better-sidebar: open an independent archived session from the current main chat, inject a head / middle / tail context digest, and run with the same tools as the main agent. Branch history stays in the branch session and does not appear in the main chat list.

dsh-better-sidebar 新增「分支對話」頁籤:從目前主對話開出獨立的封存 session,注入頭/中/尾脈絡摘要,並使用與主 agent 相同的完整工具。分支內容只寫進分支 session,不會進入主對話列表。

Runtime dependency / 執行期依賴

This plugin is a companion tab. It does not vendor or fork Better Sidebar.

本插件是 companion 頁籤,不 fork、不安裝第二份、不修改 Better Sidebar。

DependencyRoleawesome-dsh-plugin
omdsh-dev/DSH-better-sidebar (dsh-better-sidebar ≥ 0.11.0)Provides ctx.betterSidebar.registerTablisted as omdsh-dev/DSH-better-sidebar

Install Better Sidebar first. If the service or registerTab is missing, this plugin stays loaded but hides the Branch Chat tab and logs the missing capability.

請先安裝 Better Sidebar。缺少 service/registerTab 時,本插件仍會載入,但只停用分支頁籤並寫出缺少的能力。

The planned listing for this repository is in docs/awesome-dsh-plugin.yml. After it is merged into awesome-dsh-plugin, dsh-market can pick it up from the curated registry.

本倉預定上架條目見 docs/awesome-dsh-plugin.yml。合併進 awesome-dsh-plugin 後,dsh-market 會從精選目錄收錄。

Install / 安裝

# 1. Better Sidebar (already on the curated list / 已在精選目錄)
dsh plugin --profile web add dsh-better-sidebar

# 2. This plugin from GitHub / 從 GitHub 安裝本插件
dsh plugin --profile web add github:kuanfu0430/dsh-sidebar-branch-chat

Restart dsh web, then open the Branch Chat tab from the Better Sidebar tab strip.

重啟 dsh web,在 Better Sidebar 頁籤列開啟「分支對話」。

The root package.json declares dsh.bundle.patch plus cordis.patch.yml, so dsh plugin add can install it. There is no build step.

根目錄 package.json 已宣告 dsh.bundle.patchcordis.patch.yml,可直接用 dsh plugin add 安裝,無需編譯。

How it mounts / 掛載方式

  • Optional peer: dsh-better-sidebar >= 0.11.0. The profile must provide the single Better Sidebar instance.
  • All cross-plugin calls go through compat.js. Only the public ctx.betterSidebar.registerTab API is used. New behaviour is gated on capability membership, not on a guessed minor version.
  • Host half uses empty session + agents.create / resume. Branches are not subagents: the main chat gets no subagent lifecycle events, and the branch cannot hook back into the main session.

Features / 功能

Related plugins