dsh-thinking-language-zh
ayanJava111
deepseek harness思考过程中文插件
PROJECT TOPICS
PROJECT README
Industrial-grade 4-tier persistent memory, self-correction, and cognitive defense engine for DeepSeek Harness (
dsh).Featuring Git-tracked Markdown storage, dense vector semantic search, red-light pollution guards, polarity conflict detection, and half-life recency decay.
Distilled from the battle-tested memory dynamics of desktop companion AI system Shion (紫苑).
dsh-plugin-memory? / 为什么需要立体持久记忆与自省防护?By default, DeepSeek Harness operates in a stateless manner: once a session closes, all project-specific architectural rules, user preferences, and hard-earned debugging lessons are lost.
Furthermore, naive memory plugins suffer from memory pollution, hallucinations, and polarity conflicts (e.g. saving stack traces or conflicting rules).
@shion-lab/dsh-plugin-memory introduces a production-grade 4-tier cognitive architecture directly ported from companion agent practices (提炼自伴随式智能体「紫苑」实战记忆体系):
Traceback...), test runner output (pytest PASSED/FAILED), diff blocks, and API secrets (sk-...) from polluting memory.forbid tailwind vs require tailwind), archiving outdated rules and preventing split-brain directives..dsh/MEMORY.md):[✔ Verified] test-passed badges..dsh/memory_store.json):dream()): Background clustering and duplicate merging.npm install -g @shion-lab/dsh-plugin-memory
Add to cordis.yml:
plugins:
"@deepseek-ai/dsh": {}
"@shion-lab/dsh-plugin-memory":
storagePath: ".dsh/MEMORY.md"
autoRecall: true
maxRecallChars: 3500
plugins:
"@deepseek-ai/dsh": {}
"@shion-lab/dsh-plugin-memory":
storagePath: ".dsh/MEMORY.md"
topK: 6
embedding:
enabled: true
provider: "ollama" # or "openai-compatible"
apiBase: "http://localhost:11434"
model: "nomic-embed-text"
dimension: 768
remember(topic, content, options): Persists rule with red-light checks, conflict resolution, and optional { verified: true } certification.correct(topic, newContent, reason): Explicitly corrects or supersedes outdated knowledge, recording an audit trail.recall(query, topK): Hybrid RRF recall with verification bonus and recency decay.dream(): Consolidates duplicate fragments and optimizes memory budget.forget(topic): Deletes specified memory item.MIT © Shion Lab
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。