deepseek-memory
提供用户和项目双层级的纯文本长期记忆工具及请求注入机制。 适合需要智能体跨会话记住个人偏好或项目背景信息的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:RocoFish/deepseek-memory说明文档
阅读完整 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. |