freehul/sgme

Your AI will remember you from now on - the light-picking memory engine. It will remember everything you have talked about and will take the initiative to care about you.

The DSH plugin for SGME (ShiGuang Memory Engine), a self-hosted memory hub that captures conversations, distills them into tagged memories, and injects only the relevant ones at the start of each conversation. The plugin adds first-step profile injection, memory_search / wiki_search model tools, the /sgme command, and turn-by-turn session storage into SGME. Memory is traceable (every statement links back to the source conversation), shared across agents (Hermes, DSH, desktop/laptop/NAS), and scenario-based (casual chat gets identity and recent status; coding gets project memories). Zero-LLM persona injection — pure structured SQL, no token cost per conversation. Python + SQLite, no GPU or external DB services.

Agent Capabilities ★ 6 updated 2026-09-19 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin --profile web add dsh-sgme

npm package dsh-sgme 0.3.1 (registry-verified 2026-08-27): dsh plugin --profile web add dsh-sgme. Documented alternative from the repo: dsh plugin --profile web add github:freehul/sgme. SGME itself runs as a local server (python -m sgme, port 9910) that the plugin talks to — see the repo README for server setup.

Compatibility

DeepSeek Harness web profile (Cordis SDK plugin). Requires the SGME memory server (Python 3.11+, SQLite).

Details

Recent updates

dsh-sgme 0.3.x: profile injection, memory_search/wiki_search tools, /sgme command, turn-by-turn session storage; server: L0 raw capture, L1 distilled tagged memory, dedup/merge/contradiction detection, hybrid BM25+vector retrieval, built-in wiki.

FAQ

Does it cost tokens per conversation?
Persona injection is a pure structured SQL query — zero LLM call, zero token cost. Small-model refinement is optional and off by default.
Can multiple agents share the same memory?
Yes — Hermes, DSH, and other agents share one SGME brain via HTTP + MCP; data lives on your own machine.
Where is my data stored?
Locally: Markdown raw records + SQLite memory store on your own machine, with daily snapshot backups.

Alternatives

Aik358/dsh-auto-memory · Scorp1o117/dsh-tdai-memory · KLRSL/dsh-biomemory

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins