jisi71/dsh-memories

Dual-ledger cross-session memory for DeepSeek Harness: auto-extracted long-term facts (MEMORY.md) + living project progress ledger (PROGRESS.md), recalled into every new session. Inspired by OpenAI Codex's memory pipeline.

Project Overview项目介绍

dsh-memories is a cross-session memory plugin for DeepSeek Harness that maintains two ledgers per project: a long-term facts file (MEMORY.md) and a progress file (PROGRESS.md). On each new session, it auto-extracts and consolidates recent session content via LLM, then injects the result into the system prompt. Use it when you need persistent project context, user preferences, and task state across conversations without re-briefing. Caveat: extraction reads message text only (no tool payloads), and prompts are currently Chinese-oriented—English variants are welcome via PR.

dsh-memories 是 DeepSeek Harness 的双账本跨会话记忆插件。核心能力是自动从最近会话抽取事实与进度,经 LLM 合并去重后写入 .dsh/memories/MEMORY.md 与 PROGRESS.md,并在每个新会话的系统提示中自动注入,无需重新简报。提供 remember/update_progress 模型工具与 /remember /memories /progress 命令供主动管理。适用于需要长期保留项目约定、用户偏好和任务进度的多会话协作。注意:抽取仅基于消息文本(不包含工具负载),当前提示偏中文,英文建议提 PR 贡献。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 dsh-memories

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

READMEREADME

dsh-memories

中文说明

Dual-ledger cross-session memory for DeepSeek Harness.

Inspired by the memory pipeline of OpenAI's open-source Codex agent, dsh-memories gives every new session in a project two living ledgers:

Ledger File Answers
Long-term facts .dsh/memories/MEMORY.md "What are this project's conventions, the user's preferences, past pitfalls?"
Project progress .dsh/memories/PROGRESS.md "Where are we? What's done? What's in progress? What's next?"

Both are maintained automatically and recalled into the system context of every new conversation — no re-briefing required.

Features

  • Automatic extraction — on each new session (throttled to once per 30 minutes), recent sessions from the same workspace (last 14 days, up to 2 per run) are summarized by an LLM into:
    • stable facts in four fixed categories: preference / project / environment / lesson
    • progress movements: completed / doing / next
  • Strict no-op gate — one-off task details, code dumps, and secrets are never recorded; sessions with nothing worth keeping produce nothing.
  • LLM consolidation — drafts are merged and rewritten into clean, deduplicated, sectioned ledgers (with automatic .bak backups).
  • Recall injection — ledger contents ride along in the system prompt of every new session (inline when small, with a file pointer when large).
  • Decay — consolidation drops stale entries (30 days unconfirmed) unless marked pinned.
  • Model tools & slash commands — remember / update_progress tools let the agent write proactively; /remember, /progress, /memories give humans direct control.
  • Failure-safe — LLM failures leave no trace in state; affected sessions are retried automatically next round.

Requirements

A DeepSeek Harness deployment that provides the standard host-plane services:

fs · llm · sessionQuery · systemPrompt · tools · commands · sandboxPolicy

(all ship with the default dsh-base bundle; tested on dsh 0.1.0-rc.9)

Install

Option 0 — one line via dsh plugin add (recommended)

dsh plugin --profile web add dsh-memories

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-skills-manager-plus 下一个 Next dsh-session-notify →