dsh-knowledge-sync
Run the following command in DeepSeek Harness:
dsh plugin install liugu2023/dsh-knowledge-sync
Paste the following prompt into your AI chat to install this plugin:
In a DeepSeek Harness terminal, run dsh plugin install liugu2023/dsh-knowledge-sync to enable conversation knowledge sync; full source is at https://github.com/liugu2023/dsh-knowledge-sync .
About this plugin
A DeepSeek Harness conversation ends, and everything it produced—the questions asked, the tool chains run, the decisions made—vanishes the moment the session closes. Open the same project in the next round and the agent has no memory of any of it; you paste the context again or watch it re-diagnose a build failure you already fixed. dsh-knowledge-sync exists to end that start-from-zero-every-time cycle.
The approach is deliberately restrained. At the end of each round, a salience filter decides whether the exchange is worth keeping—only rounds with a substantive conclusion are frozen into a single Markdown file with YAML front matter. Before the file touches disk, tool arguments are scrubbed of tokens, password values, .env secrets, and PEM keys, with extra regex patterns configurable. Documents come in three granularities: raw captures the full question, answer, and tool trace; note is a finding the agent chooses to record mid-work; distilled condenses a long round into a summary via one small model call (off by default). Files live under ./knowledge in the workspace root—grep-able, git-ready, with no hidden sidecar index.
Recall is designed to cost almost nothing. The plugin does not paste the knowledge base into the system prompt, which would eat the context window and invalidate the prompt prefix on every write. Instead the agent sees a single pointer—N documents from earlier rounds exist in this workspace—and calls knowledge_search when the task looks familiar. The search runs through an in-memory BM25 index that covers full document bodies with CJK bigram support, not just titles, and returns a snippet per hit. Results can be filtered by kind, tag, or tool, with notes and distilled findings ranking above raw transcripts. Every module—capture, note, recall, distill, http—is independently optional, so you can run headless without a web page or skip distillation while keeping the rest.
For anyone who lives in the same project day after day, iterating and debugging, this conversation-as-document pattern turns repeated context into a small, searchable library the agent consults only when it genuinely needs to—no injection, no bloat, just a quiet file on disk that says the answer was already found.
Use Cases
- Multi-round debugging on the same project without re-diagnosing failures you already fixed
- Recording architecture decisions so later sessions find them instantly via search
- Turning troubleshooting traces into a local Markdown library that lives in git
Best For
- Developers who iterate on the same codebase across many sessions
- Engineers who need conversation conclusions to outlive the chat window
- Privacy-minded teams that prefer local Markdown over a vector database
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.