MacilyDots/dsh-session-inherit ↗★ 0
dsh-session-inherit
Inherit a long DeepSeek Harness session into a clean one: adds an "Inherit" row to the session "..." menu, mechanically extracts concrete anchors (task, recent instructions, touched files, commands, todos) from the source session log without calling an LLM, creates a brand-new session in the same workspace and sends that handoff as its first message. 适合长会话接力:从日志提取任务、近期指令、文件和待办,预览编辑后交给新会话继续。
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MacilyDots/dsh-session-inheritREADME
Read the full README ↗3. 涉及的文件(绝对路径) ← 带出现次数,按最近使用排序
Usage
- Hover any session in the sidebar and click the "…" at the end of the row.
Any session works, including cold ones — reading goes through
sessionQuery.readSessionand does not activate an agent. - Click Inherit.
- A preview opens: source session info on top (title / turns / files / commands / todos), the editable handoff in the middle, and a checkbox at the bottom.
- Under
## 8. 下一步, write what you want done next — the more specific the better (name the file, name the single action) — then click "创建并继承" (Create and inherit).
The new session opens automatically, titled 继承: , with the same working
directory, model route, and agent preset as the source session.
The "start working immediately" checkbox is on by default: the handoff is sent through
sessionController.prompt as a normal user message and work begins right away. Unchecked,
it is written straight into the session log instead (session:append) — recorded but not
triggered, so you can say what to do once you open it.
Configuration
Override in the profile's cordis.patch.yml (all optional):
- id: session-inherit
config:
enabled: true # false = register nothing at all
recentUsers: 6 # how many recent user instructions to include (1–50)
startByDefault: true # default value of the preview checkbox
cacheTtlMs: 120000 # reuse one log read between preview and commit; 0 = no cache