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.
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sdlhs/dsh-interject說明文件
閱讀完整 README ↗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
}
| Field | Values | Meaning |
|---|---|---|
onQueue | steer / interrupt / pass | What to do with a message that entered next-turn. steer = promote it to next-step (default, zero waste) |
onSteer | pass / interrupt | What to do with a message that entered next-step. pass = hands off (default, it already waits for the next boundary) |
interruptWhile | thinking / always | When a hard interrupt is allowed; with thinking, the tool-running phase degrades to a soft interjection instead of killing a long command |
graceMs | ms | Delay after a hit, so messages sent in one batch are merged |
cooldownMs | ms | Minimum gap between two hard interrupts on one agent |
includeSubagents | bool | Also handle sub-agents (default: only root sessions you can see) |
stallMs | ms, 0 disables | Write a "still running" line to the log when a single step exceeds this |
wakeFallbackMs | ms, 0 disables | How long to wait for the driver to report idle after a hard interrupt; only used on the degraded path |
bootMarker | bool | Write ~/.dsh/dsh-interject-boot.json (version / pid / effective config) |
log | bool | Diagnostic 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).