dshbase

Plugin directory / Developer / dsh-x-opencode-session

dsh-x-opencode-session

Unverified coco-king

View on GitHub ↗ ← Back to plugin directory

13Stars
0Forks
0Open issues
—Language
—Last push
Cross-platformPlatform

What it does

A plugin in the Developer category for DeepSeek Harness.

Our take

No short evidence report

There is no checkable per-level test record on this page. Stars, the catalog test field, a web-only flag, and whether the plugin needs an external account or service are not shown here as a pass or a failure. The catalog badge stays as published.

“Unverified” means our automated CI has not yet installed this plugin. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

Plugin author? Get the “Verified” label — submit your own evidence (screenshots, logs, or a short demo) and we'll review and flip the badge.

Submit verification evidence ↗

README

dsh-x-opencode-session

DeepSeek Harness 插件:当模型调用发往 URL 包含 opencode.ai 的服务(如 OpenCode Go / Zen 网关)时,自动为请求附加请求头 x-opencode-session。

作用

该请求头用于向服务端标识当前会话,值无需任何配置,插件会自动满足:

  • 同一对话内固定 —— 同一对话的所有模型请求携带同一个值;
  • 不同对话互不相同 —— 各对话之间互不干扰;
  • 断开网络或重启后不变 —— 值来自对话自身的持久标识,重启、续聊、断网重连后依然一致。

插件直接复用对话已有的会话标识,不维护任何额外 id、映射或状态,也不影响其他请求:只有发往 opencode.ai 的模型请求会被附加该头,其他提供方与旁路请求不受影响。

安装

从 GitHub 安装:

dsh plugin --profile web add https://github.com/Coco-king/dsh-x-opencode-session.git#v0.1.0

或从 Gitee 安装(国内用户可用;代码由 GitHub 自动镜像同步到 Gitee):

dsh plugin --profile web add https://gitee.com/kkcoco/dsh-x-opencode-session.git#v0.1.0

将 #v0.1.0 换成当前发布版本的 tag 即可锁定版本。

重启 web 服务(或刷新页面 + HMR)后生效。卸载:

dsh plugin --profile web remove dsh-x-opencode-session

开发迭代:修改代码后重新执行 dsh plugin --profile web add <本仓库路径> 即可。

验证

  1. 用 opencode-go 提供方的模型发起对话并正常使用;
  2. 通过抓包或服务端日志确认请求带上了 x-opencode-session 头;
  3. 同一对话中多次请求值一致,另开一个新对话值不同,重启 web 后再发消息值仍与之前一致。

License

MIT

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-x-opencode-session for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:coco-king/dsh-x-opencode-session

Headless (CLI) profile:

dsh plugin --profile headless add github:coco-king/dsh-x-opencode-session

Test report

No short evidence report

There is no checkable per-level test record on this page. Stars, the catalog test field, a web-only flag, and whether the plugin needs an external account or service are not shown here as a pass or a failure. The catalog badge stays as published.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 26834 plugins →