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.

Madoka Dsh Opencode Go Session — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

madoka-dsh-opencode-go-session

Madoka Dsh Opencode Go Session

DeepSeek Harness plugin for OpenCode Go only: attaches a stable per-conversation x-opencode-session header (fixes 400 MissingSessionID). 仅面向 OpenCode Go:自动附加稳定的每会话请求头。

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

npx -y @deepseek-ai/dsh plugin --profile web add madoka-dsh-opencode-go-session@0.3.1
READMECompatibilityVersions

Compatibility and provenance

Madoka Dsh Opencode Go Session is published as madoka-dsh-opencode-go-session and currently resolves to version 0.3.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
10/16/2026

Versions

0.3.1stable
10/12/2026

Related plugins

Loading related plugins…

Latest
0.3.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
22.2 kB
Files
7
Surface
any
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
165
Security scan
✓ v0.3.1 scan passed
Last push
10/4/2026
View source ↗Project homepage ↗
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

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseExperimental Inspector@deepseek-ai/dsh-experimental-inspectorExperimental cross-realm CDP hub for Host debugging and Client Runtime inspection

README

madoka-dsh-opencode-go-session

DSH 插件,只面向 OpenCode Go,只做一件事:

给 OpenCode Go 请求自动附加每会话稳定的 x-opencode-session 请求头,修复 400 MissingSessionID,保持会话亲和与提示缓存路由。

范围:只要 OpenCode Go。不要 opencode,不要 Command Code。 加头模式与 dsh-opencode-session 一致:默认 session-id。

安装

dsh plugin --profile <你的profile> add ./madoka-dsh-opencode-go-session
# bundle 层只在启动时读,改完必须完全重启

本地开发:

npm install
npm run build      # 输出 lib/(含 .d.ts)
npm run typecheck  # 类型检查(含测试)
npm test           # 编译测试并用 node:test 运行
npm run check      # build + typecheck + test

确认生效

  • 启动日志出现:[opencode-go] active for providers [opencode-go] with mode session-id。
  • 多轮对话不再 400 MissingSessionID。

配置(插件行 config,全可选)

键说明
providers默认 ['opencode-go'],自定义同端点别名才加
mode默认 'session-id',备选 'uuid'(每会话随机 UUID,不发送内部会话 ID)
debugtrue 打每条加头日志
debugFile绝对路径,追加 JSON 行

加头行为

  • 只监听 llm/stream,options.provider 命中 providers 且有 sessionId 才进入 AsyncLocalStorage 窗口,窗口内 globalThis.fetch 自动加头;请求已带该头时让路。
  • 并发会话各持各的值;插件卸载/更新时恢复原始 fetch。

已知限制

  • 宿主若换掉 Node 全局 fetch,加头会失效(症状:400 回归)。

许可

MIT