haitang1/dsh-memory0

@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.

包名
@dsh-external/dsh-memory
版本
0.2.4
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haitang1/dsh-memory

Configuration

KeyDefaultDescription
memoryDir$DSH_HOME/memoriesMemory directory (empty = default).
maxBytes8000Byte budget of the injected summary.
consolidateMaxBytes40000Byte budget of the consolidation input sent to the merge model.
keepSummaryVersions20Previous summary versions retained for memory_rollback (0 disables history).
rawArchiveMaxBytes200000Active raw file byte budget; oldest entries move to archive/ beyond it.
autoSummarizetrueDistill finished turns into rollout summaries.
summarizeProvider / summarizeModelselected agent modelModel used for summarization.
summarizeDebounceMs300000Minimum interval between summarizations of the same session (0 disables the debounce).
consolidateEvery3Rollout summaries written before re-consolidating the global summary.
summaryMaxTokens1500Max output tokens for turn summarization.
consolidateMaxTokens3000Max output tokens for summary consolidation.
llmRetries1Retries after a transient LLM failure.
maxActiveSummaries4Maximum concurrent turn summarizations before new jobs are dropped.
scopedMemoryfalseEnable per-workspace memory scopes.
redactSecretstrueRedact credential-looking text from injected summaries.
readOnlyScopes[]Scope keys whose write tools are blocked (global, exact ws-*/project-* keys, or * for all).
embeddingBaseURL / embeddingApiKey / embeddingModelemptyOpenAI-compatible /embeddings endpoint for vector:true; empty uses local hashed vectors.
scopeMaxBytes2400Injected byte budget for the workspace summary when scopedMemory is enabled.
seedFromAgentsMdtrueSeed 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.