DSH Plugin Store
Back to home

Aik358

dsh-auto-memory

DSH 自动记忆插件:三层记忆(用户级/项目笔记/每日日志)自动注入与检索、每日反思、可视化面板与设置页,支持继承其他 AI 工具的历史记忆。An auto-memory plugin for the DeepSeek Harness Web GUI: three-layer memory (user-level / project notes / daily logs) with automatic injection and retrieval, daily reflections, a visual panel and settings page, and inheritance of memories from other AI tools.

Stars
1
Language
JavaScript
Created
Aug 14, 2026
Updated
Aug 14, 2026
Other
GitHub repoHomepage

Introduction

dsh-auto-memory — DSH Auto Memory Plugin / DSH 自动记忆插件

An auto-memory plugin for the DeepSeek Harness Web GUI: three-layer memory (user-level / project notes / daily logs) with automatic injection and retrieval, daily reflections, a visual panel and settings page, and inheritance of memories from other AI tools.

DSH Web GUI 的记忆插件:三层记忆(用户级 / 项目笔记 / 每日日志)自动注入与检索、每日反思、可视化面板与设置页,支持继承其他 AI 工具的历史记忆。

English | 中文版


Features

LayerLocationDescription
User-level memory~/.dsh/memory/MEMORY.mdCross-project rules & preferences
Project notes{workspace}/.dsh-memory/MEMORY.mdProject conventions & decisions
Daily logs{workspace}/.dsh-memory/YYYY-MM-DD.mdAppend-only work log
Reflections{workspace}/.dsh-memory/reflections/YYYY-MM-DD.mdDaily reflection, auto-prompted
  • Auto injection: injects a <memory_system> block into every system prompt (user rules + project notes + recent reflections + recent N days of log tails + writing discipline)
  • Daily reflection: when yesterday has logs but no reflection, the agent presents one at session start
  • Agent tools: memory_log / memory_note / memory_user / memory_recall / memory_external / memory_maintain / memory_status / memory_reflect
  • GUI: sidebar 「Memory」entry → floating panel (Overview / Logs / Notes / Reflections / Connect / Search); Settings page (Settings → Auto Memory)
  • UI language: switch between 中文 / English in Settings → Auto Memory → UI language
  • External memory inheritance: import memories accumulated by other AI tools (CodeBuddy / Claude Code / Codex / project convention files)

Installation (one command)

Prerequisite: install DeepSeek Harness (dsh) and start dsh web at least once.

Run in the profile directory (~/.dsh/profiles/web):

cd ~/.dsh/profiles/web
pnpm add @a9i5k4/dsh-auto-memory

Then edit package.json in that directory and append to the dsh.profile.bundles array:

"@a9i5k4/dsh-auto-memory"

Restart dsh web to activate (the 「Memory」entry appears in the sidebar).

No pnpm? Use npm: npm install @a9i5k4/dsh-auto-memory


AI-Era Installation (copy-paste for your AI)

It's the AI era — just copy the sentence below to your AI assistant (DeepSeek / Claude / Codex etc.) and it will do the installation for you.

Install the npm package @a9i5k4/dsh-auto-memory in the DeepSeek Harness web profile
directory ~/.dsh/profiles/web (run "pnpm add @a9i5k4/dsh-auto-memory" or "npm install @a9i5k4/dsh-auto-memory"),
append "@a9i5k4/dsh-auto-memory" to the dsh.profile.bundles array in package.json,
then restart dsh web to activate the plugin.

Configuration

Defaults (JSON file ~/.dsh/dsh-auto-memory.json):

{
  "userMemoryDir": "~/.dsh/memory",
  "projectMemoryDir": ".dsh-memory",
  "injectEnabled": true,
  "injectBudgetChars": 2400,
  "recentDaysInjected": 3,
  "reflectEnabled": true,
  "reflectStyle": "auto",
  "locale": "zh"
}

Adjustable in the GUI (Settings → Auto Memory), including the UI language (zh / en).


Structure

  • lib/index.js — Host half: engine, injection, tools, routes (zero runtime deps, Node built-ins only)
  • lib/client.js — Browser half: memory panel + settings page (built-in zh/en i18n)
  • cordis.patch.yml — Plugin row (auto-memory)

Limitations

  • Memory files are plain-text Markdown; no secrets stored unless explicitly requested.
  • memory_recall session search depends on the deployed session-query index; without it, only local search works.
  • Plugin-set changes require a dsh restart.

Release Info