dsh-durable-wait: Register the agent for waiting and wake the session when the condition is met.

The DSH plugin **dsh-durable-wait** (Chinese name: "Shouhou", maintained by Yyhy110421, MIT license) addresses the issue of agents waiting for external events. By registering three conditions—file appearance/modification or process exit—via `wait_create`, the tool returns immediately and the current round ends normally. The plugin polls and checks every 2 seconds by default; once a condition is met, it wakes up the original session by deciding between `followup` or `agents.resume` based on the session's online status. The article provides the official installation source (github:Yyhy110421/dsh-durable-wait) and local installation methods, reproducible examples for the three types of waits, wake-up rules, status and delivery status tables, settings page parameters, security boundaries (performs only `stat` and process existence checks, reads only absolute paths, and does not read file content), as well as applicable scenarios and precautions. The plugin runs with the permissions of the current DSH process; users should check the source code and license before installation.

Read More