DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Plugin Rag — DeepSeek Harness 插件(DSH Plugin)
← Plugins
P

dsh-plugin-rag

Plugin Rag

DeepSeek Harness (DSH) 插件:针对您所有聊天会话的自包含语义记忆(RAG)。通过 session/event 实时为消息建立索引,将嵌入向量存储在一个本地 JSON 文件中,并提供 rag_search 工具。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:mervyn-teo/dsh-plugin-rag#fe3423967755823f8773b0f0da39034dde0c5472
README兼容性版本
dsh-plugin-rag demo

兼容性与来源证明

Plugin Rag 以 dsh-plugin-rag 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/8/24

版本

README

dsh-plugin-rag

dsh-plugin-rag — semantic memory for your DSH sessions

Semantic memory (RAG) over all your DeepSeek Harness chat sessions — automatic, self-contained, and non-destructive.

Install · How it works · Settings · The rag_search tool · Uninstall


What it does

dsh-plugin-rag turns every conversation you have with the harness into a searchable memory. As you chat, the plugin increments the index with each new message and decrements it when compaction/pruning shadows old content, so retrieval always reflects the current surface of your sessions — never a stale dump.

  • ✅ Automatic — no rebuild schedule, no manual export. It listens to the session store and stays in sync as you work.
  • ✅ Self-contained — embeddings come from any OpenAI-compatible /embeddings endpoint; vectors live in one local JSON file. No native modules, no database, no extra service.
  • ✅ Non-destructive — it listens to published session events. It never patches the agent loop, and uninstalling restores the harness to its exact original state.
  • ✅ Model-agnostic — choose a built-in preset or plug in your own endpoint, model, and API key.

dsh-plugin-rag demo

Install

A DSH plugin is a plain npm/Cordis package. Install it exactly like the terminal or qr-connect plugins: add it to your profile's dependencies, bundle list, and one cordis.patch.yml insert row.

  1. Add the package to your profile's package.json (e.g. ~/.dsh/profiles/web/package.json):

    {
      "dependencies": {
        "dsh-plugin-rag": "github:mervyn-teo/dsh-plugin-rag"
      },
      "dsh": {
        "profile": {
          "bundles": [
            "@deepseek-ai/dsh-base",
            "@deepseek-ai/dsh-web-app",
            "dsh-plugin-rag"
          ]
        }
      }
    }
    

    Or install from a local clone: "dsh-plugin-rag": "file:/path/to/dsh-plugin-rag".

  2. Add the insert row to your profile's cordis.patch.yml (create it if it doesn't exist):

    - insert:
        - id: rag
          name: dsh-plugin-rag
          config:
            enabled: true
            provider: soclaas-bge-m3
            model: bge-m3
            endpoint: https://soclaas-api.comp.nus.edu.sg/v1
            topK: 5
            dataDir: ""
            includeToolResults: true
            includeReasoning: false
            maxChunkChars: 4000
    
  3. Reinstall and restart the harness so the profile re-resolves its dependencies and mounts the new bundle.

Settings

Open Settings → Plugins → RAG Memory. The card exposes exactly the fields you need to point the indexer at any embeddings provider:

FieldPurpose
Enable indexingToggle the indexer and the rag_search tool.
Embedding modelPick an existing preset — BGE-M3 (SoCLaaS), OpenAI text-embedding-3-small/large, or Ollama nomic-embed-text — or Custom… to supply your own.
Endpoint URLBase URL of any OpenAI-compatible embeddings endpoint.
Model nameThe model string sent to the endpoint.
API keyPaste a key directly. Saving it persists it to the harness settings (settings.yaml) and mirrors it into the .env file under Key env var, so it survives a restart. Leave empty to read from settings, then .env, then the process environment.
Key env varThe environment variable name the key is read from / written to in the .env file when the API key field is empty.
ResultsDefault number of hits returned by rag_search.
Index tool resultsAlso index tool output (on by default).
Index reasoningAlso index model reasoning blocks (off: noise + privacy).
Max chars per chunkChunk size for long messages.

The card also shows a live index status (chunk count, session count, vector dimension, model, data dir) and a Reindex button.

⚠️ Changing the model or endpoint triggers a full rebuild, because embedding vectors are not comparable across models or providers.

The rag_search tool

Once installed, the model gains a first-class rag_search tool. It embeds the query with your configured endpoint and returns the most relevant past messages — each with role, session title, and snippet — so the agent can recall prior work, decisions, code, and context across sessions.

rag_search("how did we set up the terminal plugin's WebSocket handshake?")

How it works

The plugin plugs into the harness the non-destructive way — by subscribing to events the session store already publishes:

EventEffect
session/createdReplays the (new or resumed) session's log from the stored cursor forward.
session/eventIncrement/decrement — indexes new user/message, assistant/message, and tool/result surface events; un-indexes entries shadowed by a replace (compaction / tool-result pruning).
session/flushAwaited durability checkpoint; drains the pending embed batch.

Message extraction is deliberate about noise:

  • only human user/message events (real prompts, not system-prompt or runtime-context injections) are indexed;
  • assistant/message contributes its final text blocks (not reasoning or tool-call blocks — those are skipped unless you enable Index reasoning);
  • tool/result contributes tool output (optional, and truncated by the chunker).

Embeddings are written to ~/.dsh/rag/index.json (configurable via dataDir) using an atomic tmp+rename write. A per-session cursor tracks the last processed seq, so restarts are idempotent and only new content is embedded.

Uninstall

Uninstall is just as clean as install — nothing in the harness was modified:

  1. Remove the dsh-plugin-rag entry from cordis.patch.yml and from dsh.profile.bundles.
  2. Remove it from package.json dependencies.
  3. Reinstall and restart.

Cordis disposes the plugin's scope (listeners, the rag_search tool, and the config route) automatically, leaving the harness byte-identical to before. The only residue is the index file itself; delete ~/.dsh/rag/ (or your dataDir) to purge the stored vectors.

Configuration reference

KeyDefaultContract
enabledtrueWhether indexing and the rag_search tool are active.
providersoclaas-bge-m3soclaas-bge-m3 · openai-3-small · openai-3-large · ollama-nomic · custom
modelbge-m3Model string sent to the endpoint (overrides the preset's model).
endpointhttps://soclaas-api.comp.nus.edu.sg/v1OpenAI-compatible embeddings base URL.
topK5Default result count (1–50).
dataDir""Index directory; empty means ~/.dsh/rag.
includeToolResultstrueIndex tool results.
includeReasoningfalseIndex reasoning blocks.
maxChunkChars4000Max characters per chunk (256–16000).

Privacy

Everything stays on your machine by default: the index is a local file, and the only outbound traffic is the embedding request to the endpoint you configure. API keys are never written into the index, and the key is not plugin configuration — there is no setting for it and the card offers nowhere to type one. Each provider preset pins a credential reference (soclaas-bge-m3 → SOCLAAS_API_KEY, the OpenAI presets → OPENAI_API_KEY, custom → RAG_API_KEY), which is resolved through the harness credential store: the process environment, then ~/.dsh/.credentials.yaml (the same file the Models page writes), then a .env fallback. The Settings card reports only whether that reference currently resolves.

License

MIT

0.1.2stable
2026/8/24
0.1.1stable
2026/8/20

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。Reme@agentscope-ai/reme面向 TypeScript 代理的 ReMe 客户端和记忆集成Stratagate Dshstratagate-dsh最近的对话依然鲜活。较早的对话会逐渐淡化为摘要,而不是被遗忘。StrataGate 为 DeepSeek Harness 提供六层、随时间衰减的记忆,同时将持久的事件和关系沉淀为知识图谱。将你在其他 AI 中的记忆带来Meow Memorymeow-memoryDeepSeek Harness 的跨会话项目记忆:七层 SQLite 记忆、首轮快照注入、每条消息的关键词命中、memory_remember/search/project 工具、带 reflection-fold UI 的自动反思,以及由空闲触发的梦境整合
最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/8/23
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录