편집자 노트

avaritiachaos/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.

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

@shion-lab/dsh-plugin-memory

npm version License: MIT

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 (紫苑).


🌟 Why 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 (提炼自伴随式智能体「紫苑」实战记忆体系):

  • 🛡️ Tier 1: MemoryGuard (Red-light Anti-Pollution Gate):
    • Strictly blocks stack traces (Traceback...), test runner output (pytest PASSED/FAILED), diff blocks, and API secrets (sk-...) from polluting memory.
  • ⚖️ Tier 2: MemoryConflictDetector (Subject & Polarity Resolution):
    • Automatically identifies and resolves contradictory rules on the same subject (e.g. forbid tailwind vs require tailwind), archiving outdated rules and preventing split-brain directives.
  • 📝 Tier 3: Git-Tracked Markdown Knowledge Base (.dsh/MEMORY.md):
    • Human-in-the-loop, version-controlled repository conventions with [✔ Verified] test-passed badges.
  • 🧠 Tier 4: Dense Vector Hybrid Vitality Engine (.dsh/memory_store.json):
    • Dense Vectors: Cosine similarity semantic search (OpenAI / Ollama).
    • Recency Decay: 30-day half-life exponential decay.
    • Frequency Reinforcement: Automatically reinforces frequently accessed wisdom.
    • Dream Consolidation (dream()): Background clustering and duplicate merging.

📦 Installation

npm install -g @shion-lab/dsh-plugin-memory

🚀 Quick Start

Mode A: Lightweight Zero-Config (Markdown-only)

Add to cordis.yml:

plugins:
  "@deepseek-ai/dsh": {}
  "@shion-lab/dsh-plugin-memory":
    storagePath: ".dsh/MEMORY.md"
    autoRecall: true
    maxRecallChars: 3500

Mode B: Full Semantic Hybrid Vector Engine (with Ollama or OpenAI embeddings)

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

🛠️ API & Tool Calling Reference

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

📄 License

MIT © Shion Lab

REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

저장소가 MIT 라이선스를 선언했습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.