sleep-not-permitted

Rejects foreground waiting in DSH agents: waiting commands (sleep, wait, tail -f, watch, ping without -c, infinite loops), blocking wait tools (wait_agent, job_output with wait: true), progress polling (the same check command repeated within a window) and commands that need human input/confirmation (sudo without -n, ssh without BatchMode, login flows, interactive editors, docker -it) are refused with an actionable retry to run in the background or end the turn. Configurable budget and polling window, message language follows the system (zh/en), zero runtime dependencies.

Overview

Rejects foreground waiting in DSH agents: waiting commands (sleep, wait, tail -f, watch, ping without -c, infinite loops), blocking wait tools (wait_agent, job_output with wait: true), progress polling (the same check command repeated within a window) and commands that need human input/confirmation (sudo without -n, ssh without BatchMode, login flows, interactive editors, docker -it) are refused with an actionable retry to run in the background or end the turn. Configurable budget and polling window, message language follows the system (zh/en), zero runtime dependencies.

Installation

Install from GitHub

dsh plugin --profile web add github:JJJACKsong/sleep-not-permitted

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands