feat: add AI Apps cleanup category for Ollama and LM Studio#20
Merged
momenbasel merged 3 commits intomomenbasel:mainfrom Apr 14, 2026
Merged
feat: add AI Apps cleanup category for Ollama and LM Studio#20momenbasel merged 3 commits intomomenbasel:mainfrom
momenbasel merged 3 commits intomomenbasel:mainfrom
Conversation
added 2 commits
April 14, 2026 05:25
- add a dedicated AI Apps cleanup category - scan conservative Ollama and LM Studio cleanup paths only - exclude model and conversation data from cleanup scope - reduce duplicate cache counting in User Cache - update localized labels and README documentation
- scan the Google cache vendor root instead of only Chrome - avoid excluding unrelated Google app caches from User Cache - preserve the AI Apps/User Cache double-counting fix
- document why vendor roots are re-added after broad cache exclusions - make it clearer that the Google cache handling is a dedupe safety adjustment
momenbasel
approved these changes
Apr 14, 2026
Owner
momenbasel
left a comment
There was a problem hiding this comment.
LGTM. Well-scoped AI Apps category — conservative cleanup targets (logs/caches only), explicit model exclusions, deduplication helpers, proper double-count prevention in User Cache. One note: zh-Hant localization (PR #24) will need the new "AI Apps" key added separately.
This was referenced Apr 14, 2026
Closed
Owner
|
Excellent work @brainx! The deduplication logic, path normalization, and explicit model exclusions show real attention to detail. The CleanupTarget pattern you introduced is already being referenced as a template for future categories. Thanks for the high-quality contribution! |
Author
|
@momenbasel Thanks for feedback and merge 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a dedicated
AI Appscleanup category for known local AI runtimes on macOS, starting withOllamaandLM Studio.Why
PureMac already cleans broad cache locations, but local AI apps now generate meaningful amounts of removable app-specific data.
This change makes that cleanup more explicit and safer:
Scope
Included cleanup targets:
~/.ollama/logs~/Library/Caches/ollama~/Library/Caches/com.electron.ollama~/Library/WebKit/com.electron.ollama~/Library/Saved Application State/com.electron.ollama.savedState~/.lmstudio/server-logsExplicitly excluded from cleanup:
~/.ollama/models~/.lmstudio/models~/.lmstudio/conversationsImplementation
AI Appscategory to the cleanup modelScanEngineUser CachescanGooglevendor root instead of onlyGoogle/ChromeClarification on the Google cache change
The
Googlecache handling is not part of the AI-app cleanup scope itself.It is a follow-up safety adjustment to the generic
User Cachededuplication logic:~/Library/Cachesscan now excludes vendor roots that are handled more explicitly elsewhere~/Library/Caches/Googleis excluded from that broad scan, re-adding onlyGoogle/Chromewould accidentally hide other Google app caches from scan resultsGooglevendor root keeps unrelated Google app caches visible while still preventing double-counting in the generic cache passValidation
./script/build_and_run.sh --verifyNotes