Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add MSApps-Mobile/claude-plugins --skill vm-cleanupgit clone --depth 1 https://github.com/MSApps-Mobile/claude-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/msapps-mobile/claude-plugins/vm-cleanup)<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/vm-cleanup"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/vm-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/vm-cleanup"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/vm-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00095 | $0.01398 |
| Opus 5.5 | $0.00038 | $0.00559 |
| Sonnet 5.5 | $0.00019 | $0.00280 |
| Haiku 4.5 | $0.00010 | $0.00140 |
Grade C, and why
vm-cleanup scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
find /sessions -name __pycache__ -type d -exec rm -rf {} + 2>/dev/null How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
VM / Session Disk Cleanup
Recover from or prevent disk-full situations in Claude's working environment.
Context
Both Cowork session VMs and Claude Code sandboxes have limited disk space. Long sessions with package installs, builds, and cached data can fill the disk completely. When full, ALL Bash commands fail with ENOSPC errors because the shell can't create temp files — a deadlock where you can't even diagnose the problem.
Cleanup Strategy
Run cleanups in phases — smallest operations first so they succeed even when disk is critically low.
Phase 1: Emergency (needs almost zero free space)
Run these first when disk is completely full or nearly full:
# Remove Python bytecode (tiny files, frees inodes)
find /sessions -name __pycache__ -type d -exec rm -rf {} + 2>/dev/null
find /sessions -name "*.pyc" -delete 2>/dev/null
find . -name __pycache__ -type d -exec rm -rf {} + 2>/dev/null
# Clear temp files
rm -rf /tmp/*.tmp /tmp/*.log /tmp/tmp* /tmp/pip-* /tmp/npm-* 2>/dev/null
# Clear apt/package manager cache
rm -rf /var/cache/apt/archives/*.deb 2>/dev/null
apt-get clean 2>/dev/null
Phase 2: Medium cleanup (clear package caches)
# Clear pip cache
pip cache purge 2>/dev/null
rm -rf ~/.cache/pip 2>/dev/null
# Clear npm cache
npm cache clean --force 2>/dev/null
rm -rf ~/.npm/_cacache 2>/dev/null
Phase 3: Heavy cleanup (removes reinstallable items)
# Remove node_modules (recreate with npm install)
find /sessions -name "node_modules" -type d -exec rm -rf {} + 2>/dev/null
find . -name "node_modules" -type d -exec rm -rf {} + 2>/dev/null
# Remove build artifacts (recreate with build command)
find /sessions \( -name ".next" -o -name "dist" -o -name "build" \) -type d -exec rm -rf {} + 2>/dev/null
find . \( -name ".next" -o -name "dist" -o -name "build" \) -type d -exec rm -rf {} + 2>/dev/null
# Remove global npm packages
rm -rf ~/.npm-global/lib/node_modules/* 2>/dev/null
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 146 lines · 95 tokens per session scan C 43f2e29baaf0
vm-cleanup is a skill published in the GitHub repository MSApps-Mobile/claude-plugins (12 stars, last pushed today), licensed MIT. It adds 95 tokens to every session and 1,398 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.
vm-cleanup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| vm-cleanupMSApps-Mobile/claude-plugins | Skill | 12 | today | MIT | C | 95 | Claude Code |
| marshalSethGammon/Citadel | Skill | 943 | 4d ago | MIT | A | 56 | Claude Code |
| wikiSethGammon/Citadel | Skill | 943 | 4d ago | MIT | A | 56 | Claude Code |
| handoverme2resh/apexyard | Skill | 555 | 6d ago | MIT | A | 25 | Claude Code |
| projectsme2resh/apexyard | Skill | 555 | 6d ago | MIT | A | 24 | Claude Code |
| tutorialme2resh/apexyard | Skill | 555 | 6d ago | MIT | B | 42 | Claude Code |
| martinloop-governKeesan12/martin-loop | Skill | 262 | 3d ago | Apache-2.0 | A | 29 | Claude Code, Codex |