AI Agent Hub
Back to plugins
🧩

dsh-system-cleanup

admin-security Updated 2026.09.08

Run the following command in DeepSeek Harness:

dsh plugin install Paul090515/dsh-system-cleanup

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install Paul090515/dsh-system-cleanup in your DeepSeek Harness terminal to install this plugin, sourced from https://github.com/Paul090515/dsh-system-cleanup ; restart dsh web after installation to activate it.

About this plugin

As your system runs for weeks, caches, logs, and temporary files pile up silently. Manually hunting them down is tedious and risky—one wrong drag-and-drop and a project folder is gone. dsh-system-cleanup is a conservative cleanup skill for DeepSeek Harness that lets you free up disk space by simply saying "clean up" in conversation.\n\nIts guiding principle is "better to miss a file than to delete the wrong one." Every run starts in dry-run mode, reporting exactly what would be cleaned and how much space would be freed before asking for confirmation. All deletions go to the Trash or Recycle Bin, fully recoverable at any time. A strict whitelist restricts cleaning to known-safe cache, log, and temporary directories; Documents, Downloads, Desktop, project folders, and the home-directory root are never touched.\n\nAdditional safety layers include a default 7-day age filter to skip recently used files, an lsof check that bypasses files currently opened by a running process, a hard rule that skips deletion entirely if no recoverable-trash tool is available (never downgrading to permanent removal), and automatic skipping of directories that would require admin or root privileges. The skill runs across macOS, Linux, and Windows, and optionally ships with scheduled-task setup for weekly automated cleanup.\n\nIdeal for DSH users on any major OS who want periodic disk-space reclamation without the anxiety of manual cleanup—especially anyone who has accidentally deleted a file and is cautious about letting automation loose on their system.

Use Cases

  • When disk space runs low, simply tell the agent "clean up" to safely release caches and temp files
  • Set up a scheduled task for weekly automated cleanup of system junk with zero manual effort
  • Run the same cleanup flow across macOS, Linux, and Windows with automatic script dispatch

Best For

  • DSH users who need periodic disk-space reclamation
  • Cautious developers wary of automated cleanup deleting important files
  • System maintainers managing cross-platform macOS, Linux, and Windows environments