Tools that clean up after AI coding agents on a Mac

AI coding agents leave old app versions, caches, worktrees and long conversation histories, and most of a conversation folder is pictures. Mole cleans some of it from the terminal, CleanMyMac in a separate command-line tool that is still in beta, and DaisyDisk only shows you where it is. Mint manages storage with one framework built on each file’s life cycle and understands AI agents in depth, so it knows what each file is and whether the agent still uses it: it can remove the pictures inside a Codex or Claude Code conversation and keep every word, gets space back without deleting anything first, organizes your folders, and keeps doing it on its own inside the boundaries you set. We make Mint; the rest was read from each vendor on October 11, 2026.

Where the space goes

Codex keeps every conversation as a JSONL file under ~/.codex, and screenshots are stored inside it as base64 text. In one 22.83 GB Codex store we measured, 71% was pictures. Claude Code keeps sessions under ~/.claude/projects and versioned binaries under ~/.local/share/claude/versions. Agents also leave git worktrees, build output in /tmp, and downloaded models.

What 22 GB of agent conversations is made of

Side by side

Read from each vendor on October 11, 2026.
MintMoleCleanMyMacDaisyDisk
Agent caches and old versionsYesYes, in previewIn its separate command-line tool (beta)No
Agent worktreesYes, with uncommitted work statedYesNot statedNo
Remove pictures, keep conversation textYes (Codex, Claude Code)NoNot statedNo
Delete old conversationsYes, never pre-tickedSessions listed for reviewNot statedOnly by deleting files yourself
Refuses what an agent is using right nowYes, checked again at the clickNot statedNot statedNo
Space back without deleting anythingYes, OptimizeNoNoNo
Organize foldersYes, by hand, on a schedule or as files arriveNoNot foundNo
Runs on its ownAuto Care, when the Mac is idleNot built inNot found in the consumer appNo
Leaves alone what you protectIgnore ListA whitelist of protected cachesIgnore ListNothing runs on its own
Undo90 days: Trash moves and organizing put backTrash for some commands; clean deletes for goodNot statedNo, deletions are permanent
Raycast, menu bar, command line, MCPAll four (direct download)Command line; Raycast via a community extension; no MCPMenu bar app; command line in betaNot stated
PriceFree tier; $39.99 one-timeCLI free; app $19Basic $47.50 a year or $119.95 one-time; CLI free (beta)$9.99 one-time

Doing it by hand

  1. Measure first: du -sh ~/.codex ~/.claude ~/.local/share/claude ~/.cursor 2>/dev/null
  2. Keep the version the launcher points at: readlink -f "$(command -v claude)" and the same for codex.
  3. Remove only older version folders, and never a conversation file a running agent has open.

Which to pick

If you like open source and want to read the cleanup rules yourself and run deletions from the terminal, try Mole: its command-line tool is open source. If you want your agents’ data handled the way you would handle it yourself, use Mint: it knows what each file is, whether the agent still uses it and whether it comes back on its own. It takes the pictures out of old conversations while keeping every word, gets space back without deleting anything first, and keeps doing it with Auto Care inside the boundaries you set. Your folders are organized in the same app.

AI coding agents taking up disk space

Mint vs Mole

Frequently asked questions

Is it safe to delete Codex or Claude Code conversations?

Deleting one you no longer need is safe, but it is permanent. Removing only the pictures keeps the text you can scroll back through and resume from.

Can Mint break an agent that is running?

Mint leaves alone any file a running tool holds open and any conversation written in the last few minutes, and checks again at the moment you click. A cache whose app is running waits until the app is closed.

See what your agents are holding

Mint’s scan is free and shows each AI tool’s storage beside the rest of your disk.

Download Mint for Mac