DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Custom Context Injector — DSH Plugin for DeepSeek Harness
← Plugins
C

dsh-custom-context-injector

Custom Context Injector

DeepSeek Harness (Cordis) plugin: Provides a “Custom Context” settings page and injects it into the model context, with persistence to disk.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:LiKanGame/dsh-custom-context-injector#3fc8a2be5a76cc5d937c1794eff45ae2c97e800c
READMECompatibilityVersions

Compatibility and provenance

Custom Context Injector is published as dsh-custom-context-injector and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/9/2026

Versions

0.1.0
stable
9/9/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/9/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessContextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.

README

dsh-custom-context-injector

DeepSeek Harness(Cordis 运行时)插件:让你在设置里维护一段「自定义上下文」,并把它注入到每次模型调用的提示中。

它做什么

两个能力合在一起:

  • D — 「自定义上下文」设置页 在 GUI 的 设置(齿轮)→ 新增一页「自定义上下文」:一个「启用注入」开关 + 一个多行输入框 + 「保存」按钮。

  • B — 自动注入 启用状态下,保存的这段文字会作为一条 systemPrompt section 注入到每次模型装配。实测:开启后,当前会话以及之后通过「新对话」开出的新会话都会携带这段内容。

  • 持久化 保存会尝试把内容写入磁盘 JSON,跨重启保留;若磁盘写入不可用则如实降级为“仅内存”并在设置页提示。

结构

src/
  host.js     Host 半区:fs 持久化、get/set RPC、systemPrompt section 注入
  client.js   Client 半区:settings.section 插槽里的设置页 UI
package.json

两侧通过 Package-private RPC 通信:Client 用 host.call('extra-context/get'|'extra-context/set'),Host 用 harness.handle(...) 应答。Host 的注入读取内存缓存(由启动时的磁盘加载与保存时写入共同维护),因为 systemPrompt.section 的 text 是同步的。

运行环境依赖(重要)

本源码是经过实机验证的动态 Cordis Package 的可维护镜像。它依赖 DSH 动态运行时注入的全局/服务:

  • Host:harness 全局、ctx.get('systemPrompt')、ctx.get('fs')(纯 JS,无 import/require)。
  • Client:React(仅 createElement)、host、styles、ctx、插槽 settings.section(无 JSX/import)。

因此它当前不是可独立安装的 npm 包:客户端部分会依赖 Harness 内部包(@deepseek-ai/dsh-*),在那些包可被外部解析之前,无法用 dsh plugin add 直接装上。把它跑起来有两条现实途径:

  1. 作为动态插件:把 host.js/client.js 的插件函数体按 Cordis 动态插件流程 define + run 到当前运行实例。
  2. 接线成真正的 DSH feature:待能解析内部依赖后,把它并入某个 composition / feature 目录并加一行加载。

行为与边界(如实说明)

  • 进程内缓存 + 磁盘文件:内容存一份在内存(供同步注入),保存时落盘。
  • 持久文件实际落点:在本机实测中,fs 服务的默认 base 是 DSH 宿主进程工作目录(如 E:\deepseek-harness),所以文件落在 E:\deepseek-harness\.dsh-custom-context.json。若要改到别处,需要显式 resolve 一个绝对路径(并确认 fs 允许写该位置)。.dsh-custom-context.json 已加入本仓 .gitignore,不会被提交。
  • 注入作用域:作用于加载该插件的 realm 的后续提示装配,不等于对全 Harness 的历史会话做持久写入。
  • 动态插件为临时形态:正式化需迁到持久 settings namespace 或 composition。

License

MIT