dsh-brain-hub: Building DSH's memory into a collection of Markdown files

dsh-brain-hub is a plugin in the "Memory" category of the DSH community directory. Maintained by xxwjxx-1210, it is released under the MIT License and has zero runtime dependencies. The core concept uses Markdown as a database and Git for synchronization: `MEMORY.md` injects system prompts, `notes/` stores one card per file, `index.json` serves as the index, and writing triggers automatic commits and pushes. The session top bar provides a four-step pipeline: collecting content from the sidebar web version, splitting it into cards, confirming each one, and then deciding whether to save to the cloud (to Git) or locally only (in `private/`, never pushed). The backend supports three backup strategies: git, folder, and local; it can run purely locally even if the remote setting is left empty. The plugin exposes nine tools, including `memory_write`, and the `/api/plugin-rpc/brain-hub` RPC endpoint. The web-based component relies on sidebar browser automation and requires re-login after each restart; there are also two fallback paths: manual copy rules and directly collecting content into the final answer. The article provides installation commands for npm, GitHub, and local tgz, along with complete configuration options. It also explains trade-offs such as deduplication strategy, search methods, and single-branch usage.

Read More