MacilyDots/dsh-session-inherit ↗★ 0

dsh-session-inherit

从旧会话中提取任务、文件和待办并继承到新会话 适合长会话接力:从日志提取任务、近期指令、文件和待办,预览编辑后交给新会话继续。

套件
dsh-session-inherit
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月9日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MacilyDots/dsh-session-inherit

3. 涉及的文件(绝对路径) ← 带出现次数,按最近使用排序

Usage

  1. 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.readSession and does not activate an agent.
  2. Click Inherit.
  3. 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.
  4. 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