AI Agent Hub
Back to plugins
🖥️

crash-guard-dsh

Client Updated 2026.09.07

Run the following command in DeepSeek Harness:

dsh plugin install limochaishang/crash-guard-dsh

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install limochaishang/crash-guard-dsh in a DeepSeek Harness terminal to install; source repository at https://github.com/limochaishang/crash-guard-dsh.

About this plugin

The most frustrating part of using third-party plugins in PawWork is not missing features but a single bad plugin dragging the entire startup chain into a crash loop. The host restarts, fails, restarts again, and manual triage is painfully slow. crash-guard-dsh is built for exactly this pain point: it loads with the highest bundle priority, performs a state check before any other plugin runs, and if it detects that the previous session crashed or hung during loading, it writes an auto-disable entry into the user-level patch file so the host can boot cleanly.

The core capability is a three-layer self-healing architecture. Layer one is an in-process 50 ms poll that tracks every plugin load and persists state to disk in real time. Layer two is a detached watchdog child process that handles the case where the event loop is completely blocked (infinite loops, synchronous I/O), triggering a process kill, plugin disable, and restart when the heartbeat goes stale for over 30 seconds. Layer three is manual recovery as the final fallback. Safety guardrails ensure the guard never disables itself or core packages, disables only one plugin per incident, and uses re-entrance locks plus freshness checks to avoid false positives during live reload. It is zero-config, ready to work the moment you install it.

Who is it for? Anyone who has installed plugins in PawWork and experienced a single bad plugin causing repeated crashes or hangs will see the value immediately. Install it once and it silently handles the rest, reducing triage effort from minutes to zero.

Use Cases

  • A plugin crashes during loading and PawWork falls into a crash loop with no clear culprit
  • A plugin blocks the event loop so hard even in-process polling stops working
  • You want a safety net before installing a new plugin so one bad dependency cannot take down the entire workspace

Best For

  • Developers managing a stack of third-party plugins in PawWork
  • Operators who have lost hours to repeated restarts caused by a single faulty plugin
  • Any PawWork user who wants a zero-config, automatic quarantine safeguard for startup failures