Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By RyanKim17920v0.3.0MITIn 1 marketplace
Watches free disk space (the macOS data volume, or / on Linux), shows it in the status line and alerts once as it falls through each tier (20, 10, 5, 1 GB), naming the biggest space users. At or below 5 GB free only light commands and cleanup run.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Alert tiers (GB free)tiersGb
Comma-separated free-space tiers in GB. Each alerts once as free space falls through it; a deeper tier always alerts. All re-arm once free space is back above the top tier plus 10%. Malformed input uses the default.
stringdefault 20,10,5,1
Gate modegateMode
allowlist (default): while gated, a Bash command runs only if every part of it is light (reading, inspecting, cleanup, small file chores, everyday git, --help); everything else is refused, including a tree copy (cp -r, ditto) and a light name reached by a path or with PATH, a pager or an editor changed. patterns: the old gate, which refuses only commands matching its heavy-work rules.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; reads environment variables (HOME); sends prompts on its own.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
One of allowlist, patterns
stringdefault allowlist
Show the status-line figureshowStatus
Show the current figure in the status line.
booleandefault true
Show toastsshowToasts
Show a toast when an alert fires and each time the gate refuses a command.
booleandefault true
Gate at or below (GB free)gateBelowGb
Refuse new heavy work while free disk space is at or below this many GB.
numberdefault 5
Gate new heavy workgateHeavyWork
While free disk space is at or below gateBelowGb, refuse new work: the Agent tool and every Bash command that is not light (by gateMode). Reading, inspecting, stopping and cleanup (rm, docker prune, cache cleans) always run, since they free disk. Lifts by itself on recovery.
booleandefault true
Alert cooldown (minutes)cooldownMinutes
A tier does not alert again within this many minutes. A deeper tier is never held back.
numberdefault 60
Check interval (seconds)intervalSeconds
How often free disk space is read.
numberdefault 300
Wake the main thread on alertwakeMainOnAlert
Submit one short prompt to the main thread when an alert fires. Off by default: an alert shows a toast, the status line and a notification only.
booleandefault false
Gate allow patternsgateAllowPatterns
Regular expressions (separated by ' ;; ') for Bash commands that always run while gated, matched against each part of a command with wrappers like sudo or env stripped. In allowlist mode, this is how to add a command to the light list.
stringdefault
Extra gate block patternsgateBlockPatterns
Regular expressions (separated by ' ;; ') for more Bash commands to refuse while gated, even light ones, matched against each part of a command with wrappers like sudo or env stripped.
stringdefault
System notificationssystemNotifications
Send a system notification when an alert fires.
booleandefault true
Gate light subcommandsgateLightSubcommands
Tool subcommands (one or two words after the tool, separated by ' ;; ') that count as light in allowlist mode, like git status: for example 'mytool status ;; mytool list ;; mytool jobs show'. The tool's global flags before the subcommand are skipped and any arguments after it are allowed. Other subcommands of the tool stay refused while gated.
stringdefault
Watches free disk space on a timer: the macOS data volume (df -k /System/Volumes/Data), or / where that volume does not exist, as on Linux. It shows it in the status line and alerts once as free space falls through each tier (20, 10, 5, 1 GB), naming the biggest space users. At or below gateBelowGb (5 GB by default), only light commands and cleanup run, so a session cannot keep filling the disk. The gate lifts by itself on the first check after free space is back above that tier. Nothing is ever deleted by the mod.
After adding the marketplace (see Install in the main README):
claude plugin install storage-watch@ryk-claude-mods
Or add the marketplace and install in one step:
claude plugin install storage-watch --marketplace RyanKim17920/ryk-claude-mods
| Option | Default | What it does |
|---|---|---|
tiersGb | "20,10,5,1" | Alert tiers in GB; each alerts once as space falls through it |
intervalSeconds | 300 | How often free space is read (minimum 5) |
cooldownMinutes | 60 | A tier does not alert again within this time |
wakeMainOnAlert | false | Send one short prompt to the main thread on alert |
showStatus | true | Show the status-line figure |
showToasts | true | Show a toast on alert and on each gate refusal |
systemNotifications | true | Send a system notification on alert |
gateHeavyWork | true | Refuse new work at or below gateBelowGb |
gateMode | "allowlist" | allowlist: only light commands run while gated. patterns: the older gate, which refuses only commands matching its built-in heavy-work rules (Docker, builds, installs, downloads, train/eval scripts) |
gateBelowGb | 5 | Gate tier in GB free (at or below) |
gateBlockPatterns | "" | More regexes to refuse while gated, even light commands, separated by ;; |
gateAllowPatterns | "" | Regexes that always run while gated, separated by ;;. In allowlist mode, this adds commands to the light list |
gateLightSubcommands | "" | Tool subcommands that count as light in allowlist mode, separated by ;;, for example mytool status ;; mytool list ;; mytool jobs show. Each entry is a tool and one or two subcommand words; the tool's global flags before them are skipped and any arguments after are allowed. The tool's other subcommands stay refused |
The gate keeps working when all UI options are off.
It is the same gate as mem-watch's (hooks/gate.ts is shared byte for byte). While gated, the Agent tool is refused, and a Bash command runs only if every part of it is light. A part is each command of a chain or pipe, each subshell, each $(...) (also inside $(( )) and ${...}), each bash -c, eval, trap or env -S string, and each find -exec or fd -x command, with wrappers such as sudo, env, time, timeout, nohup and xargs stripped first. A light name reached by a path (./bin/ls), with PATH, a pager or an editor changed, or with an option that runs a program (rg --pre, awk 'BEGIN{system(...)}', git -c with a key that can run a program) is refused, and so is --help after a script given to an interpreter. See mem-watch's README for the full rules.
Cleanup stays allowed at low disk, since it is how disk is freed: rm, rmdir, docker system prune and every other docker ... prune, docker rm/rmi, git worktree remove/prune, git clean, brew cleanup, npm cache clean, pip cache purge, uv cache clean, conda clean, cargo clean, hf cache and make clean. Reading and inspecting stay allowed too, including du and df to find what to delete, and so do small file chores (mv, mkdir, a single-file cp) and everyday git (add, commit, push, pull, checkout). Downloads (curl -O, wget, git clone, docker pull, hf download), installs, builds and any script are refused. So is a copy of a whole tree (cp -r, cp -a, cp --recursive, cp --archive, ditto) and a curl whose output is redirected to a file (curl url > f; curl -o and wget are refused by the shared gate already): the shared gate lets cp run, since it costs no memory, but storage-watch refuses tree copies in allowlist mode because they are what fills a nearly full disk. Its rule runs on every part the gate reads, so bash -c 'cp -r a b' and find -exec cp -r are refused too, and gateAllowPatterns does not lift it.
The gate runs no df per tool call. It reads the last reading the timer stored in the mod's shared store, stamped with the time it was taken. A missing reading, or one older than 3 intervals, fails open. Any error in the gate also lets the call through. Every session sharing the store is gated by the freshest reading. -p and SDK runs are gated too.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub ryankim17920/ryk-claude-mods --plugin storage-watchPlugins from other owners that cover similar ground