01 / Look at the whole Mac
First, which disk is nearly full?
On macOS 13 or later, open System Settings → General → Storage and record the available space and main categories. If your projects or tool data are on an external disk, check that disk too. Cleaning an external disk will not free the same amount of space on your startup disk.
The application bundle size shown under Applications does not represent all of a tool’s data. Chats, logs, and caches may be stored separately in your home folder. System Data includes Apple and third-party files that do not fit other categories, so it cannot all be attributed to AI tools.
- Record the time, disk name, and available space so you can compare them after cleanup.
- Consider whether you recently added tools, ran agents for extended periods, downloaded models, or created several project copies.
- Save your work and stop running tasks. When comparing before and after, pause large downloads, builds, and file copies.
02 / Separate the sources
Start with these four types of locations
| Data location | What it may contain | What to check |
|---|---|---|
~/Library/Caches, ~/Library/Logs | Some desktop application caches and logs. | Inspect only the specific subdirectories belonging to the tool. Do not clear other applications’ data in bulk. |
Tool directories under ~/Library/Application Support | Interface caches, and possibly chat databases, workspace state, and extension data. | Go one level deeper to separate caches from persistent state. The entire directory is not a cache bin. |
Hidden tool directories in your home folder, such as ~/.claude and ~/.codex | CLI settings, sessions, memory, logs, or runtime resources, depending on the tool and version. | Check for custom data paths. Do not decide what to delete based only on names or file dates. |
| Project directories and working copies created by tools | Source code, dependencies, build outputs, attachments, and task deliverables. | Check for unmerged changes or outputs you need to keep. These may be much larger than interface caches. |
In Finder, press ⇧⌘G to open Go to Folder, paste the specific path you have confirmed, then use Get Info to check its size. ~ means the current user’s home folder. A hidden directory not appearing in the normal listing does not mean it is absent.
Desktop apps, CLIs, editor extensions, and remote tasks may use different locations or share state. Data on SSH hosts, in containers, or in cloud tasks is not the same as local disk usage on your Mac. The default paths below are only starting points.
03 / Measure the largest sources
Measure totals, then explore the largest directory
The following commands run in macOS Terminal. They only read directory sizes and available space on the containing volume; they do not delete files. The examples check a few default directories for Cursor, Claude Code, and Codex, and are not a complete coverage list. If you changed a data location, replace the corresponding path with the actual one.
for cleanup_dir in "$HOME/Library/Application Support/Cursor" "$HOME/.claude" "$HOME/.codex"; do
if [ -d "$cleanup_dir" ]; then
printf '\nChecking: %s\n' "$cleanup_dir"
du -sk "$cleanup_dir"
df -k "$cleanup_dir"
else
printf 'Directory not found: %s\n' "$cleanup_dir"
fi
donedu -sk shows directory usage, while df -k shows space on the volume containing that path. Both count in 1,024-byte blocks. Find the larger directories first, then work down through their contents. Several paths may share a volume, so do not add repeated Available values together.
cleanup_dir="$HOME/Library/Application Support/Cursor"
if [ -d "$cleanup_dir" ]; then
du -k -d 1 "$cleanup_dir" | sort -n
else
printf 'Directory not found: %s\n' "$cleanup_dir"
fiLarger values appear at the end. A parent directory’s total already includes its subdirectories, so do not add them again. To check another location, replace only the path on the first line and keep the quotation marks. Permission denied or Operation not permitted means the measurement is incomplete. Do not interpret it as zero usage or respond by immediately elevating privileges to delete files.
04 / Choose the right approach
The largest item determines your next step
- If caches or old logs account for most of the space: fully quit the relevant tool, then follow its guide to identify regenerable caches and logs you no longer need.
- If sessions, databases, or checkpoints account for most of the space: decide what to keep, then check the tool’s built-in history management or maintenance features. Clearing a few interface caches usually will not address this usage.
- If project copies or dependencies account for most of the space: check code, task outputs, and how the project is installed, then follow the project’s or tool’s own management workflow.
- If application installations, runtime resources, or local models account for most of the space: identify which copies are still in use and manage them through the original installation method or model manager. Shared package caches cannot all be attributed to one AI tool.
AgentClean can bring together local cleanup candidates covered by its rules, helping you review sizes and notes by tool. A directory missing from the scan may still use space. Check coverage of projects, cloud data, and custom paths separately.
05 / Investigate by tool
Once you identify the tool, continue with its guide
Tools organize caches, history, and working copies differently. The guides below provide specific paths, retention boundaries, and ways to measure again. Do not apply one tool’s cleanup commands directly to another.
Scan and review in one place
Review supported cleanup items together
AgentClean scans tool data on your Mac within its rules and groups candidates, sizes, and notes by tool. Keep important content first, then select the items you are sure you no longer need.
Scanning and review do not require a subscription. Cleanup requires an active subscription and permanently deletes files without sending them to Trash. Actual coverage depends on scan results; the projects, databases, and system snapshots discussed in this guide are not necessarily covered by AgentClean.
Stay tuned
AgentClean is currently available only for Mac. Other platforms aren’t available yet. Visit this site on a Mac to download.
View supported tools · See each tool’s coverage and what you need to keep.
Frequently asked questions
A few more things to check
Does a large System Data category mean AI tools filled the disk?
No. System Data is a broad storage category containing system and third-party files that do not fit other categories. Measure specific tool directories rather than treating the entire category as a deletion target.
Why is the app small in Finder when its actual disk usage is large?
Application bundles and user data are usually stored separately. A tool may keep caches, history, and task data in Library, hidden state directories, and project copies. These are not necessarily included in the application bundle’s size.
If a default directory is missing, does that mean there is no data?
No. Directories vary by version, features used, and custom settings. The tool may also run in a remote environment. Confirm the actual data location first; insufficient read permissions do not mean usage is zero either.
Can all of the capacity found in a scan be freed?
No. Scan results are candidates and may include data you need to keep, protected data, or data in use. Snapshots, background writes, and cache rebuilding can also affect the final deletion results and available disk space.