Four tools.
Four storage maps.
By Alvin
A full disk can hide several different stories. One tool may be keeping chat history; another may have made a second checkout of your project; a third may be holding a model you downloaded. Find the folder that grew before you decide what to remove. The same disk audit works across coding agents, but their storage rules differ.
Follow the work to its home
Codex CLI keeps local session records and archives under its Codex home. A managed worktree is a separate Git checkout, so its dependencies and build output can grow beside the source. The two folders have separate lifecycles. Use Codex’s supported session commands for chats and its worktree controls for checkouts. [35] [36]
Claude Code can keep settings and session history in its local configuration directory. Set CLAUDE_CONFIG_DIR to choose another home. A Claude Code on the web session runs in a remote environment, so a local disk scan cannot measure its remote storage. Check which surface ran the work first. [50] [54]
Gemini CLI saves sessions by project under ~/.gemini/tmp. Its documented default retention is 30 days; deleting a session also removes related plans, task trackers and tool outputs. Cursor users have reported very large local agent databases. In one public support thread, a user measured about 125 GB and staff described a database cleanup command that preserves chats. Treat that as one installation’s report, then measure your own version. [30] [51]