deepseek-memory
Curated long-term memory for DeepSeek Harness: two tiers of small plain-text facts, memory tools, per-request injection, and after-turn consolidation. 适合需要智能体跨会话记住个人偏好或项目背景信息的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:RocoFish/deepseek-memoryREADME
Read the full README ↗Configuration
Every key can be overridden in a profile's cordis.patch.yml by targeting the
memory row:
- id: memory
config:
maxEntries: 80
consolidation: always
| Key | Default | Meaning |
|---|---|---|
user | true | Enable the user-level tier. |
project | true | Enable the project-level tier. |
maxEntries | 50 | Maximum entries per tier. |
maxEntryChars | 500 | Maximum characters per entry. |
injectChars | 4000 | Maximum characters of memory injected into one request. |
tools | true | Register the memory tools. |
consolidation | gated | off, gated, or always. |
minTurnsBetweenRuns | 1 | Minimum closed turns between consolidator runs in one session. |
keepHistory | true | Keep the previous revision of each store in history/. |
consolidationSubagentProvider | in-process | Registered subagent provider the consolidator child runs on. A provider name, not a model route. |
consolidationRouteProvider | — | Provider route for the fallback path, used only when no subagent provider is mounted. Omit to reuse the session's own logged route. |
consolidationRouteModel | — | Model id paired with consolidationRouteProvider. |
consolidationTimeoutMs | 120000 | Wall-clock cap for one consolidation run. |