More screenshots
Works with the AI Agents you already use
DevSweep: Safe Mac Disk Cleanup for Developers
Safe macOS developer disk cleanup for Xcode, Gradle, and package manager caches via DevSweep MCP.
Free
DevSweep: Safe Mac Disk Cleanup for Developers
Example session with this skill installed
My build just failed with ENOSPC. Can you check my disk and see if there is anything safe to clean up?
- Read your context and instructions
- Compiled the devsweep
I've checked your disk status. You are currently at a critical storage level.
| Metric | Value |
|---|---|
| Current Free Space | 1.2 GB |
| Status Level | critical |
| Safe to Free | 42.8 GB (Rebuilds tier) |
I have generated a cleanup plan for the rebuilds tier. A scan was performed on your developer directories.
Cleanup Plan (rebuilds tier)
| Target | Path | Potential Reclaim | What Happens |
|---|---|---|---|
| Xcode | ~/Library/Developer/Xcode/DerivedData | 28.4 GB | Regenerated on next build |
| Gradle | ~/.gradle/caches | 8.2 GB | Redownloaded/rebuilt as needed |
| Node.js | ~/projects/legacy-app/node_modules | 1.5 GB | Reinstalled via npm install |
| Docker | Build cache | 4.7 GB | Rebuilt on next docker build |
Protected Items:
~/projects/current-sprint: Skipped (Uncommitted changes detected).iPhone 15 Simulator: Skipped (Process currently running).
Next steps
- Would you like me to proceed with
clean_safeto reclaim the 42.8 GB? - If you need more space, I can show you the
redownloadtier (Simulator Runtimes), but those must be deleted via the DevSweep app. - After cleaning, I will retry your failed build command.
Connects securely to your tools. The creator never sees your data.
About this skill
Build failures caused by ENOSPC or "No space left on device" errors halt development. Manual cleanup of macOS developer directories is risky, often leading to accidental deletion of uncommitted work or important simulator data. This skill provides a safe interface to manage disk space using the DevSweep MCP server.
It categorizes developer junk into safety tiers to ensure only regenerable data like Xcode DerivedData or package manager caches are targeted. The agent checks for active projects and uncommitted changes before proposing a cleanup plan, preventing data loss that standard rm -rf commands ignore.
What it does
- Check disk status returns current free space and a health level from
oktocritical. - Analyze cleanup potential scans for regenerable files and predicts how much space can be recovered.
- Perform safe cleaning removes only "Rebuilds" tier items like
node_modulesor Gradle caches. - Protect active work automatically skips directories belonging to active projects with uncommitted changes.
- Identify redownloads flags large items like simulator runtimes that require internet to restore.
How it works
- Run
disk_statusto identify if the volume is at aloworcriticalthreshold. - Execute
plan_cleanupfor therebuildstier to generate a list of safe-to-delete targets. - Present the plan to the user, highlighting the largest items and any protected directories.
- Execute
clean_safeonly after user confirmation to reclaim the identified space.
Frameworks & tools
This skill requires the DevSweep macOS app, which is free and open source (MIT): https://github.com/ikbalcan/devsweep. Its MCP server runs locally over stdio and covers Xcode, iOS simulators, the Android SDK, Gradle, Docker, project build folders and package-manager caches. Add it to Claude Code with:
claude mcp add devsweep -- /Applications/DevSweep.app/Contents/Resources/devsweep mcp
Why this beats prompting it yourself
Writing custom scripts to clean ~/Library/Developer is dangerous and lacks context. This skill respects specific protections, such as "Always keep" lists and running simulators, that a simple prompt or shell command cannot detect.
Use cases
- Resolve build failures caused by "No space left on device" errors.
- Clean up gigabytes of Xcode DerivedData without breaking active builds.
- See how much stale simulator runtimes and NDKs would free before removing them in the app.
Known limitations
Only supports macOS. The agent cannot delete "Redownload" or "Has data" tier items or your own files; those are handled in the DevSweep app (or devsweep clean --tier redownload for the Redownload tier). Agent cleaning can be turned off in DevSweep under Automation > Allow AI agents to clean.
macOS only. Cannot delete Redownload tier or user files. Agent cleaning must be enabled in DevSweep app settings.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
Requires
Permissions
Cleaning goes through DevSweep's local MCP server, which deletes only regenerable build output and caches, and only after the user confirms. The terminal is used only for the DevSweep CLI fallback when MCP is not set up. Nothing is sent over the network.