@dsh-external/dsh-memory
Codex-like persistent memory for DeepSeek Harness: auto-injected memory summary, raw memory tools, and per-session rollout summaries distilled into a bounded global memory file.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haitang1/dsh-memory说明文档
阅读完整 README ↗Configuration
| Key | Default | Description |
|---|---|---|
memoryDir | $DSH_HOME/memories | Memory directory (empty = default). |
maxBytes | 8000 | Byte budget of the injected summary. |
consolidateMaxBytes | 40000 | Byte budget of the consolidation input sent to the merge model. |
keepSummaryVersions | 20 | Previous summary versions retained for memory_rollback (0 disables history). |
rawArchiveMaxBytes | 200000 | Active raw file byte budget; oldest entries move to archive/ beyond it. |
autoSummarize | true | Distill finished turns into rollout summaries. |
summarizeProvider / summarizeModel | selected agent model | Model used for summarization. |
summarizeDebounceMs | 300000 | Minimum interval between summarizations of the same session (0 disables the debounce). |
consolidateEvery | 3 | Rollout summaries written before re-consolidating the global summary. |
summaryMaxTokens | 1500 | Max output tokens for turn summarization. |
consolidateMaxTokens | 3000 | Max output tokens for summary consolidation. |
llmRetries | 1 | Retries after a transient LLM failure. |
maxActiveSummaries | 4 | Maximum concurrent turn summarizations before new jobs are dropped. |
scopedMemory | false | Enable per-workspace memory scopes. |
redactSecrets | true | Redact credential-looking text from injected summaries. |
readOnlyScopes | [] | Scope keys whose write tools are blocked (global, exact ws-*/project-* keys, or * for all). |
embeddingBaseURL / embeddingApiKey / embeddingModel | empty | OpenAI-compatible /embeddings endpoint for vector:true; empty uses local hashed vectors. |
scopeMaxBytes | 2400 | Injected byte budget for the workspace summary when scopedMemory is enabled. |
seedFromAgentsMd | true | Seed the first summary from $DSH_HOME/AGENTS.md. |
The Web settings card (see below) edits maxBytes, consolidateEvery, autoSummarize, and seedFromAgentsMd live; all other keys are configured through the loader row or the memory: section of settings.yaml.