持久记忆
memory_set/get/delete/search
이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.
업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.
dsh-memory
A persistent, model-editable memory/notes store for DeepSeek Harness. It gives the agent a first-class way to durably write, fetch, and search "facts it wants to remember" that survive across sessions — something conversation-history search, todo_write, settings, and static skill docs do not cover.
It is a community dsh-plugin: an installable Cordis bundle shipping as plain ESM JavaScript (index.js + index.d.ts), so it installs from a git host or npm with no build step.
Records live in one storage domain (dsh_memory) routed through the built-in ctx.storageDomain seam — not hand-rolled files — so they persist under the deployment's configured backend (json/sqlite) and emit domain/changed for live UIs.
Why it is not redundant
| Existing capability | Difference from dsh-memory |
|---|---|
session_search / session_event_* | Only read past conversation; cannot store durable facts |
todo_write | Task-status tracking, not knowledge |
settings / credentials | Operator config, not agent-mutable knowledge |
skills | Static docs; the model cannot write to them |
goal / schedule | Objectives / reminders, not a knowledge store |
| MCP memory server | Requires an external server/account; this is a lightweight built-in |
Tools
| Tool | Purpose |
|---|---|
memory_set | Durably upsert a fact/note under a stable key (with optional tags). |
memory_get | Read one entry by key, or list all when the key is omitted. |
memory_delete | Delete an entry by key (idempotent). |
memory_search | Case-insensitive substring search over key/value/tags, filterable by required tags. |
Example
user: From now on, don't touch public/ in this project.
model: memory_set key="project/convention" value="Do not modify public/" tags=["project","rule"]
→ [memory] saved "project/convention" (2 tags)
(next session)
user: Continue on that project.
model: memory_get key="project/convention" → "Do not modify public/" → works accordingly
Install
Install into a Harness profile. From a checkout:
dsh plugin --profile web add ./dsh-memory
or from this repository (no build step required — the package ships JavaScript):
dsh plugin --profile web add github:Amengclass/dsh-memory
The storage backend is provided by your deployment (web profiles mount
@deepseek-ai/dsh-storage-jsonwithbackend: jsonby default). This plugin only declares a storage domain, so no backend changes are needed.
Configuration
Schemastery-validated config, overridable from your profile patch:
| Key | Default | Meaning |
|---|---|---|
domainName | dsh_memory | Name of the storage domain (must match /^[a-z][a-z0-9_]*$/). |
maxItems | 1000 | Hard cap on stored entries. |
maxKeyLength | 120 | Max key length; longer keys are rejected. |
maxValueLength | 10000 | Max stored value length; longer values are rejected. |
- insert:
- id: dsh-memory
config:
maxItems: 500
Dependencies & license
- Runtime peer dependencies (provided by the harness's own node_modules):
@deepseek-ai/dsh-storage-domain,@deepseek-ai/dsh-tools,@deepseek-ai/schemastery,zod. - No runtime build toolchain; no Node addons.
- MIT licensed — see LICENSE.
Contributing / topic
Published under the dsh-plugin GitHub topic. PRs and issues welcome.
보안 및 설치 증거
이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.
공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.
저장소가 MIT 라이선스를 선언했습니다.
최근 180일 내 코드 업데이트가 있습니다.
재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.
검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.