dsh-session-header: Inject session header into Harness LLM requests

DeepSeek Harness's GenerateOptions lacks a unified headers extension. When a gateway relies on session headers for routing or auditing, the header is often not sent by default. dsh-session-header patches llm/stream and globalThis.fetch to inject a configurable x-session-id (or a custom header name) into every LLM call and related fetch, isolates context via AsyncLocalStorage, and does not overwrite existing headers. It supports toolEndpoints and overwriteHeaders. The README includes configuration examples for OpenCode Go and headless profiles. Installation: dsh plugin --profile <name> add github:EmotionTowel/dsh-session-header; requires Node ≥ 22.

Read More