dsh-memory-note
Agent 与会话 活跃维护

dsh-memory-note

DecarbonizedGlucose/dsh-memory-note

轻量本地跨会话记忆插件,无需云端存储即可跨会话保留完整对话上下文关联,部署零额外依赖,启动后自动同步记忆内容,使用简单无冗余配置。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
Go
主要语言
None
开源协议
247 KB
仓库大小
28 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:DecarbonizedGlucose/dsh-memory-note
git clone https://github.com/DecarbonizedGlucose/dsh-memory-note.git
git clone git@github.com:DecarbonizedGlucose/dsh-memory-note.git
README.md main

dsh-memory-note

English | 中文

A lightweight, local, cross-session memory core for DeepSeek Harness: a
one-shot Go executable plus a thin TypeScript adapter bundle.

DeepSeek Harness -> adapter (bundle) -> Go core -> SQLite

Quick start

Requirements: go, pnpm, and dsh on PATH.

Unix-like (Linux / macOS / BSD):

git clone https://github.com/DecarbonizedGlucose/dsh-memory-note
cd dsh-memory-note
scripts/install.sh [profile]    # default profile: web

Windows (PowerShell):

git clone https://github.com/DecarbonizedGlucose/dsh-memory-note
cd dsh-memory-note
.\scripts\install.ps1 [-Profile web]

The install script builds the Go core into GOBIN, builds the adapter bundle,
and registers it into the profile via dsh plugin ... add link:.

After installing, make sure your GOBIN ($(go env GOPATH)/bin) is on PATH
and restart the profile (dsh --profile <name>) so the tools load.

Uninstall:

scripts/uninstall.sh [profile]         # Unix-like
.\scripts\uninstall.ps1 [-Profile web] # Windows

The uninstall script removes the bundle and the core binary, then asks whether
to delete the whole memory-data directory (after hard safety checks — it never
deletes a directory that is not clearly this tool's data directory).

Usage

One invocation runs exactly one subcommand:

dsh-memory-note <subcommand> '<json-request>'
  • Workspace: workspace-resolve, workspace-register, workspace-rebind,
    workspace-clear, workspace-delete
  • Memory: memory-search, memory-list, memory-get, memory-create,
    memory-update, memory-supersede, memory-invalidate, memory-delete
  • Internal: version, help

The full JSON contract is in
doc/en/protocol-v1-proposal.md.

Storage layout

DSH_MEMORY_NOTE_HOME/               # default: see platform below
    meta.db                         # metadata
    memory/
        workspace-WID-memory.db     # one database per workspace
  • Unix-like (Linux / macOS / BSD): ~/.local/share/dsh-memory-note
  • Windows: %LOCALAPPDATA%\dsh-memory-note (fallback
    %USERPROFILE%\AppData\Local\dsh-memory-note)

Override with DSH_MEMORY_NOTE_HOME.