zeropointnine/dsh-compact-and-branch ↗★ 0
dsh-compact-and-branch
DSH /compact-and-branch command: canonical compaction into a fresh continuation session.
AI Analysis
核心用途是通过压缩历史并开启新会话来解决长对话 Token 溢出问题。适合需要长期、连续进行复杂任务对话的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zeropointnine/dsh-compact-and-branchREADME
Read the full 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.