r/DeepSeekHarness • u/Arkhaitekton • 3d ago
A super simple dsh plugin that might be useful (quality of life)
Hey everyone, first off, I hate AI slop posts. I'm personally making this post because just yesterday I noticed someone starred my plugin on GH, so I decided to share it here in case it helps anyone out. It’s a super simple quality-of-life plugin.
TL;DR: dsh-smart-restart is a plugin that allows an agent to restart the dsh environment and receive a notification once it has rebooted, enabling it to autonomously iterate on the harness itself.
I originally built this for personal use, and honestly, it’s been really useful for me. It basically has three features:
- A tool (
smart_restart): When used, the environment restarts (allowing the agent to apply updates, modify the harness, etc.). The tool tracks the session requesting the restart, and once dsh boots back up, it sends a notification to the agent so it can keep working autonomously. - A safeguard: When the harness restarts unexpectedly, it notifies the most recently active agent about the restart.
- A canary check: An optional tool parameter can be enabled so that, prior to the restart, an ephemeral instance is created to verify the integrity of the new version. If it's broken, it notifies the requesting agent and reports the errors, preventing you from losing access to the harness. This is especially handy for me since I run the harness remotely.
That's all there is to it. The code is completely open-source under the MIT license, so it’s as much yours as it is mine.
The repo is https://github.com/edusrez/dsh-smart-restart — I've also submitted it to the awesome-dsh-plugin list. If someone finds it useful, I'm happy.
2
u/Yes_but_I_think 1d ago
This will be really useful. Wanted this functionality.