DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Opencontext — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-opencontext

Opencontext

将 DSH 代理连接到 OpenContext,以提供持久记忆和检索增强上下文的 DeepSeek Harness 插件。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-opencontext@0.3.2
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.3.2stable
2026/8/24

相关插件

正在加载相关插件…

最新版
0.3.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
297.9 kB
文件数
97
Surface
any
许可证
Apache-2.0
发布源
npm
GitHub
★ 76
周下载
88
最近提交
2026/9/18
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合三层记忆控制平面:持久化运行时上下文、可搜索的项目文档、可插拔的长期记忆、受保护的策略、WebUI 和无头工具。

README

dsh-opencontext

DeepSeek Harness plugin that gives any DSH agent durable memory + retrieval-augmented context by plugging into @melandlabs/opencontext.

  • Package name: dsh-opencontext
  • License: Apache-2.0
  • Engine: Node ^22.19.0 || >=24.0.0
  • Tool prefix: oc_*
  • Skill: opencontext
  • Command: /oc doctor

Install

From npm (recommended)

# Install directly from npm
dsh plugin --profile web add dsh-opencontext

# Confirm it's mounted
dsh --profile web --dump-config | grep dsh-opencontext
#   ... should contain `id: dsh-opencontext`

# Start DSH web and verify
dsh web
#   Visit http://127.0.0.1:3080/plugins and confirm dsh-opencontext shows "Enabled"

From source (for development)

# 1. Clone the repo and navigate to the plugin directory
cd /path/to/opencontext/plugins/dsh-opencontext

# 2. Build the plugin (emits lib/)
pnpm install
pnpm build

# 3. Register it with your DSH
dsh plugin --profile web add /path/to/opencontext/plugins/dsh-opencontext

# 4. Confirm it's mounted
dsh --profile web --dump-config | grep dsh-opencontext
#   ... should contain `id: dsh-opencontext`

# 5. Start DSH web and verify
dsh web
#   Visit http://127.0.0.1:3080/plugins and confirm dsh-opencontext shows "Enabled"

Plugin view

dsh-opencontext plugin

Slash command

dsh-opencontext slash command

What you get

Core Tools (8)

ToolPurpose
oc_searchSearch long-term memory (unified across memory + insights + knowledge).
oc_rememberPersist one durable memory when the user explicitly asks.
oc_memory_listList recent memory entries in the current scope.
oc_memory_getRead one or more entries by id.
oc_memory_reviseSoft-deprecate an entry and store a successor.
oc_memory_retireSoft-deprecate an entry.
oc_prepare_contextManually build a bounded <opencontext_evidence> block.
oc_capture_sourceCapture an arbitrary content source for later retrieval.

Summary & Outcome Tools (3)

ToolPurpose
oc_session_summaryGenerate and store a session summary at natural breakpoints.
oc_task_outcomeRecord task outcomes, decisions, and achievements.
oc_recent_summariesList recent session summaries and task outcomes.

Insights Tools (2, opt-in)

ToolPurpose
oc_insights_searchSearch structured insights (decisions, preferences, outcomes).
oc_insight_captureCapture a structured insight from conversation.

Knowledge/RAG Tools (3, opt-in)

ToolPurpose
oc_knowledge_searchRAG search over uploaded documents.
oc_document_uploadUpload documents to the knowledge base.
oc_document_listList all documents in the knowledge base.

All tools return { ok: true, value } on success and { ok: false, error: { code, message } } on failure — they never throw to the model.

Recall waterfall

Every agent/pre-step event runs a recall waterfall:

  1. Derive a query from the last user message (truncated to 256 chars).
  2. backend.search({ query, limit: maxRecallItems, ... }) with a requestTimeoutMs-bounded timeout.
  3. Format hits as a fenced <opencontext_evidence> block, byte-capped to maxBytes (default 8000).
  4. The block is appended as a plugin-sourced user message with a header that flags it as untrusted historical evidence.
  5. On any backend error, the listener logs a warning and the turn continues without context.

Auto-capture

A second agent/pre-step listener runs after recall and writes each user message into the memory store under sourceType: "user_input". Gated by config.capturePrompts (default true; set OPENCONTEXT_DSH_CAPTURE_PROMPTS=0 to disable). Fire-and-forget by default so the turn is not blocked; opt into flushOnCapture: true if you need strict ordering.

Turn-end summarization

When autoSummarize is enabled, a turn/end listener:

  1. Generates a simple summary of the turn
  2. Stores it as a turn-summary memory
  3. Captures tool outcomes if captureToolOutcomes is enabled

Tool result capture

When captureToolResults is enabled, a tool/result listener captures tool call results as tool-interaction memories, creating a searchable log of all tool interactions.

Skill: opencontext

Loaded at plugin-apply time. Primes the model on the recall / capture contract, the trust model, and all available oc_* tools.

Command: /oc doctor

Prints a JSON status payload:

{
  "ok": true,
  "plugin": "dsh-opencontext",
  "backend": "lib",
  "scope": "local:9cd22c419df9",
  "db": "/Users/you/.opencontext/memory/store.db",
  "probe": { "ok": true, "mode": "lib", "details": "db=/Users/you/.opencontext/memory/store.db" },
  "recentCount": 0,
  "features": ["insights", "knowledge", "prompt-capture"]
}

Configuration

Resolved in this order (highest first):

  1. cordis.patch.yml row under id: dsh-opencontext
  2. OPENCONTEXT_DSH_* environment variables
  3. Defaults declared in ConfigSchema
FieldTypeDefaultEnv var
baseUrlstringhttp://127.0.0.1:8000OPENCONTEXT_DSH_BASE_URL
authorizationstring""OPENCONTEXT_DSH_AUTHORIZATION
scopeIdstring"" (auto)OPENCONTEXT_DSH_SCOPE_ID
timeoutMsnumber4000OPENCONTEXT_DSH_TIMEOUT_MS
requestTimeoutMsnumber1000OPENCONTEXT_DSH_REQUEST_TIMEOUT
maxBytesnumber8000OPENCONTEXT_DSH_MAX_BYTES
capturePromptsbooltrueOPENCONTEXT_DSH_CAPTURE_PROMPTS (1/0)
flushOnCaptureboolfalseOPENCONTEXT_DSH_FLUSH_ON_CAPTURE (1/0)
maxRecallItemsnumber8OPENCONTEXT_DSH_MAX_RECALL_ITEMS
autoSummarizeboolfalseOPENCONTEXT_DSH_AUTO_SUMMARIZE (1/0)
captureToolResultsboolfalseOPENCONTEXT_DSH_CAPTURE_TOOL_RESULTS (1/0)
enableInsightsbooltrueOPENCONTEXT_DSH_ENABLE_INSIGHTS (1/0)
enableKnowledgebooltrue (/)

Presence-only switch:

  • OPENCONTEXT_DSH_HTTP_URL — flip to HTTP mode (any non-empty value).

Trust model

The <opencontext_evidence> block surfaced by the recall waterfall is host-supplied context, not instructions. It is explicitly framed as untrusted historical evidence; if it ever contradicts the user, the user wins. The block is never placed in the system-prompt role — it is appended as a plugin-sourced user message, so the model can ignore it without breaking the system contract.

Development

pnpm install
pnpm typecheck
pnpm test          # 59 unit tests
pnpm build         # tsc → lib/

Architecture

┌──────────────────────────────────────────────────────────────────────────┐
│                                DSH Agent                                 │
│  ┌────────────────────────────────────────────────────────────────────┐  │
│  │  agent/pre-step pipeline                                           │  │
│  │  ┌───────────────────────────┐    ┌───────────────────────────┐        │  │
│  │  │  Recall                   │    │  Capture                  │        │  │
│  │  │  (search history)         │    │  (store user input)       │        │  │
│  │  └───────────────────────────┘    └───────────────────────────┘        │  │
│  └────────────────────────────────────────────────────────────────────┘  │
│                               │                                    │
│                               v                                    │
│  ┌────────────────────────────────────────────────────────────────────┐  │
│  │  turn/end & tool/result listeners                                  │  │
│  │  ┌───────────────────────────┐    ┌───────────────────────────┐        │  │
│  │  │  Session Summ.            │    │  Tool Capture             │        │  │
│  │  │  (session summary)        │    │  (tool output capture)    │        │  │
│  │  └───────────────────────────┘    └───────────────────────────┘        │  │
│  └────────────────────────────────────────────────────────────────────┘  │
│                               │                                    │
│                               v                                    │
│  ┌────────────────────────────────────────────────────────────────────┐  │
│  │                dsh-opencontext plugin (16 tools)                   │  │
│  │  ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐          │  │
│  │  │ Core      │ │ Summary   │ │ Insights  │ │ Knowledge │          │  │
│  │  │ (8)       │ │ (3)       │ │ (2)       │ │ (3)       │          │  │
│  │  └───────────┘ └───────────┘ └───────────┘ └───────────┘          │  │
│  └────────────────────────────────────────────────────────────────────┘  │
│                               │                                    │
│                               v                                    │
│  ┌────────────────────────────────────────────────────────────────────┐  │
│  │                         OpenContext Backend                        │  │
│  │  ┌───────────────────────────┐    ┌───────────────────────────┐        │  │
│  │  │  Lib Mode                 │    │  HTTP Mode                │        │  │
│  │  │  (in-process)             │    │  (daemon)                 │        │  │
│  │  └───────────────────────────┘    └───────────────────────────┘        │  │
│  └────────────────────────────────────────────────────────────────────┘  │
└──────────────────────────────────────────────────────────────────────────┘

License

Apache-2.0. See LICENSE.

OPENCONTEXT_DSH_ENABLE_KNOWLEDGE
1
0