acus9345/dsh-block-hanging-commands

dsh-block-hanging-commands reads each shell command before it runs and blocks ones that would wait for input or never exit, telling the model why and what to run instead so it can correct the call in the same step: it catches editor launches (vim, nano, code --wait), git commands that open an editor (git commit/tag without -m), interactive git (git rebase -i, git add -p) and REPLs (python, node, psql, redis-cli, sqlite3), each mapped to the concrete non-interactive alternative and shipped as an always-on patch layer.

dsh-block-hanging-commands stops the agent from hanging a turn on a command that waits for a keyboard nobody is typing on. If you have used an agent for a while you have seen it run git commit without -m, or npm run dev, or python3 with nothing after it - the turn just sits there, usually times out, the model learns nothing, and it tries something just as bad. This plugin reads each shell command before it runs, refuses the ones that would wait for input or never exit, and tells the model why and what to run instead: it catches editor launches (vim, nano, emacs, code --wait, subl -w), git commands that open an editor (git commit or git tag -a without -m), interactive git (git rebase -i, git add -p), and REPLs (python, node, psql mydb, redis-cli, sqlite3 db), mapping each to the non-interactive alternative such as -c '(command)', a script file or a heredoc.

Agent Capabilities ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-block-hanging-commands

Copied verbatim from the README's Install block (the web profile; the README notes using headless or acp instead if you run DSH another way). npm package dsh-block-hanging-commands at 0.1.0 (registry check 2026-10-15; the registry repository field resolves back to this repo).

Compatibility

The plugin does not run the command; it reads each shell command before it executes and blocks only the ones that would wait for input or never exit, returning a message that names the rule, explains why the command would hang, and gives the concrete non-interactive replacement so the model can fix the call in the same step. There is no configuration and no extra setup beyond the install.

Details

Alternatives

030611/dsh-telemetry-redactor · 173787247/dsh-wsl-env · acnlabs/dsh-plugin-acn

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins