Deliay/dsh-header-masq ↗★ 0

dsh-header-masq

DeepSeek Harness 0.2.1-rc.2 plugin that exposes a stable per-session id as x-opencode-session (and other harness headers), including custom pi-ai providers.

Package
dsh-header-masq
Compatibility
Unverified
Harness peer range
>=0.2.1-rc.2 <0.3.0
Version
0.2.1
License
MIT
Last updated
Oct 26, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Deliay/dsh-header-masq

配置

配置位于插件插入的行 header-masq(见 cordis.patch.yml),全部可选:

键默认值说明
sourcex-deepseek-harness-session-id没有活动 sessionId 时读取的请求头
targets[x-opencode-session]要写入的请求头列表
fallbackToSessionIdtrue使用 llm/stream 的 sessionId 作为固定规范值
hosts[]可选的目标主机白名单;空表示所有主机
debugfalse每次应用映射时写一条 info 日志

例如只对 OpenCode Go 主机生效,并同时写多个头:

- insert:
    - id: header-masq
      name: dsh-header-masq
      config:
        source: x-deepseek-harness-session-id
        targets:
          - x-opencode-session
          - x-session-affinity
        fallbackToSessionId: true
        hosts:
          - opencode.ai
        debug: true