zeropointnine/dsh-compact-and-branch ↗★ 0
dsh-compact-and-branch
DSH /compact-and-branch 命令插件,支持将当前会话规范化压缩并分支到全新的延续会话中。
AI 分析
核心用途是通过压缩历史并开启新会话来解决长对话 Token 溢出问题。适合需要长期、连续进行复杂任务对话的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zeropointnine/dsh-compact-and-branch說明文件
閱讀完整 README ↗Usage
In any session, type:
/compact-and-branch
No arguments. The current session is compacted through DSH's canonical
/compact machinery, then a fresh root session is created in the same
workspace and preset with the same model selection, carrying the compacted
context; DSH opens it in the browser. The compacted source session stays
independently resumable. In the fresh session, the imported history is
collapsed behind a native DSH notice row, leaving only live conversation
visible.