Problem
DeepSeek Harness keeps /plan as command-plane session state. Its OpenAI-compatible requests do not send mode or X-Cursor-Mode, so the proxy falls back to its configured default (normally ask) even though DSH injects a stable plan policy into trusted system content.
Proposed behavior
Add an opt-in DSH auto-mode bridge with precedence:
- request body
mode
X-Cursor-Mode
- inferred DSH mode
- configured default
Only inspect system/developer content. Identify DSH through its stable system preamble, select plan when You are in plan mode. is present, and select agent for identified DSH requests when it is absent. Never infer from ordinary user text.
This keeps existing clients unchanged and lets /plan off return naturally to Agent mode.
Problem
DeepSeek Harness keeps
/planas command-plane session state. Its OpenAI-compatible requests do not sendmodeorX-Cursor-Mode, so the proxy falls back to its configured default (normallyask) even though DSH injects a stable plan policy into trusted system content.Proposed behavior
Add an opt-in DSH auto-mode bridge with precedence:
modeX-Cursor-ModeOnly inspect system/developer content. Identify DSH through its stable system preamble, select
planwhenYou are in plan mode.is present, and selectagentfor identified DSH requests when it is absent. Never infer from ordinary user text.This keeps existing clients unchanged and lets
/plan offreturn naturally to Agent mode.