# AI files: old chats, caches, updates and downloaded models

Features · Updated 21 November 2026. By Mohit Nippanikar, who makes SiftMac.

## The short answer

- **Sorted by what comes back.** Caches and installed updates rebuild, so they’re cleared; old chats can’t, so they wait on the Undo Shelf; downloaded models come back only by downloading them again.
- **Only what’s untouched:** chats are listed after 30 days without a change (7 or 90 if you choose), never anything from the last day, and caches only while their app is closed.
- **Explained, not removed:** Apple Intelligence models and Chrome’s on-device model are managed by macOS and Chrome, so SiftMac only shows their size.

## 1. What SiftMac finds, and what it does with each

| What | Where | Verdict | When you clean |
| --- | --- | --- | --- |
| Claude Code chats, one item per project | `~/.claude/projects`: each session’s `.jsonl` file and its tool-output folder | You decide | Undo Shelf |
| Codex sessions | `~/.codex/sessions` and `archived_sessions` | You decide | Undo Shelf |
| Antigravity agent and editor chats | `~/.gemini/antigravity` and `antigravity-ide`: conversations with their `brain` notes | You decide | Undo Shelf |
| Gemini CLI chats | `~/.gemini/tmp`, a folder per project | You decide | Undo Shelf |
| Cursor, Windsurf and Antigravity project chats | `User/workspaceStorage` in each app’s Application Support folder | You decide | Undo Shelf |
| The Claude app’s task folders | `Claude/scratch-workspaces` in Application Support | You decide | Undo Shelf |
| Caches of Claude, Cursor, Windsurf, Antigravity and Codex | `Cache`, `Code Cache`, `GPUCache` and similar folders; `~/.codex/cache` and `tmp` | Safe | Deleted |
| Older Claude Code versions | `~/.local/share/claude/versions`, and the Claude app’s own copy | Safe | Deleted |
| Updates already installed | `~/Library/Caches/<app ID>.ShipIt` | Safe | Deleted |
| Hugging Face and LM Studio models | `~/.cache/huggingface/hub`, `~/.lmstudio/models` | You decide | Deleted |
| Ollama models | `~/.ollama/models` | You decide | `ollama rm` |
| Apple Intelligence models and Chrome’s Gemini Nano | `/System/Library/AssetsV2`, Chrome’s `OptGuideOnDeviceModel` | Locked | Never removed |

Each chat item names its tool, and for Claude Code the project, with how many sessions or projects it covers and when it was last used. A session counts as used when any part of it changed, so one you reopened yesterday is never listed. Claude Code’s `memory` folder, your settings, skills and plugins, and every project’s own files are never touched.

When old versions are cleared, the newest copy of Claude Code stays, and so does whichever one your `claude` command points at. Ollama shares layers between models, so each model is sized by the layers only it uses and removed with `ollama rm`, which leaves shared layers for the models that still need them. Apps’ update downloads in `~/Library/Caches` are listed once, here, rather than again under App caches.

Nothing in AI files is ticked until you tick it, and the age that counts as old is in **Settings › AI files**.

## 2. Why AI files need their own rules

AI tools fill a Mac in a new way. Coding agents save every session as a file, so a busy project collects a lot of them. Desktop apps built on Electron keep caches and copies of past updates. Local models are the biggest of all, often several GB each, and easy to forget once you’ve moved on to a newer one.

These don’t share one answer. A cache is free to clear. An old chat is gone for good once deleted, and you might want to reopen or search it. A model comes back, but only after a long download. Treating all of it as one bucket of AI junk would be either too timid about caches or too careless about chats, so each kind gets the verdict that fits it.

## 3. What it leaves alone

- **Anything recent.** Chats used in the last day are never listed, whatever the setting.
- **Caches of open apps.** They’re cleared only while the app is closed, and old chats are skipped while their command-line tool, such as `claude` or `codex`, is running.
- **Models on the Undo Shelf.** Downloaded models are removed straight away rather than shelved, since they’re large; you get one back by downloading it again.
- **Models kept elsewhere.** SiftMac looks in each tool’s usual folder, so models on an external drive or in a custom folder aren’t found, and Ollama models are listed only when the `ollama` command is installed.
- **Apple Intelligence and Chrome’s model.** macOS and Chrome download and remove these themselves. Chrome’s goes for good when you turn off On-device AI in **Chrome › Settings › AI Innovations**; for Apple’s, see [Apple Intelligence storage](https://siftmac.com/guides/apple-intelligence-storage).
- **Tools it doesn’t know.** Only the apps and tools in the table are recognised.

## Questions

### Will SiftMac delete my Claude Code memory or settings?

No. It lists only old session files in `~/.claude/projects` and their tool-output folders. The `memory` folder, settings, skills and plugins are never touched.

### Can I get an old AI chat back?

Yes, for 7 days. Old chats go onto the Undo Shelf, and **Put back** returns the session files to where the tool keeps them.

### Why isn’t an Ollama model listed?

SiftMac removes Ollama models with Ollama’s own command, so it lists them only when `ollama` is installed in `/usr/local/bin`, `/opt/homebrew/bin` or inside Ollama.app. A model whose layers are all shared with other models frees nothing on its own, so it isn’t listed either.

### Can SiftMac remove Apple Intelligence models?

No. macOS downloads and removes them itself, so SiftMac shows their size and leaves them. See [how much space Apple Intelligence takes](https://siftmac.com/guides/apple-intelligence-storage).

## How SiftMac handles it

AI files lists each tool’s old chats, caches, installed updates and downloaded models with the verdict that fits: caches cleared, chats onto the Undo Shelf, models removed with their tool’s own command where it has one. None is ticked until you tick it.

Download: https://siftmac.com/SiftMac.dmg (scanning is free, and so is the first 2 GB of cleaning).

## Related

- [What Claude Code, Cursor, Ollama and Hugging Face leave on your Mac](https://siftmac.com/guides/ai-files-on-mac)
- [Is it safe to delete Claude Code’s ~/.claude folder?](https://siftmac.com/safe-to-delete/claude-code-folder)
- [Is it safe to delete Ollama models in ~/.ollama/models?](https://siftmac.com/safe-to-delete/ollama-models)
- [Is it safe to delete ~/.cache/huggingface?](https://siftmac.com/safe-to-delete/hugging-face-cache)
- [Is it safe to delete com.todesktop.230313mzl4w4u92.ShipIt?](https://siftmac.com/safe-to-delete/cursor-update-cache)
- [How much space does Apple Intelligence take on a Mac, and can you get it back?](https://siftmac.com/guides/apple-intelligence-storage)

Canonical: https://siftmac.com/features/ai-files
