dsh-disk-guard
Run the following command in DeepSeek Harness:
dsh plugin install kaka-crypto/dsh-disk-guard
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install kaka-crypto/dsh-disk-guard in your terminal to install; the full source is available at https://github.com/kaka-crypto/dsh-disk-guard
About this plugin
DSH sessions quietly pile up downloads, npm caches, and temp files on the C drive until space runs out. dsh-disk-guard tackles this by redirecting all artifact, cache, and temporary directories to a user-chosen non-C drive, rewriting TMP/TEMP and npm_config_cache so child processes inherit the change, and persisting the settings into $DSH_HOME/.env so every subsequent start picks them up automatically.
Beyond directory relocation, the plugin injects a path-discipline prompt before the first user message of each session, explicitly telling the agent where files must land and forbidding writes to the C drive. The bundled disk_guard tool exposes status (drive free space and directory sizes), clean (age-based cache purging scoped strictly to plugin-managed paths), and set (instant directory switch) actions, giving you a single in-session command to audit and tidy your disk layout.
Built for Windows DSH users with limited C-drive space who want a one-time, persistent fix instead of manual cleanup. Even with zero configuration, the plugin auto-selects the non-C drive with the most free space (5 GB or more) and starts working immediately.
Use Cases
- C drive space is running out while DSH downloads and caches keep growing on the system partition
- Need every agent session to follow a single, enforced path-discipline rule so artifacts do not scatter across drives
- Want scheduled, time-based cleanup of expired caches and temp files that never touches user data outside plugin-managed directories
Best For
- Windows DSH developers with limited C-drive space
- Heavy DSH users who generate large volumes of downloads, exports, and cache files per session
- Agent administrators who want zero-config auto-selection of the optimal off-C-drive partition
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.