dsh-context-graph

Indexes each chat of a workspace into a small topic graph every 4 turns, and once when a short chat goes quiet (one model call, cited messages kept verbatim under .context-graph/); typed messages, /goal rounds, reminders, approved plans and your answers to the model all count. Appends up to 5 matching topics from the other chats to a message, putting topics from a day you name ("yesterday", 上周) first, and adds a recall tool that returns the original text by topic, chat, day or turn. On and shared by default; /context-graph off and unshare opt a chat out, and stats, build, map and find inspect it.

Overview

Indexes each chat of a workspace into a small topic graph every 4 turns, and once when a short chat goes quiet (one model call, cited messages kept verbatim under .context-graph/); typed messages, /goal rounds, reminders, approved plans and your answers to the model all count. Appends up to 5 matching topics from the other chats to a message, putting topics from a day you name ("yesterday", 上周) first, and adds a recall tool that returns the original text by topic, chat, day or turn. On and shared by default; /context-graph off and unshare opt a chat out, and stats, build, map and find inspect it.

Installation

Install from npm

dsh plugin --profile web add dsh-context-graph

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:William20100221/dsh-context-graph

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.