opok-ops/dsh-mindforge0

dsh-mindforge

为 DeepSeek Harness 提供的加密 4 层终身记忆插件,由 MindForge 提供支持。

AI 分析

核心用途是为智能体提供加密的长期记忆存储与检索。适合需要智能体跨会话记住关键信息、进行反思和关联召回的任务,需先安装 MindForge。

套件
dsh-mindforge
版本
0.1.0
授權
MIT
最近更新
2026年8月15日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Usage

Model Tools (auto-registered on ctx.tools)

The model can call these tools directly:

ToolDescription
memory_addStore a memory (4-layer, encrypted)
memory_search6-way fusion search (vector + FTS5 + TF-IDF + fuzzy + expansion + rerank)
memory_contextToken-budget-aware context retrieval for prompt injection
memory_statsMemory store statistics
memory_recallSmart recall (search + association + layer-aware)
memory_reflectionMetacognitive analysis of memory themes and drift
memory_reinforceIdentify high-value decaying memories
memory_lineageTrace version history and audit events
graph_queryQuery the knowledge graph
rerank_searchQuery expansion + cross-encoder reranking

DSH Commands

/mindforge status              # Memory store statistics
/mindforge recall       # Smart recall top 5
/mindforge remember      # Store as permanent memory
/mindforge forget          # Delete a memory
/mindforge graph               # Knowledge graph overview
/mindforge search       # Full 6-way fusion search

Auto Context Injection

When injectOnStep: true (default), dsh-mindforge listens to agent/pre-step events and automatically injects relevant memories before each model turn:

  1. Extract keywords from the user's message
  2. Call MindForge memory-context for token-budget-aware retrieval
  3. Inject as a system message via agent.inject()

No configuration needed — works out of the box.