dsh-guard
Run the following command in DeepSeek Harness:
dsh plugin install x2802490130-prog/dsh-guard
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install x2802490130-prog/dsh-guard in DeepSeek Harness to install; source code is at https://github.com/x2802490130-prog/dsh-guard
About this plugin
In DSH plugin development, a single failed run can silently corrupt local state, and manual troubleshooting and rollback are slow and error-prone. dsh-guard is a local guard plugin for DSH developers whose core goal is to make failures visible, states rollback-able, and operations traceable, so you can stop wrestling with repeated restarts during debugging.
It offers rolling snapshots (default: keep the last 5, tagged with timestamp and reason), automatic archiving after a successful boot passes the grace period, and automatic rollback to the last-good snapshot when a plugin run failure is detected within safe guardrails. All management actions go through a loopback-only panel and REST API bound to 127.0.0.1, covering status, snapshot listing, one-click save, rollback, backup restore, and event logs, with no external exposure.
If you build or debug DSH plugins and keep hitting environments that need manual recovery after a bad launch, dsh-guard significantly reduces the risk of shipping a broken state. It does not replace boot-level crash rescue (that belongs to the external launcher), but it covers the vast majority of runtime rollback scenarios that can be automated, acting as a lightweight, zero-dependency, MIT-licensed local safety net.
Use Cases
- Automatic rollback to the last-good snapshot when a plugin run fails, eliminating manual triage
- Auto-archive after each successful boot so you can revert to any recent version during iterative development
- Inspect status, snapshots, and event logs at a glance via the loopback-only panel without digging through files
Best For
- Developers who iterate on DSH plugins daily and need fast, safe state rollback
- Teams that want to minimize broken-state incidents through automated guardrails and archiving
- Users who prefer fully local-first tooling with no external dependencies or network exposure
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.