Skip to content

cli: add Claude Desktop, ChatGPT & Hugging Face caches to clean ai - #165

Open
ry-ops wants to merge 1 commit into
momenbasel:mainfrom
ry-ops:pr/ai-electron-app-caches
Open

ry-ops wants to merge 1 commit into
momenbasel:mainfrom
ry-ops:pr/ai-electron-app-caches

Conversation

@ry-ops

@ry-ops ry-ops commented Sep 6, 2026

Copy link
Copy Markdown

What

Extends the ai catalog (puremac clean ai) alongside the existing Ollama /
LM Studio / Cursor entries:

Tool Paths Notes
Claude Desktop ~/Library/Application Support/Claude/{Cache,Code Cache,GPUCache,DawnGraphiteCache,DawnWebGPUCache} Electron caches; Cache + Code Cache alone are commonly 200 MB+
ChatGPT Desktop ~/Library/Application Support/com.openai.chat/{Cache,Code Cache,GPUCache} Electron caches
Hugging Face ~/.cache/huggingface model/dataset cache — selectedByDefault: false, mirroring the existing Maven / NuGet "may hold local installs" convention

Why

Electron-based AI desktop apps are now as common as the editors already covered,
and their Chromium cache dirs grow the same way. Only cache directories are
targeted — no chat history, no config, and no model roots (~/.ollama,
~/.lmstudio are already denylisted in Safety).

Testing

swiftc -parse on the changed file is clean. Full swift build could not run
locally (Command Line Tools only; PackageDescription manifest fails to link
against the macOS 26 SDK, unrelated to this change). Please confirm via CI.
Data-only additions to Catalog.ai.

Scope

One focused change to Catalog.swift.

Extends the `ai` catalog alongside the existing Ollama / LM Studio / Cursor
entries:

- Claude Desktop  ~/Library/Application Support/Claude/{Cache,Code Cache,
                  GPUCache,DawnGraphiteCache,DawnWebGPUCache}   (Electron caches;
                  Code Cache + Cache alone are commonly 200 MB+)
- ChatGPT Desktop ~/Library/Application Support/com.openai.chat/{Cache,
                  Code Cache,GPUCache}
- Hugging Face    ~/.cache/huggingface                          (model/dataset
                  cache; selectedByDefault: false, mirrors the Maven / NuGet
                  "may hold local installs" convention)

Chromium/Electron cache dirs only; no chat history, no config, no model roots
like ~/.ollama or ~/.lmstudio (already denylisted in Safety).

Note: local `swift build` is blocked here by a Command Line Tools-only toolchain
issue (PackageDescription manifest fails to link against the macOS 26 SDK);
`swiftc -parse` on the changed file is clean. Please confirm via CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant