disk-janitor

Reviewed at commit 0e4c0dd New version, not yet reviewed

Measures the build artifacts of the repository, shows them on the status line from 5 GB, and deletes the ones you pick in the /disk-janitor pane; data…

Made by
Kerem Gok
What we checked

Lists the git-ignored build folders of your repository (node_modules, target, .venv, dist and similar) with their sizes, shows the total once it passes 5 GB, and deletes the ones you tick in the /disk-janitor pane after you press the delete button twice. Data folders such as data, models or uploads are never listed. It makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Hooks: session.start (registers /disk-janitor, starts a scan and, in interactive sessions, a rescan every 60 s), turn.complete (rescans at most every 10 minutes), command.run (pane, list, rescan, delete <path>), ui.render for its pane, ui.close. Runtime calls: $.process.run for git rev-parse, git ls-files --others --ignored --exclude-standard --directory, git check-ignore, du -sk, and rm -rf -- <root>/<path> (argv, no shell); $.fs.exists, list and stat; $.sidebar.set/clear, $.ui.status, $.ui.open/close/log. Deletion safeguards: only folders from the last scan, a name allowlist (certain, unsure, and a never-delete data list), marker files for node_modules, target and venvs, symlinks and paths outside the repository are refused, each folder is re-checked (still a directory, still git-ignored, same class) just before rm, the pane button needs two presses, and the typed command refuses unless the origin is the prompt composer or the bridge (never a plugin or the model). Folders of class 'unsure' (dist, build, out, bin, obj, vendor, .cache, coverage) are listed but not preselected; 'certain' ones are preselected in the pane. Uses Unix tools (du, rm), so it does not work on plain Windows. No network, no obfuscation.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events

Measures the build artifacts of the repository, shows them on the status line from 5 GB, and deletes the ones you pick in the /disk-janitor pane; data directories are never listed.

Made this mod? Add a badge to your README

modsforClaude badge for disk-janitor

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/disk-janitor.svg)](https://modsforclaude.com/mods/disk-janitor/)

← All mods