huajuan2024/dsh-session-manager0

dsh-session-manager

用于列出、查看、删除和导出 DeepSeek Harness 会话历史记录的 DSH 插件

AI 分析

核心用途是集中管理 DSH 的历史会话。适合需要浏览会话列表、预览消息、删除无用记录或导出特定大小限制内会话的用户。

套件
dsh-session-manager
版本
0.1.5
授權
MIT
最近更新
2026年8月24日

安裝

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

Profile 配置

通过 dsh plugin --profile web add 安装 bundle 后,包内 cordis.patch.yml 提供默认 配置。需要覆盖时,在 ~/.dsh/profiles/web/cordis.patch.yml 中使用同一个 id:

- insert:
    - id: sessionManager
      name: dsh-session-manager
      config:
        sessionsRoot: ~/.dsh/sessions
        maxExportBytes: 10485760
        previewMessageLimit: 200

如果文件当前内容只有 [],必须用上面的列表替换 [],不能把列表追加在 [] 后面。 Harness 的后置 patch 会按 id 替换整份 config,因此覆盖时需要写出希望保留的全部字段。

检查最终组合结果:

dsh --profile web --dump-config

配置项

字段默认值说明
sessionsRoot~/.dsh/sessionsDSH 会话存档根目录
maxExportBytes10485760单次导出的字节上限(10 MiB),超过返回 too-large
previewMessageLimit200readHistory 单次返回的最大消息条数