Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
List the models AI apps download on the Developer page
Țugui Dragoș4a6c9c8b3c86
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swiftindex 23847f7b..de95ee55 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift@@ -1138,8 +1138,10 @@ public enum DeveloperCaches {Definition(id: "whisper", name: "Whisper", systemImage: "brain", appBundleIdentifiers: [], folders: [Folder(".cache/whisper", .models, source: "https://github.com/openai/whisper/blob/86098128c0b4f24f0e2aa2994de830614b474227/whisper/__init__.py#L119-L134"),]),- Definition(id: "gpt4all", name: "GPT4All", systemImage: "brain", appBundleIdentifiers: [], folders: [+ // The app keeps its chats beside its models, so only the model files are listed.+ Definition(id: "gpt4all", name: "GPT4All", systemImage: "brain", appBundleIdentifiers: ["gpt4all"], folders: [Folder(".cache/gpt4all", .models, source: "https://github.com/nomic-ai/gpt4all/blob/b666d16db5aeab8b91aaf7963adcee9c643734d7/gpt4all-bindings/python/gpt4all/gpt4all.py#L36"),+ Folder("Library/Application Support/nomic.ai/GPT4All/*.gguf", .models, source: "https://github.com/nomic-ai/gpt4all/blob/b666d16db5aeab8b91aaf7963adcee9c643734d7/gpt4all-chat/src/mysettings.cpp#L78-L81"),]),Definition(id: "tensorflow", name: "TensorFlow Datasets", systemImage: "brain", appBundleIdentifiers: [], folders: [Folder("tensorflow_datasets", .models, source: "https://github.com/tensorflow/datasets/blob/ff9ea5fdcba7cc4d25bac833ecb6659397694c12/tensorflow_datasets/core/constants.py#L36-L37"),@@ -1175,6 +1177,25 @@ public enum DeveloperCaches {Folder("Library/Application Support/Jan/data/mlx/models", .models, source: "https://jan.ai/docs/desktop/data-folder"),Folder("Library/Application Support/Jan/data/logs", .logs, source: "https://jan.ai/docs/desktop/data-folder"),]),+ Definition(id: "anythingllm", name: "AnythingLLM", systemImage: "brain", appBundleIdentifiers: [], folders: [+ Folder("Library/Application Support/anythingllm-desktop/storage/models", .models, source: "https://docs.anythingllm.com/installation-desktop/storage"),+ Folder("Library/Application Support/anythingllm-desktop/storage/logs", .logs, source: "https://docs.anythingllm.com/installation-desktop/storage"),+ ]),+ Definition(id: "invokeai", name: "InvokeAI", systemImage: "brain", appBundleIdentifiers: [], folders: [+ Folder("invokeai/models", .models, source: "https://github.com/invoke-ai/InvokeAI/blob/aa46003581e2c482e03e62116f68ef3c3a6f0233/invokeai/app/services/config/config_default.py#L535-L543"),+ ]),+ Definition(id: "comfyui", name: "ComfyUI", systemImage: "brain", appBundleIdentifiers: ["com.todesktop.241012ess7yxs0e"], folders: [+ Folder("ComfyUI-Shared/models", .models, source: "https://github.com/Comfy-Org/Comfy-Desktop/blob/af18c5fb4aa0bd1f299fd9e7200d3747adb22ac1/src/main/settings.ts#L353"),+ ]),+ Definition(id: "mochidiffusion", name: "Mochi Diffusion", systemImage: "brain", appBundleIdentifiers: ["com.joshua-park.Mochi-Diffusion"], folders: [+ Folder("MochiDiffusion/models", .models, source: "https://github.com/MochiDiffusion/MochiDiffusion/blob/5e978c69f4dec37bb0d4ef6558fcfb73b0bb4e98/Mochi%20Diffusion/Support/ModelRepository.swift#L24-L29"),+ Folder("MochiDiffusion/controlnet", .models, source: "https://github.com/MochiDiffusion/MochiDiffusion/blob/5e978c69f4dec37bb0d4ef6558fcfb73b0bb4e98/Mochi%20Diffusion/Support/ModelRepository.swift#L31-L36"),+ ]),+ Definition(id: "omlx", name: "oMLX", systemImage: "brain", appBundleIdentifiers: ["app.omlx"], folders: [+ Folder(".omlx/models", .models, source: "https://github.com/jundot/omlx/blob/8dfaba37eb658223a5b9cc8fd4a9b27a85a885dc/omlx/settings.py#L282-L296"),+ Folder(".omlx/cache", .cache, source: "https://github.com/jundot/omlx/blob/8dfaba37eb658223a5b9cc8fd4a9b27a85a885dc/omlx/settings.py#L443-L455"),+ Folder(".omlx/logs", .logs, source: "https://github.com/jundot/omlx/blob/8dfaba37eb658223a5b9cc8fd4a9b27a85a885dc/omlx/settings.py#L835-L847"),+ ]),// Chromium's docs/user_data_dir.md names each Chrome channel's and Chromium's folder, brave-core's// `build/config.gni` and `app/theme/*/BRANDING` each Brave build's folder and identifier, and Opera's desktop// blog Opera's (blogs.opera.com/desktop/2023/08). Their disk caches are in `Library/Caches`, which Spacediff --git a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swiftindex a1e22588..d4080e7d 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift@@ -540,6 +540,8 @@ struct DeveloperCachesTests {"Library/Unity", ".sonar",// Each keeps conversations, settings, or keys beside its caches.".claude", ".codex", ".continue", ".cline", ".cline/data",+ // AI apps keep the person's images, documents, databases, and keys beside the models they download.+ "invokeai", "ComfyUI-Shared", "MochiDiffusion", ".omlx", "Library/Application Support/anythingllm-desktop/storage",]// CocoaPods' spec repositories hold the ones a person added, which can carry unpushed work: only the copies of// the public index are listed, the CDN's `trunk` and the Git clone CocoaPods names `master` or `cocoapods`,@@ -607,6 +609,36 @@ struct DeveloperCachesTests {#expect(Set(listed) == [".cache/kilo", ".continue/logs", ".cline/data/logs"])}+ @Test func listsTheModelsAIAppsDownloadAndNothingThePersonKeepsBeside() async throws {+ let directory = try TemporaryDirectory()+ let gpt4All = "Library/Application Support/nomic.ai/GPT4All"+ let anythingLLM = "Library/Application Support/anythingllm-desktop/storage"+ for path in [+ "\(gpt4All)/Llama-3.2-3B-Instruct-Q4_0.gguf", "\(gpt4All)/gpt4all-1a2b.chat", "\(gpt4All)/localdocs_v3.db",+ "\(gpt4All)/openai-capi.rmodel", "\(anythingLLM)/models/model.gguf", "\(anythingLLM)/logs/backend.log",+ "\(anythingLLM)/documents/notes.json", "\(anythingLLM)/anythingllm.db", "\(anythingLLM)/vector-cache/a.json",+ "invokeai/models/sdxl/model.safetensors", "invokeai/outputs/images/1.png", "invokeai/databases/invokeai.db",+ "ComfyUI-Shared/models/checkpoints/model.safetensors", "ComfyUI-Shared/output/1.png",+ "ComfyUI-Shared/input/1.png", "MochiDiffusion/models/sd/unet.bin", "MochiDiffusion/controlnet/canny.bin",+ "MochiDiffusion/images/1.png", ".omlx/models/qwen/model.safetensors", ".omlx/cache/0/block.safetensors",+ ".omlx/logs/server.log", ".omlx/settings.json", ".omlx/bin/omlx",+ ] {+ try directory.file(path, bytes: 4_096)+ }++ let environments = await scanned(directory.url)++ let home = directory.url.path(percentEncoded: false)+ let tools: Set = ["gpt4all", "anythingllm", "invokeai", "comfyui", "mochidiffusion", "omlx"]+ let listed = environments.filter { tools.contains($0.id) }.flatMap(\.locations)+ #expect(Set(listed.map { String($0.url.path(percentEncoded: false).dropFirst(home.count)) }) == [+ "\(gpt4All)/Llama-3.2-3B-Instruct-Q4_0.gguf", "\(anythingLLM)/models", "\(anythingLLM)/logs",+ "invokeai/models", "ComfyUI-Shared/models", "MochiDiffusion/models", "MochiDiffusion/controlnet",+ ".omlx/models", ".omlx/cache", ".omlx/logs",+ ])+ #expect(Set(listed.filter(\.isRecommended).map(\.url.lastPathComponent)) == ["logs", "cache"])+ }+/// Every folder the table offers names where its tool documents it: a page, or the file inside Xcode that names/// it, for the folders Apple documents nowhere else.@Test func everyFolderNamesItsSource() {