dsh-statecore
Native memory for DeepSeek Harness — auditable facts with evidence chains, powered by StateCore
AI 분석
核心用途是为 DSH 引入结构化、可追溯的事实记忆库。适合需要 Agent 长期记住准确事实、并能提供记忆来源凭证的严肃工作场景。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yul761/dsh-statecoreConfiguration
All fields live under the mounted plugin's config: in statecore.cordis.yml (see the shipped file for the commented defaults).
| Field | Default | Description |
|---|---|---|
dataDir | ~/.statecore | Embedded SQLite store directory. Ignored when url is set. Shared with statecore-mcp's own default. |
url | unset | Talk to a self-hosted StateCore deployment over HTTP instead of the embedded backend. Unlocks Postgres/pgvector semantic retrieval. |
httpUserId | local | User id sent on every HTTP backend request. Ignored unless url is set; this plugin has no multi-user concept beyond this one value. |
injectBudget | 4000 | Characters of recalled memory (digest + facts) injected per turn. The rendered wrapper adds roughly 100 more characters on top, unbounded by this field. |
inject | true | Fold recalled project memory into the model context every step. |
ingest | true | Auto-ingest session messages into memory. |
digest | true | Run digest passes over ctx.llm. false means this plugin never calls ctx.llm at all, and scrubs the engine's own env-derived digest gate so an ambient FEATURE_LLM/API key in the host process can't open it either. |
digestOnCompaction | true | Demand an immediate digest pass when the host compacts a session, so the shadowed conversation is distilled at the moment its raw form leaves the model's view instead of waiting for digestThreshold. Ignored when digest is false. |
digestThreshold | 20 | Pending ingested events before a digest pass runs. The embedded engine also runs one startup catch-up pass per scope, at threshold 1, when a backend first initializes — independent of this field, and only for scopes that already have pending events. |
digestProvider | unset | Pin the digest pipeline's llm provider. Must be set together with digestModel. Unset resolves to whichever provider registered first. |
digestModel | unset | Pin the digest pipeline's llm model id. Must be set together with digestProvider. |