DSH Plugins
返回列表
🖥️

dsh-knowledge-sync

客户端 更新于 2026.08.25

在终端中运行以下命令:

dsh plugin install liugu2023/dsh-knowledge-sync

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 终端中执行 dsh plugin install liugu2023/dsh-knowledge-sync,插件源码位于 https://github.com/liugu2023/dsh-knowledge-sync ,安装后即可在当前工作区启用对话知识同步功能。

插件介绍

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.

使用场景

  • 同一项目多轮迭代调试,避免重复诊断已解决的构建失败
  • 记录架构决策与技术选型,后续会话直接检索查阅,省去重新描述上下文
  • 将排查过程沉淀为可 grep、可进 git 的本地 Markdown 文档

适合人员

  • 长期维护同一项目的 DeepSeek Harness 用户
  • 需要跨会话保留技术结论、避免重复劳动的开发者
  • 偏好本地 Markdown 而非向量数据库、重视数据主权的团队