rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lengfengng-tech/dsh-workspace-memories
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Per-workspace persistent memory for DeepSeek Harness (DSH) — a plugin that gives every workspace its own durable memory files, injects them into every session running in that workspace, and lets both you and the agent manage them.
DSH agents are stateless across sessions: everything a session "learns" — your project's decisions, conventions, hard-won debugging facts — lives only in that conversation's context and is gone when it ends. The built-in mechanism for durable knowledge is AGENTS.md, but it is a static, project-owned instruction file: the agent cannot update it on its own, and some things should not live in the project folder at all — server addresses and topologies, local environment quirks, machine-specific paths, personal working conventions. Anything under the project tree risks being committed to git by accident.
This plugin closes that gap with a small, explicit memory loop whose default storage is outside the project directory:
~/.dsh/workspace-memory/<workspace>/), never inside the repo. Plain Markdown you can read, diff, and back up. (An opt-in workspace storage mode keeps memories in <workspace>/.dsh/memory/ for teams who want them versioned alongside the code.)AGENTS.md, so a fresh session starts already "remembering".save_workspace_memory tool lets any session persist a decision, server detail, convention, or preference the moment you say "remember this" (pass scope: "global" for cross-project preferences).| Capability | Where |
|---|---|
| Browse / create / edit / delete memory files | Workspace Memory sidebar panel (switch workspaces or the global scope via the selector) |
| Ask the agent to remember something | Any session: "remember: …" → the agent calls save_workspace_memory |
| Automatic recall | Every session gets the global memory (all workspaces) followed by its workspace memory injected into its system prompt |
| Localized UI | The panel follows the app language in all eight DSH languages (中文 / English / 日本語 / Español / Français / Deutsch / Русский / Português), falling back to English for missing keys |
Works in every built-in agent preset (Standard, PTC, Minimal, Creator): the tool is registered in the root composition, and global tools are visible to all presets unless a custom preset opts out with a tools.restrict allow list — add save_workspace_memory to that list if so.
The panel selector's top entry, 🌐 Global — every workspace, addresses one cross-project memory directory at ~/.dsh/workspace-memory/_global/. It is seeded once with a blank preferences.md template (persona, style, communication, formatting) and never overwritten after that. Global memory sorts before workspace memory in the prompt, so project notes read as overrides of personal preferences.
Too lazy to fill four blank sections by hand? Just tell any session "帮我配置全局偏好" ("help me set up my global preferences") — the agent interviews you question by question and writes the file itself via save_workspace_memory with scope: "global".
The package is plain JavaScript with no build step, so every install channel works:
# from npm (once published)
dsh plugin --profile desktop add dsh-workspace-memories
# straight from GitHub (no build script needed — sources ship as-is)
dsh plugin --profile desktop add github:lengfengng-tech/dsh-workspace-memories
# from a local checkout
dsh plugin --profile desktop add ./dsh-workspace-memories
Or use the GUI: sidebar Plugins → Add plugin, paste a package name, GitHub address, or absolute local path, then Enable now.
Uninstall: the Plugins page, or dsh plugin --profile desktop remove dsh-workspace-memories.
.md memory (the extension is added when missing); select a file to edit, save, or delete it.storage: home (default, DSH data directory, outside the project) or storage: workspace (inside the project at directory, default .dsh/memory).Tool registration takes effect immediately on the host, but a model's visible tool list is assembled when each conversation turn starts:
ToolArgsMap) that does not yet contain save_workspace_memory — the model may conclude "there is no memory tool", or fall back to probing the tool by name through the code channel (which actually works, since dispatch goes through the live host registry).save_workspace_memory appears normally — no probing needed.Memory injection into the system prompt is attached when an agent is created (session start, resume after a restart, clear, or compaction); once attached, a session picks up changed memory files on its next step automatically.
Two storage modes, chosen by the plugin's storage config:
| Mode | Memory location | Use it for |
|---|---|---|
home (default) |
~/.dsh/workspace-memory/<workspace-key>/ — outside the project |
Machine-local or sensitive notes: server configs, environment quirks, personal conventions |
workspace |
<workspace>/.dsh/memory/ — inside the project |
Team-shared memories meant to be committed alongside the code |
~/.dsh/workspace-memory/ # default memory store
├── <workspace-key>/ # one subdirectory per workspace
└── _global/ # the cross-workspace global memory (panel: 🌐 Global)
dsh-workspace-memories/ # this plugin
├── package.json # bundle manifest (dsh.bundle.patch + dsh.client)
├── cordis.patch.yml # plugin row declaration
├── index.js # host: /api routes + prompt injection + the save tool
├── client.js # browser: sidebar entry + management panel
├── locale/ # panel copy + plugin-page meta, all eight DSH languages
├── icon.svg
├── selftest.mjs # host-logic self-test: node selftest.mjs
└── scripts/i18n-test.mjs # client dictionary check (8 languages, key sets, placeholders)
Safety constraints: the browser panel can only address registered workspaces by workspaceId (no arbitrary host paths); file names are strictly validated (no path separators, .., whitespace, or control characters); one file is capped at 1 MiB; prompt injection truncates each file to 32K characters and caps at 20 files.
link: dependency (local-path install does this): editing client.js hot-reloads in the page via the client HMR receiver; editing index.js (host code) requires a DSH restart to load the new module generation.node selftest.mjs (mocks the plugin context; covers routes, prompt rendering, tool writes, and validation failures); node scripts/i18n-test.mjs checks the eight-language dictionaries (key sets, placeholders).include:workspace-memory should be active; the client slot sidebar.panellist should list a workspace-memory occupant; save_workspace_memory should appear in the tool list.MIT — © 2026 lengfengng-tech
This is a community plugin built on DeepSeek Harness; it is not an official DeepSeek product. Naming follows the DSH brand guidelines.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、deepseek-harness。