says693/dsh-log-memory

一个抽象娱乐性插件,许多功能是错误的,但有点乐子,故此发出,主要功能是在dsh每次开启时,与使用中,隔一段时间提醒保存当前聊天记录,鱼话版主要考虑到跨设备办公,可以直接将另外一台设备的聊天记录直接喂给另外一台设备,人话版主要是想做

Project Overview项目介绍

dsh-log-memory is a native plugin built exclusively for DeepSeek Harness (DSH), designed to back up DSH session logs and remind users of scheduled backups. You can install it easily via the DSH command line by running dsh plugin --profile web add github:says693/dsh-log-memory, then restart DSH to activate it. Alternatively, you can install it manually by copying the plugin folder to your DSH profile dependencies directory, then updating the profile's package.json to add the plugin to dependencies and the bundle list. After installation, the first time you open the DSH web interface, a setup guide will pop up automatically.

This plugin is intended for all DSH users who want to protect their conversation history from accidental deletion, file corruption, or failed format migrations. Every time you open the DSH web interface, the plugin will pop up a guard panel unless you have muted reminders for the current day. You can adjust your reminder interval anywhere from 10 minutes to 3 hours, choosing between preset intervals or using a slider to set a custom value, and your setting is saved immediately and persists across DSH restarts. You can also browse and select your backup folder directly in the pop-up, no need to manually type the absolute path.

The plugin is released under the open source MIT license, and it only uses Node.js built-in modules like fs, crypto, os, and path, so it has no third-party dependencies at all. All operations are done locally on your machine, the plugin does not connect to any external network and does not report any user data, so it is completely safe to use. It supports two backup formats: a raw compressed version that can be used to restore your sessions directly to DSH, and a human-readable text version that lets you read your conversation history without opening DSH. Each format maintains its own incremental backup index, so only changed files are copied on each backup run.

这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,核心功能是为 DSH 的会话日志提供自动增量备份和定时提醒。每次用户打开 DSH 的 Web 界面,插件会立即弹出守护面板,用户可在面板内完成备份操作、调整提醒间隔、选择备份文件夹、切换两种备份格式。用户可通过 dsh 命令行一键安装,也可手动复制文件修改配置完成安装,安装后重启 DSH即可使用。

该插件面向所有需要防止会话日志误删、损坏或格式迁移出错的 DSH 用户。首次运行后会自动引导用户设置备份文件夹,支持弹窗内点选浏览文件夹,无需手动输入路径。用户可设置 10 分钟到 3 小时之间的提醒间隔,既可以选择预设档位,也可以通过滑动条自由调整,到达设定时间后会提醒用户执行备份。

该插件采用 MIT 许可证开源,仅依赖 Node.js 内置模块,无任何第三方依赖。所有备份操作都在本地完成,不联网也不上传任何用户数据,符合安全边界要求。插件支持两种备份格式,一种是可用于恢复的原始压缩包,另一种是可直接阅读的文本格式,各自维护独立增量索引。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:says693/dsh-log-memory

把 says693/dsh-log-memory 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-log-memory 🐋

简体中文 | English

License: MIT DSH Plugin Version

DSH(Deepseek Harness)插件:打开 Web 即弹窗守护会话日志——弹窗里能备份、能调提醒间隔、能选备份文件夹。

会话日志是和 AI 助手的所有对话记忆——文件损坏、误删、格式迁移翻车时,一份独立备份就是救命的。

功能

  • 🚪 打开 Web 即弹窗:每次打开 DSH 界面立即弹出守护面板(勾选「今日不再提醒」后当日不再打扰)
  • 💾 弹窗内询问是否备份:「立即备份到文件夹」一键把 ~/.dsh/sessions 下所有 session.jsonl / session.jsonl.zstd 增量复制到备份文件夹(按「路径:大小:mtime」跳过未变化文件,完整保留 <工作目录根>/<会话 id>/ 目录结构,索引持久化)
  • ⏰ 弹窗内设定提醒时间:预设档(10 分钟 / 30 分钟 / 1 小时 / 2 小时 / 3 小时)+ 滑杆自由微调,范围 10 分钟 – 3 小时,改动即保存并立即重排定时器,重启不丢
  • 🎚️ 备份格式二选一(双钮自由切换):
    • 🐟 鱼话版:原始 .zstd 压缩包,机器格式,可用于恢复
    • 🧑 人话版:每个会话渲染成可直接阅读的 .txt 聊天记录(标题/时间/token 用量档案头 + 按轮次排版的用户消息、助手思考与正文、工具调用与结果)
    • 两种格式各自维护独立增量索引,切换后首次备份为该格式全量,之后恢复增量;选择持久化
  • 📁 首次安装引导:安装后的第一个弹窗会要求确认/填写备份文件夹(绝对路径),运行期间也可随时在弹窗里修改;支持 「📁 浏览…」弹窗内点选(服务端列目录实现的文件夹浏览器:上一级/子目录点选/粘贴路径跳转,无需手填)
  • 📅 今日不再提醒:按北京时间自然日静音,跨天自动恢复
  • 🔒 安全边界:HTTP 路由仅接受同源 POST;备份是纯本机文件复制,不联网、不上报任何数据

安装

方式一:dsh 命令安装(推荐)

dsh plugin --profile web add github:says693/dsh-log-memory

安装后重启 DSH(Deepseek Harness EAC)。首次打开 Web 即弹出引导面板。

可运行 dsh --profile web --dump-config 确认插件已进入最终配置;需要改源码时,克隆仓库后在仓库目录运行 dsh plugin --profile web add .。

方式二:手动安装

  1. 把本文件夹复制到 DSH 的 profile 依赖目录:

    C:\Users\<你>\.dsh\profiles\web\node_modules\dsh-log-memory\
    
  2. 编辑 C:\Users\<你>\.dsh\profiles\web\package.json:

    在 dependencies 中加入:

    "dsh-log-memory": "file:<本文件夹的绝对路径>"
    

    在 dsh.profile.bundles 数组末尾加入:

    "dsh-log-memory"
    
  3. 重启 DSH。首次打开 Web 即弹出引导面板。

配置

提醒间隔与备份文件夹优先在弹窗里设置(持久化于 <DSH_HOME>/profiles/<profile>/log-memory.json)。cordis.patch.yml 里的 config 仅作为初始默认值:

键 默认值 说明
intervalMinutes 30 初始提醒间隔(分钟),需在 10–180 内
backupDir '' 初始备份文件夹(绝对路径);留空使用 <用户主目录>/dsh-log-memory-backups
backupMode 'fish' 初始备份格式:fish(鱼话版 .zstd)/ human(人话版 .txt)
debug false true 时:启动 20 秒后先弹一次提醒,并开放 POST /ds-log-memory/test-remind

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-edit-resend 下一个 Next dsh-feishu-bridge →