sdlhs/dsh-interject ↗★ 0

dsh-interject

Delivers queued chat messages at the next step boundary instead of waiting for the whole turn to finish, without aborting the running model call. Host plugin for DeepSeek Harness.

Package
dsh-interject
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0 || >=0.2.2-0 <0.3.0-0 || >=0.3.0-0
Version
0.3.0
License
MIT
Last updated
Oct 31, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sdlhs/dsh-interject

Configuration

~/.dsh/dsh-interject.json — hot-reloaded, save the file and it takes effect; no restart.

{
  "enabled": true,
  "onQueue": "steer",
  "onSteer": "pass",
  "interruptWhile": "thinking",
  "graceMs": 250,
  "cooldownMs": 2000,
  "includeSubagents": false,
  "stallMs": 120000,
  "wakeFallbackMs": 3000,
  "bootMarker": true,
  "log": true
}
FieldValuesMeaning
onQueuesteer / interrupt / passWhat to do with a message that entered next-turn. steer = promote it to next-step (default, zero waste)
onSteerpass / interruptWhat to do with a message that entered next-step. pass = hands off (default, it already waits for the next boundary)
interruptWhilethinking / alwaysWhen a hard interrupt is allowed; with thinking, the tool-running phase degrades to a soft interjection instead of killing a long command
graceMsmsDelay after a hit, so messages sent in one batch are merged
cooldownMsmsMinimum gap between two hard interrupts on one agent
includeSubagentsboolAlso handle sub-agents (default: only root sessions you can see)
stallMsms, 0 disablesWrite a "still running" line to the log when a single step exceeds this
wakeFallbackMsms, 0 disablesHow long to wait for the driver to report idle after a hard interrupt; only used on the degraded path
bootMarkerboolWrite ~/.dsh/dsh-interject-boot.json (version / pid / effective config)
logboolDiagnostic log switch

The default never interrupts. To make Cmd/Ctrl+Enter a preemption gesture: {"onSteer": "interrupt"}. To switch the plugin off: {"enabled": false}.

Environment overrides: DSH_INTERJECT_CONFIG (config path), DSH_INTERJECT_LOG (log path; empty string disables logging), DSH_INTERJECT_BOOT (boot marker path).