madage/dsh-self-improved

Long-term memory & self-evolving plugin for DSH: L0 capture → L1 memory extraction → L2 scene grouping → L3 user persona, auto recall injection, skill synthesis, fully local (SQLite FTS5 + jieba, optional vector recall).

dsh-self-improved adds the two capabilities it argues DSH lacks out of the box — cross-session memory and self-evolution. Memory: conversation key points (facts/preferences/events/instructions) are distilled into a local store and relevant memories are injected before each new turn. Self-evolution: memories are consolidated, decayed and corrected; successful workflows distill into reusable skills; the user persona keeps evolving. Architecture follows the four-layer TencentDB Agent Memory pyramid (L0 capture → L1 extraction → L2 scene grouping → L3 persona) on DSH-native services with a fully local SQLite store (FTS5 + jieba + sqlite-vec). Milestones M0–M6 are complete and deployed to a real web profile: extraction pipeline with strict JSON validation, hybrid keyword/vector recall (RRF), skill synthesis to dsh-skill, a settings panel with /memory command and memory browser, plus growth governance (caps/cleanup, nightly review default 22:00, 15-min maintenance-only loop, master switch).

Memory ★ 0 updated 2026-08-15
View on GitHub ↗

Install

dsh plugin --profile web add dsh-self-improved

npm dsh-self-improved 0.1.1 verified 2026-09-03 (npm owner madage == repo owner; repository field empty so ownership is owner-name-consistent). README primary install is the npm route: dsh plugin --profile web add dsh-self-improved — since 0.1.1 the package declares dsh.bundle so it auto-mounts as a profile layer (no manual cordis.patch.yml edits); restart dsh after installing. GitHub source snapshot route also documented.

Compatibility

DSH web profile; fully local SQLite store (FTS5 + sqlite-vec); reuses ctx.llm, session events, agent/pre-step injection, dsh-skill and storageDomain; no data uploaded.

Details

Recent updates

0.1.1 current on npm (verified 2026-09-03); changelog since 0.1.1: dsh.bundle auto-mount.

FAQ

Is the memory store local?
Yes — everything lives in a local SQLite store (FTS5 + sqlite-vec) under the harness storage domain; no data is uploaded anywhere.
What does 'self-evolution' actually do?
Memories are consolidated, decayed and corrected over time; successful workflows can be distilled into reusable dsh skills; the user persona is versioned and evolves with conversations.
Does it need manual config?
No — since 0.1.1 the package declares dsh.bundle, so dsh plugin add auto-mounts it as a profile layer; just restart dsh.

Alternatives

flymysql/dsh-memory · highland0971/dsh-native-memory

More plugins in Memory

Browse more in Memory

Guides for Memory plugins