MemoryIt/dsh-trail-plugin0

dsh-trail-plugin

Cordis plugin for the DeepSeek Harness (dsh-trail): Session Tree / History Index — a navigable history index over the append-only session log, with jump/view and fork-continue via the official sessions.fork.

包名
dsh-trail-plugin
版本
0.1.0
许可证
MIT
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MemoryIt/dsh-trail-plugin

使用

安装并重启后,进入任意会话,左侧即是「历史索引」:

  • 节点行:每个逻辑节点对应一轮对话,显示摘要;行尾「续写」按钮在鼠标悬停时出现。
  • 跳转:点击节点行,聊天流自动滚动到该轮(目标在未加载的历史里时自动加载更早 内容;目标无独立气泡时定位到邻近内容;失败会给出原因提示)。
  • 续写:悬停节点行,点「续写」,从该节点 fork 出子会话并自动打开。
  • 分叉切换:有分叉的节点行首显示数字角标,点击展开共享会话下拉(子会话摘要 + 切换),可跳去任意分支查看/续写。
  • 拖宽 / 折叠:拖动左栏右缘调整宽度(240–480px);点左栏右上角 `` 展开。宽度与折叠状态会被记住。

配置

插件配置通过 profile 的用户层 patch($DSH_HOME/profiles//cordis.patch.yml) 覆盖。可配置项:

字段默认值说明
enabledtrue是否启用插件
labeldsh-trail日志与标识前缀

示例(覆盖同 id 行时需要写全其余字段):

- id: dsh-trail-plugin
  name: dsh-trail-plugin
  config:
    enabled: true
    label: my-trail