dsh-local-host-guard: DSH Intra-Host Sentinel

dsh-local-host-guard is a DSH workflow plugin maintained by maozhuoshushu. It instruments and applies time limits to synchronous calls like spawnSync/execSync within the host process, and writes hang and Node.js process reports when the main thread stalls. It also provides write gates, cold backfill gates, queue sentinels, and configurable idle session offloading (report-only by default). Zero-dependency and featuring Chinese logs, its configuration is stored in host-guard.json. It supports CLI and local HTTP status routes. Install it using the `dsh plugin --profile desktop add` command found in the README. It is highly suitable for troubleshooting event loop hangs and scenarios where heap memory approaches the 4192 MB limit.

Read More