前言¶
DSH 的生態強調「一切皆插件」。社區目錄是獨立站點,與 DeepSeek / 幻方沒有官方從屬關係。對於經常使用 DeepSeek Harness(dsh)Web UI 的開發者來說,會話整理是一個常見需求:把會話移動到目標文件夾、徹底刪除某個會話、給會話生成一個更合適的標題。
dsh-session-move 是 reinocheong 維護的 DSH 客戶端插件,當前版本爲 0.1.2,採用 MIT 許可證。
這是什麼¶
dsh-session-move 是一個面向 dsh 的 Web/client 插件,由 host 和 browser 兩部分組成。它的 dsh.client.platform 爲 web,並注入 @deepseek-ai/dsh-client-runtime。
該插件提供三類會話操作:移動、刪除、AI 重命名。每個操作也暴露爲 agent tool,便於在智能體流程中調用。
核心功能¶
移動會話¶
支持兩種交互方式:
1、在側邊欄選中一個會話行,拖到另一個文件夾標題上。
2、打開會話的 ... 菜單,選擇 Move to folder…,再選擇目標文件夾並確認。
刪除會話¶
打開會話的 ... 菜單,選擇 Delete session。界面會出現風險確認框,需要勾選 I understand the consequences 後確認。這個操作用於永久刪除會話。
AI 重命名¶
打開會話的 ... 菜單,選擇 AI Rename。該操作用於總結整段對話,並基於採樣內容生成會話標題。
Agent tools 與 HTTP endpoints¶
插件暴露以下 agent tools:
| Tool | 用途 |
|---|---|
workbench_session_move |
移動會話 |
workbench_session_delete |
刪除會話 |
workbench_session_rename_ai |
AI 重命名會話 |
插件還暴露以下 HTTP endpoints:
/__sessionmove/info/__sessionmove/move/__sessionmove/delete/__sessionmove/rename-ai
安裝與啓用¶
安裝前確認運行環境滿足 Node.js >=22.19.0。相關 peer dependencies 包括:
@deepseek-ai/dsh-tools@deepseek-ai/dsh-session-title-llm@deepseek-ai/dsh-session-title
使用 README 中的安裝命令:
dsh plugin --profile web add https://github.com/reinocheong/dsh-session-move/archive/refs/tags/v0.1.2.tar.gz
安裝後重啓對應 profile。對於 systemd 管理的安裝,可以執行:
sudo systemctl restart dsh
如果是手動安裝,還需要在 profile 的 cordis.patch.yml 中註冊插件:
- insert:
- id: session-move
name: dsh-session-move
典型用法¶
下面是幾個可對照文檔完成的步驟。
用菜單移動會話¶
1、打開一個會話的 ... 菜單。
2、選擇 Move to folder…。
3、選擇目標文件夾。
4、確認移動。
用菜單刪除會話¶
1、打開一個會話的 ... 菜單。
2、選擇 Delete session。
3、勾選 I understand the consequences。
4、確認刪除。
用菜單 AI 重命名¶
1、打開一個會話的 ... 菜單。
2、選擇 AI Rename。
3、等待生成新的會話標題。
配置 AI 重命名¶
如果需要固定 AI 重命名使用的 provider、model 等參數,可以在插件配置中設置 renameAi。已給出的配置項包括:
- id: session-move
name: dsh-session-move
config:
renameAi:
provider: <provider>
model: <model>
targetWords: <number>
targetCjkCharacters: <number>
maxInputBytes: <number>
maxOutputTokens: <number>
timeoutMs: <number>
這裏的 <provider>、<model> 和數字項請按當前 dsh 環境支持的值填寫;已覈實材料中未給出具體示例值,本文不替讀者假設。
適用場景與注意¶
適合以下情況:
- 經常需要在 dsh Web UI 中整理會話位置。
- 需要徹底刪除某個會話。
- 希望爲會話生成一個更概括的標題。
- 希望把移動、刪除、AI 重命名納入 agent 工具調用。
使用前注意:
1、刪除操作是永久性操作,執行前確認會話不再需要。
2、插件會以當前 dsh 進程權限運行,並且會改變會話組織狀態;安裝前應檢查源碼、依賴和 MIT 許可證。
3、確認 Node.js 版本不低於 22.19.0,並滿足相關 peer dependencies。
4、如果從 GitHub archive 安裝,建議使用 README 中的固定版本鏈接;安裝後重啓 profile。
鏈接¶
- 社區目錄:https://www.skillhub.cn/plugins/reinocheong/dsh-session-move
- GitHub:https://github.com/reinocheong/dsh-session-move