dsh-context-graph: DSH Session Memory Plugin
The plugin dsh-context-graph, maintained by William20100221 and categorized as Memory, addresses the input token overhead caused by repeated context across multiple sessions. It is enabled by default, indexing settled items from the session into a topic graph every 4 turns, which is stored in the workspace's `.context-graph/chats/` directory. Other sessions within the same workspace only require appending a few lines of directional prompts; the model can retrieve the original text verbatim by invoking `recall` using IDs such as `c3n12`. The plugin offers slash commands such as `on/off/share/unshare/stats/build/map/find`, which utilize lexical matching and prioritize filtering for time-related words. It supports disabling memory and sharing on a per-session basis. The article details the installation method, command usage, matching backtracking mechanism, and applicable considerations, and includes a table of contents and a GitHub link.
Read More