WeiYe6/dsh-session-handoff ↗★ 1
dsh-session-handoff
Hand your long session over to a fresh one: /handoff summarizes the recent conversation with an LLM, creates a clean new session in the same workspace, injects the summary as its first message, and auto-opens it. The origin session is unchanged.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WeiYe6/dsh-session-handoff说明文档
阅读完整 README ↗Usage
Type in any conversation's input box:
/handoff # summarize the last 8 user messages (default)
/handoff 20 # summarize the last 20 (same as turns=20)
/handoff all # summarize every user message (same as turns=all)
What happens:
- A command card shows "summarizing…";
- An LLM produces the handoff document (goal / progress / decisions / files / next steps / open questions), which becomes the new session's first message;
- The new session auto-opens; the origin session stays intact and is linked back.
⚠️ Privacy: the recent conversation text (user + assistant messages in the requested window) is sent to the configured model to produce the summary.
Configuration
- id: handoff
name: dsh-session-handoff
config:
turns: 8 # user-message rounds to extract (1–50)
maxInputChars: 24000 # byte cap for the summary input (oldest dropped first)
maxTokens: 2000 # summary output budget
reasoningEffort: off # off (default, fast/cheap) | high | max | inherit
timeoutMs: 120000 # summary call timeout
# provider: deepseek-official # optional fixed model route
# model: deepseek-v4-flash # must be paired with provider
Without provider/model, the current session's latest logged model route
(session.requestHeader()) is used.