dsh-doctor
asdf17128
Find what your DeepSeek Harness (dsh) patches silently broke — dead patches, config fields dropped by whole-config repla…
PROJECT TOPICS
PROJECT README
A DeepSeek Harness (DSH) Web plugin: a Git branch pill in the session header that shows the current branch of the session's workspace and lets you switch branches straight from the UI.
git checkout it; the pill updates immediately--dsw-* tokens, light/dark readydsh plugin --profile web add "github:mixin-ai/dsh-git-branch-switcher#main"
Then restart your Web profile:
dsh --profile web
The plugin is now listed under Settings → Plugins and the branch pill appears in the session header.
Alternative (source checkout):
git clone https://github.com/mixin-ai/dsh-git-branch-switcher
dsh web --patch ./dsh-git-branch-switcher/cordis.patch.yml
| Half | File | What it does |
|---|---|---|
| Host | lib/index.js |
gitBranch Typert Remote service (status / branches / checkout) running git through the shell service with the session's sandbox policy. Plain-JS Remote markers, no generated artifacts (SRC mode). |
| Client | lib/client.js |
Prebuilt __ModuleLoader__ bundle mounting the Remote contribution and rendering the header pill (session-scoped conversation.session.header.utilities slot). |
| Patch | cordis.patch.yml |
Inserts the dual-face plugin row into the Web profile. |
cwd (useSessions standard slot prop), so it always tracks the open session.dynamic/ contains the same feature as an in-session dynamic Cordis Plugin (the form the DSH Web UI's plugin authoring flow runs). See dynamic/README.md.
MIT
一个 DeepSeek Harness (DSH) Web 插件:在会话头部显示当前项目所在 git 分支的胶囊按钮,点击即可在界面里直接切换分支。
git checkout 切换,胶囊立即更新--dsw-* token,自动适配亮/暗主题dsh plugin --profile web add "github:mixin-ai/dsh-git-branch-switcher#main"
然后重启 Web profile:
dsh --profile web
插件会出现在「设置 → 插件」中,分支胶囊显示在会话头部。
源码方式(patch 覆盖层):
git clone https://github.com/mixin-ai/dsh-git-branch-switcher
dsh web --patch ./dsh-git-branch-switcher/cordis.patch.yml
| 半边 | 文件 | 职责 |
|---|---|---|
| Host | lib/index.js |
gitBranch Typert Remote 服务(status / branches / checkout),通过 shell 服务执行 git,沿用会话沙箱策略。纯 JS Remote 标记,无生成产物(SRC 模式)。 |
| Client | lib/client.js |
预构建 __ModuleLoader__ bundle:挂载 Remote 贡献并渲染头部胶囊(会话级 conversation.session.header.utilities 插槽)。 |
| Patch | cordis.patch.yml |
将双面插件行插入 Web profile。 |
cwd(useSessions 标准插槽属性),始终跟随当前打开的会话。dynamic/ 目录提供同功能的内存态动态 Cordis 插件源码(DSH Web UI 插件创作流程所用的形态),见 dynamic/README.md。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。