Reclaim
Reclaim answers “why is my disk full?” for developers. It measures what development left behind (agent transcripts, package caches, Xcode data, Android tooling, toolchains, test browsers, editor caches, local models, project build output), tells you how safe each item is to remove, and moves what you choose to the system Trash. It never hard-deletes anything you or a tool made, and every move is a dry run first and can be undone from the Trash. Two exceptions, both described below: emptying the old archive (see the old archive), and two commands that a tool’s own program runs for you after a preview (see Clean up elsewhere). The safety page has the full list of rules.
Sizes are allocated bytes: what the files take on disk, not what they would add up to. On APFS (macOS), cloned files share space, so a size can be “about” what you free. Where the two differ by more than 5 percent, a separate Frees figure says how much moving the item gives back.
See what development left on this disk
Section titled “See what development left on this disk”Each target (one kind of thing, such as the npm cache or Xcode DerivedData) gets one of three classes:
| Class | Meaning |
|---|---|
| Safe to remove | Re-created on demand, holds nothing you made. Quick clean and auto clean take only these. |
| Review first | Costly or impossible to get back (an archive, a virtual device, a toolchain, a model). Moved only when you pick the item. |
| Clean up elsewhere | Its owner keeps track of it (a registered simulator, an SDK package, a VM disk). Shown with what owns it and never moved. |
Open ReclaimOverview (⌘2 on macOS, Ctrl+2 on Windows and Linux). The page shows:
- A disk bar for the disk, split into Safe to remove, Review first, Clean up elsewhere, everything else, and free space.
- Four figures: Free now, Safe to clean, Worth reviewing, and In the Trash.
- Start here: the one target that gives the most back with the least risk, with the reason, a Show button, and a Move to the Trash button.
- Growth and Map (see Growth history and the map).
- Everything: every target with its class and size, ordered By group or By size.
The left list repeats the groups and targets. The popover has a Disk tab with free space, the safe total, the biggest targets, and Open Reclaim.


yardmaster reclaimyardmaster reclaim --group package_cachesyardmaster reclaim --jsonMacintosh HD · 112.4 GB free of 494.4 GB┌─────────────────────┬────────────────────────┬────────────────────┬───────┬─────────┬─────────┬─────────────┐│ GROUP ┆ TARGET ┆ CLASS ┆ ITEMS ┆ SIZE ┆ FREES ┆ LAST CHANGE │╞═════════════════════╪════════════════════════╪════════════════════╪═══════╪═════════╪═════════╪═════════════╡│ Xcode and simulators┆ Xcode build data ┆ Safe to remove ┆ 14 ┆ 9.2 GB ┆ ┆ 3 days ago ││ Package caches ┆ npm cache ┆ Safe to remove ┆ 1 ┆ 3.1 GB ┆ ┆ today │└─────────────────────┴────────────────────────┴────────────────────┴───────┴─────────┴─────────┴─────────────┘Safe to remove 12.3 GB · Review first 4.0 GB · Clean up elsewhere 21.5 GB · measured in 3.2 s
Nothing was moved. `yardmaster reclaim --clean` plans moving the safe items to the Trash.Groups: agent_data, xcode, android, package_caches, toolchains,
test_browsers, editors, local_ai, containers, projects, downloads,
app_caches. --threads N sets the measuring threads. All flags are in the
CLI reference.
The disk_footprint tool measures the disk now (a fresh, read-only scan that can take
several seconds) and returns free space, totals by class, groups, and the largest
targets. It records nothing, so the app’s growth history is untouched.
| Argument | Meaning |
|---|---|
group |
Only this group: xcode, android, package_caches, toolchains, test_browsers, editors, local_ai, containers, projects, downloads, or app_caches. All when absent. An unknown name returns an error that lists the valid ones. |
top |
How many of the largest targets to list (default 10, at most 50). |
{ "name": "disk_footprint", "arguments": { "top": 5 } }{ "disk": { "name": "Macintosh HD", "total_bytes": 494384795648, "free_bytes": 112400000000, "free_percent": 22 }, "measured_bytes": 37000000000, "safe_bytes": 12300000000, "review_bytes": 4000000000, "elsewhere_bytes": 21500000000, "groups": [ { "group": "xcode", "label": "Xcode and simulators", "bytes": 21000000000, "safe_bytes": 9200000000 } ], "targets": [ { "id": "npm-cache", "name": "npm cache", "group": "package_caches", "class": "safe", "bytes": 3100000000, "items": 1, "changed_days_ago": 0, "after": "npm downloads packages again the next time a project installs them.", "clean_up": null } ], "more_targets": 11, "took_ms": 3200, "hint": "Read-only: this server never moves or deletes anything. To free space, ask the user to open Yardmaster -> Reclaim ..."}class is safe, review, or elsewhere. For elsewhere targets, clean_up holds
the owner’s command or app. AI agent sessions are not in this result; use
get_usage and Reclaim’s AI agent data page for those.
Sample prompt: “What’s filling my disk?” Cleaning is not available over MCP: the server
has no write tools. The tool’s hint tells the agent to ask you to clean in the app or
with yardmaster reclaim --clean.
Look inside one target
Section titled “Look inside one target”Open a target to see what it is, what happens when it goes, and its items largest first with their age.
In Reclaim, click a target in the left list or in Everything. The page shows the class, size, an explanation, When it goes (what you lose and how it comes back), and the Items list. A line in amber says when the target is busy right now. Items Yardmaster keeps (such as the default toolchain) say why.


yardmaster reclaim --target npm-cache --itemsMacintosh HD · 112.4 GB free of 494.4 GB┌────────────────┬────────────────────┬────────────────┬───────┬────────┬───────┬─────────────┐│ GROUP ┆ TARGET ┆ CLASS ┆ ITEMS ┆ SIZE ┆ FREES ┆ LAST CHANGE │╞════════════════╪════════════════════╪════════════════╪═══════╪════════╪═══════╪═════════════╡│ Package caches ┆ npm cache ┆ Safe to remove ┆ 1 ┆ 3.1 GB ┆ ┆ today ││ ┆ _cacache ┆ ┆ ┆ 3.1 GB ┆ ┆ today │└────────────────┴────────────────────┴────────────────┴───────┴────────┴───────┴─────────────┘--target takes a target id from the catalog (an unknown id lists the valid ones).
For a “Clean up elsewhere” target it also prints how to clean it, as below.
Use disk_footprint with group to look at one group (for example "projects"). It
lists targets, not items. Not available over MCP: item lists, and any cleaning.
Quick clean the safe items
Section titled “Quick clean the safe items”Quick clean moves every Safe item that is not in use. It shows a dry run first (what moves, how big, what stays and why), then moves to the Trash only when you confirm.
On ReclaimOverview click Quick clean (the button shows the total, for example “Quick clean · 7.0 GB”). Read the list, open “N stay where they are” to see what was left out, then click Move 7.0 GB to the Trash. Cancel closes the sheet and moves nothing. The same button is in the popover Disk tab, and Start here has its own Move to the Trash for one target.


yardmaster reclaim --clean # dry run over every Safe itemyardmaster reclaim --clean --group package_cachesyardmaster reclaim --clean --yes # move themWould move 3 items (12.3 GB) to the Trash:┌────────────────┬──────────────────┬────────────────┬────────┐│ TARGET ┆ ITEM ┆ CLASS ┆ SIZE │╞════════════════╪══════════════════╪════════════════╪════════╡│ Xcode caches ┆ DerivedData ┆ Safe to remove ┆ 9.2 GB ││ npm cache ┆ _cacache ┆ Safe to remove ┆ 3.1 GB │└────────────────┴──────────────────┴────────────────┴────────┘Left in place: 1 its app is running.Re-run with --yes to move them. Nothing is deleted: `yardmaster trash restore <batch>` puts them back.With --yes it prints Moved 3 items (12.3 GB) to the Trash, batch <id>. and the undo
command. Without --yes nothing moves.
Not available over MCP: the server has no write tools. disk_footprint shows what is
there. An agent should ask you to clean in the app or with yardmaster reclaim --clean.
Clean a chosen set
Section titled “Clean a chosen set”Review items are never taken by Quick clean. You pick them one by one on the target page.
Open the target. Tick items, or click Select all safe (Select all on a target with no Safe items) and Select none. Click Move N items to the Trash, check the dry run, then confirm.


yardmaster reclaim --clean --target android-avds # dry run, every item that may moveyardmaster reclaim --clean --target android-avds --item Pixel_8 # only this item (name or path)yardmaster reclaim --clean --target android-avds --item Pixel_8 --yes--item is repeatable and needs --target. A name that matches no item or several
items stops with an error that says how to list them (--items).
Not available over MCP: the server has no write tools.
Why an item is refused
Section titled “Why an item is refused”Before anything moves, and again right before each move, Yardmaster re-checks the item. It stays where it is when:
- the owner app is running (Xcode, Android Studio, an editor);
- a process is working inside it;
- it was written in the last 10 minutes (for an item you picked by hand, the app offers Move anyway…: it warns how long ago it was written and asks once more; Quick clean, auto clean, and the CLI never move it);
- it is a link, sits on another volume, or is something Yardmaster keeps on purpose (such as the default toolchain);
- it is project build output that no marker file names, or that git does not ignore (see Clean project build output);
- its owner cleans it up (Clean up elsewhere), or it is already gone.
The dry run lists these under “N stay where they are” (app) or “Left in place” (CLI), with the reason for each. Close the app, wait, and plan again.
Clean up elsewhere
Section titled “Clean up elsewhere”Some data is tracked by the tool that owns it: simulator devices and runtimes, Android system images, the pnpm store, Ollama, LM Studio, Hugging Face and Docker, OrbStack, Colima and Podman disks. Deleting the files would leave the owner confused or damage a registered disk. Yardmaster shows the size and what owns it, and never moves it.
Two of these targets have a command that is safe to run, and the app can run it for you after a preview:
| Target | Command | What it removes |
|---|---|---|
| Simulator devices (macOS) | xcrun simctl delete unavailable |
Only the simulators listed in the preview: those whose runtime is no longer installed, with their apps and data. |
| pnpm content store | pnpm store prune |
Packages no project links to. pnpm does not list them in advance, so the preview shows the store and its size. |
The target page shows how to clean it, the owner’s command in a box with Copy, and “Managed by” the owning app. For the two targets above there is also a Run… button. It opens a preview with the exact command line (the resolved program), what it removes with sizes, and a note that none of it goes to the Trash. Cancel closes the preview and runs nothing. Only a second click on Run (or Delete with the total, when the preview lists simulators) runs the command. For every other target, run the command yourself.
Run is refused when the preview is more than 10 minutes old, when the program is not the one the preview used, when a simulator appeared that the preview did not show, or when pnpm is running. Yardmaster runs the program itself, with no shell, and ends it after 5 minutes. It never runs one in the background.




yardmaster reclaim --target ollama-modelsOllama models: List models with ollama list and remove the ones you do not use with ollama rm. in Ollama run: ollama rm <model>The CLI prints the command and never runs it, for the two targets above as well.
disk_footprint returns the owner’s command in clean_up for these targets. The
server never runs it.
Clean project build output
Section titled “Clean project build output”Reclaim finds node_modules, target, .venv, Pods, build, .next, framework caches
such as .angular, .nx, .astro, and .turbo, and similar folders (Swift .build,
Elixir _build, Zig zig-out, Haskell .stack-work, .tox). It never offers dist or
coverage, which can be what you ship. It does not crawl your home folder. It looks only in:
- the folders your agents were started in (Claude Code, Codex, and the others), unless you turn that off, and
- folders you add yourself.
A folder is offered only when a marker file next to it names it (Cargo.toml for target,
package.json for node_modules and .next, Podfile for Pods, and so on) and, inside
a git repository, git ignores it. A folder git tracks, or one in a repository git cannot
read, is never offered. Projects are looked for up to four folders below a root.
Projects split by their last activity. Idle projects (untouched for 30 days) are Safe to
remove. Recent projects are Review first. What moves is what the next npm install or cargo build brings back.
Open Reclaim and find Project build output in the left list.
It has two targets, Idle projects and Recent projects. Each item is named by
its path from the root, such as code/storefront/node_modules. Tick items and move them
to the Trash as in Clean a chosen set. Choose the folders in
Choose where Reclaim looks.


yardmaster reclaim --group projects --itemsyardmaster reclaim --clean --group projects # dry runyardmaster reclaim --clean --target project-output-recent --item code/storefront/node_modulesThe target ids are project-output-idle and project-output-recent. The CLI reads the
same settings as the app, so it looks in the same folders.
disk_footprint with "group": "projects". Not available over MCP: cleaning.
Old installers in Downloads
Section titled “Old installers in Downloads”Off by default. When on, Reclaim lists disk images, installers, and archives in your
Downloads folder that have not changed for 30 days. The endings it counts are .dmg,
.pkg, .zip, .iso, .exe, .msi, .appimage, .deb, .rpm, .tar.gz, .tgz,
.7z, .rar, and .xip. Only regular files directly in Downloads count: no folders, no
links, no hidden files. The target is Review first, so Quick clean and auto clean never
take it, and an archive may be the only copy of something. On macOS the first scan asks
for access to Downloads.
Turn it on in SettingsGeneralReclaim with Old installers in Downloads. A Downloads group then appears in Reclaim with Old installers and archives. Tick the files you want and move them to the Trash.


yardmaster settings set reclaim_downloads trueyardmaster reclaim --group downloads --itemsyardmaster reclaim --clean --target downloads-installers --item Old.dmgdisk_footprint with "group": "downloads". Not available over MCP: cleaning.
Clean agent data
Section titled “Clean agent data”Agent data is its own group, with its own page. Yardmaster plans moves for old sessions, leftovers (debug logs, shell snapshots, MCP logs, temporary files), and git worktrees agents created.
What it will not touch:
- A live session: one with a running process or a write in the last 10 minutes.
- Memory, config, credentials, and OAuth files. A path whitelist allows one root and one path shape per kind of item, nothing else.
- A worktree, unless git reports nothing uncommitted and a branch or tag holds its
HEAD.
Open ReclaimAI agent data. In Clean up, choose What (Sessions, Leftovers, Worktrees, All), Not used for (1 w, 30 d, 90 d, 6 mo, 1 y), and Agent (All agents or one). The charts By agent and Largest projects show where the space is; click a bar to limit the clean to it. Click Reclaim sessions (or leftovers, worktrees, all) to see exactly what moves, then confirm.


yardmaster prune --older-than 30d # sessions only, dry runyardmaster prune --older-than 30d --what all --agent claudeyardmaster prune --older-than 30d --what worktrees --project ~/code/storefrontyardmaster prune --session 7f3a --what sessions --yesyardmaster prune --older-than 30d --what sessions,caches --yes--what takes sessions (the default), caches, worktrees, or all, comma
separated. Without --older-than or --session the command stops and asks what to
prune. Without --yes it only prints the plan.
Would move 24 sessions and 3 worktrees (1.8 GB) to the Trash:┌──────────┬────────────┬──────────────────────────────┬──────────┬─────────┐│ KIND ┆ AGENT ┆ PROJECT ┆ TITLE ┆ ACTIVE ┆ SIZE │╞══════════╪════════════╪═══════════╪══════════════════════════════╪══════════╪═════════╡│ worktree ┆ Claude Code┆ storefront┆ fix-cart-total ┆ 41d ago ┆ 620 MB ││ session ┆ Codex ┆ api ┆ Add rate limiting ┆ 35d ago ┆ 48 MB │└──────────┴────────────┴───────────┴──────────────────────────────┴──────────┴─────────┘Left in place: 2 a live session.Re-run with --yes to move them. Nothing is deleted: `yardmaster trash restore <batch>` puts them back.Not available over MCP: the server has no write tools, and disk_footprint leaves
agent sessions out. To find old sessions without cleaning, use search_history (see
History).
Restore from the Trash
Section titled “Restore from the Trash”Every move is recorded in a journal so Yardmaster can put it back. Restore never overwrites: if something exists at the original place, that item is skipped and stays in the Trash. Restore works while the item is still in the Trash. After you empty the Trash, it shows as emptied.
Open ReclaimMoved to the Trash, or click Show next to In the Trash on the overview. Each batch (one clean) lists its items with their state. Click Put back on a batch or on one item.


yardmaster trash # list, newest firstyardmaster trash restore 20261204-101500 # a whole batchyardmaster trash restore 20261204-101500 --item 2 # one item (its # in the list)Batch 20261204-101500 · today · 3.1 GB still in the Trash┌───┬─────────────┬───────────┬────────┬──────────────┐│ # ┆ WHAT ┆ ITEM ┆ SIZE ┆ NOW │╞═══╪═════════════╪═══════════╪════════╪══════════════╡│ 1 ┆ npm cache ┆ _cacache ┆ 3.1 GB ┆ in the Trash │└───┴─────────────┴───────────┴────────┴──────────────┘Not available over MCP: the server has no write tools.
The old archive
Section titled “The old archive”Before the Trash, agent data cleaned by Yardmaster went into its own archive. Those
batches are still listed and can be restored. Deleting archived batches for good
(Archive::purge) is the only hard delete in Yardmaster, and it works only inside the
archive. The archive section appears only when it holds something. It also counts chats
that Codex and OpenCode archived themselves; Yardmaster only counts those and never moves
or deletes them.
In ReclaimAI agent data, the Archive section lists each batch with Restore and a delete button, and Empty archive deletes all of them. Deleting asks for a second click to confirm.
yardmaster archive # list batchesyardmaster archive restore <BATCH> # put a batch backyardmaster archive empty --older-than 30d # dry runyardmaster archive empty --older-than 30d --yes # delete for goodarchive empty takes batch ids to limit it (default: all) and prints a dry run
unless you pass --yes.
Not available over MCP: the server has no write tools.
Growth history and the map
Section titled “Growth history and the map”Each scan adds a daily point per target to a local history file. It shows how fast your dev data grows and what grew fastest.
On ReclaimOverview find Growth: a bar chart stacked by class, with a span of 30 d, 90 d, or 1 y, and Growing fastest below it. Map is a treemap of every target by size, colored by class. Click a block or a row to open the target. The Measure again button (the refresh icon at the top) rescans.


The CLI has no growth view. yardmaster reclaim --json returns the current
measurement of every target.
Not available over MCP. disk_footprint returns the current measurement, not the history.
Auto clean and the low-space notice
Section titled “Auto clean and the low-space notice”Auto clean is off by default. When on, it moves Safe items from the targets you tick to the Trash, using the same refusals as a click, and only while the app is running.
- Off: never.
- Weekly: once a week.
- When space is low: when free space falls under the threshold (default 15 GB, 1 to 1000), at most once a day.
The notification carries a size and a count, never a path: “Auto clean moved 4.2 GB to the Trash” and “12 items from safe caches”. The low-space notice is separate: one notification when free space falls under the threshold, with the safe total Reclaim can give back. It fires again only after free space goes back above the threshold.
Open SettingsGeneralReclaim. Pick Auto clean (Off, Weekly, When space is low), set Low space below, switch Notify when space is low, and tick the targets auto clean may use. Turning auto clean on for the first time ticks the safe targets it finds; untick any you want left alone.


yardmaster settings set auto_clean weekly # off | weekly | low_spaceyardmaster settings set low_space_gb 20yardmaster settings set notify_low_space falseThe ticked targets are chosen in the app. The CLI never runs an auto clean: only the app does, while it runs.
Not available over MCP: the server has no write tools and no settings.
What the catalog covers
Section titled “What the catalog covers”About 60 targets, in these groups. The class can differ by item inside a target, and a target is shown only when it exists on your machine.
| Group | Targets | Class |
|---|---|---|
| AI agent data | Sessions, leftovers, worktrees of each agent (see Clean agent data) | Safe or Review, per item |
| Xcode and simulators | DerivedData, device support, Xcode caches, SwiftUI previews, test devices, simulator caches | Safe |
| Xcode archives | Review first | |
Simulator devices (can run xcrun simctl delete unavailable), simulator runtimes |
Clean up elsewhere | |
| Android and Gradle | Android Studio caches, Gradle caches, Gradle distributions | Safe |
| Android virtual devices | Review first | |
| Android system images | Clean up elsewhere | |
| Package caches | npm, pnpm metadata, Yarn (v1 and v2+), Bun, Deno, pip, uv, Poetry, Conda, Cargo registry and git, Go module and build caches, CocoaPods, Carthage, Swift PM, pub, Homebrew downloads, Composer, Bundler, node-gyp, Electron | Safe |
| Maven repository, Poetry virtual environments | Review first | |
pnpm content store (can run pnpm store prune) |
Clean up elsewhere | |
| Toolchains | Rust toolchains, Node versions (nvm, fnm, Volta), Python versions (pyenv); the default one is always kept | Review first |
| Test browsers | Playwright, Puppeteer, Cypress binaries | Safe |
| Editors and IDEs | VS Code and Cursor caches, editor update downloads, JetBrains logs and caches | Safe |
| Local AI models | LM Studio models, Hugging Face hub | Review first |
| Ollama models | Clean up elsewhere | |
| Containers and VMs | Docker Desktop disk, OrbStack, Colima and Lima, Podman machine | Clean up elsewhere |
| Project build output | Idle projects (30 days untouched) | Safe |
| Recent projects | Review first | |
| Downloads | Old installers and archives (opt-in) | Review first |
The exact list for your version is in yardmaster reclaim --json. The groups Project build
output and Downloads appear only when they have folders to look in, as set in
Choose where Reclaim looks.
Choose where Reclaim looks
Section titled “Choose where Reclaim looks”Three settings decide which folders Reclaim measures beyond the fixed catalog. The app and the CLI read the same ones, and changing them rescans.
| Setting | App | CLI key | Default |
|---|---|---|---|
| Folders agents worked in | SettingsGeneralReclaimProject build outputFolders agents worked in | reclaim_agent_folders |
On |
| Also look in | SettingsGeneralReclaimProject build outputAlso look in | none (the app edits the list, stored as reclaim_roots) |
Empty |
| Old installers in Downloads | SettingsGeneralReclaimProject build outputOld installers in Downloads | reclaim_downloads |
Off |
Also look in takes a full path or one that starts with ~/, such as ~/code. The
folder must exist and lie below your home folder: the home folder itself and folders above
it are refused. Click Add (or press Return) to add it and Remove to drop it.
The auto clean settings, in the same Reclaim section, are covered in Auto clean and the low-space notice:
| Setting | App | CLI key | Default |
|---|---|---|---|
| Auto clean | SettingsGeneralReclaimAuto clean | auto_clean (off, weekly, low_space) |
Off |
| Low space below | SettingsGeneralReclaimLow space below | low_space_gb (1 to 1000) |
15 GB |
| Notify when space is low | SettingsGeneralReclaimNotify when space is low | notify_low_space |
On |
- History: find old sessions before you clean them.
- Hygiene: credentials left in transcripts, with a way to move a chat to the Trash.
- Safety: the full rules for deletion and what Yardmaster never does.
- CLI reference: every flag of
reclaim,prune,trash, andarchive. - App: the dashboard and popover.