dsh-treekeeper
Run the following command in DeepSeek Harness:
dsh plugin install xswt442-cmd/dsh-treekeeper
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install xswt442-cmd/dsh-treekeeper in the DeepSeek Harness terminal to install this plugin; the source is available at https://github.com/xswt442-cmd/dsh-treekeeper
About this plugin
When you run multiple plugins and subagent sessions concurrently inside DSH, the host process keeps spawning new children. Over time, leaked children, orphaned processes, and forgotten plugin subtasks pile up quietly — they are absent from the job ledger and hard to spot in a system task manager. dsh-treekeeper exists to close that blind spot: it lays the host OS process descendants side by side with the available task ledger so you can see exactly who is still running and who has been left behind.
The workflow has three layers. Sampling targets only the direct descendants of the DSH host, so unrelated children from the launcher are never misattributed. Detection flags duplicate command lines, orphaned processes, and long-running plugin subtasks. Attribution cross-references jobs and the selected session subagent descendant tree without waking cold sessions. Once an anomaly surfaces, open the global panel from the Mini Utility Dock or click straight into the current session from its title bar. After confirming, trigger a protected tree termination — system-critical processes, the host itself, the launch chain, and whitelisted PIDs are all untouchable, and PID creation time is re-verified right before the kill. Every finding and action is appended to history.jsonl for later audit.
If you use DSH on Windows with multi-plugin, multi-subagent workflows and would rather not dig through Task Manager by hand every time, dsh-treekeeper is a lightweight, auditable session-level governance panel worth adding to your profile. It does not replace system-wide monitoring; it simply gives the one DSH host process tree the focused governance it deserves.
Use Cases
- Audit quietly accumulated leaked children and orphaned processes after extended DSH host uptime
- Verify real session ownership of each sub-process when multiple subagent sessions run in parallel
- Audit protected termination actions and trace findings and operation history origins
Best For
- Developers running multi-plugin, multi-subagent DSH workflows on Windows
- Ops engineers who need session-level process governance without full system monitoring
- Administrators focused on DSH host process security boundaries and termination permission management
Related Plugins
A network security red-team benchmark plugin for DeepSeek-V4.1/Flash featuring dual-layer kernel injection and zero-tool architecture for controlled model safety assessment.
A security red-team prompt plugin for DeepSeek-V4 that uses code-formal mapping and zero-trigger system prompts to enable unconditional output, intended for authorized testing and research only.
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.