dsh-mode-router: Rule-Based Routing of Every Message Between Chat and Execution Protocol

dsh-mode-router performs heuristic scoring on each incoming message in DeepSeek Harness prior to injection, distinguishing between casual chat and task delegation, and switches between two systemPrompt protocols (chat vs. execution) without invoking the model. It supports manual mode locking via /chat, /work, and /auto, and provides mode_status and mode_set commands for post-hoc review and correction. Installed as a host-level profile, it stores all state in memory only. This article, based on the official README, covers installation, scoring weights, configuration options, and applicable boundaries.

Read More