dsh-biomemory: Cross-Session Memory Plug-in for DeepSeek Harness

dsh-biomemory is a cross-session bio-inspired memory plugin for DeepSeek Harness (DSH), designed to address the issue of context loss in multi-turn tasks. It expands memory from individual logs into a structured management system through hierarchical storage, approval gating, semantic retrieval, memory metabolism, and audit snapshots. Built on SQLite and a local embedding model (bge-small-zh-v1.5), the plugin supports exact keyword, semantic vector, and hybrid retrieval, and automatically degrades to keyword retrieval when the model is unavailable. Core capabilities include frozen snapshot injection to reduce preference-guessing costs, manual approval and demotion strategies for important memories, and half-life decay, reference consolidation, and conflict surfacing via the "Dream" mechanism. Additionally, the plugin provides complete audit logs, backup recovery, and single-entry rollback functionality, with support for importing from Markdown.

Read More