AI Agent Hub
Back to plugins
🧩

dsh-disk-guard

admin-security Updated 2026.08.28

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