self-control-guard: Intercepting Host Termination and Providing Controlled Exit for DeepSeek Harness
self-control-guard is an MIT-licensed plugin for DeepSeek Harness (DSH) designed to intercept model attempts to terminate the host process through bash tools. It serves as a UX interception layer rather than a security boundary, implementing hard rejections by identifying standard termination commands such as pkill and kill, while guiding the model to use the controlled dsh_self_exit or dsh_self_restart tools. Exit or restart requires token confirmation and writes to a restart recovery list after execution. The plugin disables the restart feature by default and explicitly errors on misconfiguration to prevent silent failures. Installation requires Node.js 22+ and DSH 0.1.0-rc.6, with the tarball generated via npm pack before installing into DS.
Read More