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 everything Windsurf and Devin cache, as for the other VS Code editors
Țugui Dragoș68a4779e0314
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swiftindex 10e91f30..1d650567 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift@@ -871,10 +871,36 @@ public enum DeveloperCaches {),]),Definition(id: "windsurf", name: "Windsurf & Devin", systemImage: "curlybraces", appBundleIdentifiers: ["com.exafunction.windsurf", "ai.cognition.devin"], folders: [- Folder("Library/Application Support/Devin/Cache", .cache, source: "https://github.com/electron/electron/blob/df79406cecfd393f38d5a18b83379d4ba85cc29b/shell/browser/net/network_context_service.cc#L94-L95"),+ Folder("Library/Application Support/Devin/Cache", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/environment/node/userDataPath.ts#L95-L105"),Folder("Library/Application Support/Devin/CachedData", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/mainImpl.ts#L649-L668"),- Folder("Library/Application Support/Windsurf/Cache", .cache, source: "https://github.com/electron/electron/blob/df79406cecfd393f38d5a18b83379d4ba85cc29b/shell/browser/net/network_context_service.cc#L94-L95"),+ Folder("Library/Application Support/Devin/logs", .logs, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/environment/common/environmentService.ts#L73-L79"),+ Folder("Library/Application Support/Devin/Code Cache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/content/browser/storage_partition_impl.cc#L1587-L1595"),+ Folder("Library/Application Support/Devin/GPUCache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/gpu/ipc/common/gpu_disk_cache_type.cc#L46"),+ Folder("Library/Application Support/Devin/DawnWebGPUCache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/gpu/ipc/common/gpu_disk_cache_type.cc#L48"),+ Folder("Library/Application Support/Devin/DawnGraphiteCache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/gpu/ipc/common/gpu_disk_cache_type.cc#L50"),+ Folder("Library/Application Support/Devin/DawnCache", .cache, source: "https://github.com/chromium/chromium/blob/68b0fb2a9324b16f8d9c7fc91ef27fde78437821/gpu/ipc/common/gpu_disk_cache_type.cc#L42"),+ Folder("Library/Application Support/Devin/CachedExtensionVSIXs", .downloads, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/environment/common/environmentService.ts#L127"),+ Folder("Library/Application Support/Devin/CachedProfilesData", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/userDataProfile/common/userDataProfile.ts#L274"),+ Folder("Library/Application Support/Devin/CachedConfigurations", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/workbench/services/configuration/common/configurationCache.ts#L66"),+ Folder(+ "Library/Application Support/Devin/User/workspaceStorage", .projectState, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/storage/electron-main/storageMain.ts#L469-L482",+ rowsDepth: 1, rowsAreProjectState: true+ ),+ Folder("Library/Application Support/Windsurf/Cache", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/environment/node/userDataPath.ts#L95-L105"),Folder("Library/Application Support/Windsurf/CachedData", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/mainImpl.ts#L649-L668"),+ Folder("Library/Application Support/Windsurf/logs", .logs, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/environment/common/environmentService.ts#L73-L79"),+ Folder("Library/Application Support/Windsurf/Code Cache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/content/browser/storage_partition_impl.cc#L1587-L1595"),+ Folder("Library/Application Support/Windsurf/GPUCache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/gpu/ipc/common/gpu_disk_cache_type.cc#L46"),+ Folder("Library/Application Support/Windsurf/DawnWebGPUCache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/gpu/ipc/common/gpu_disk_cache_type.cc#L48"),+ Folder("Library/Application Support/Windsurf/DawnGraphiteCache", .cache, source: "https://github.com/chromium/chromium/blob/54cc36437b23cee8aaffa1289c8bc31bf2f520b9/gpu/ipc/common/gpu_disk_cache_type.cc#L50"),+ Folder("Library/Application Support/Windsurf/DawnCache", .cache, source: "https://github.com/chromium/chromium/blob/68b0fb2a9324b16f8d9c7fc91ef27fde78437821/gpu/ipc/common/gpu_disk_cache_type.cc#L42"),+ Folder("Library/Application Support/Windsurf/CachedExtensionVSIXs", .downloads, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/environment/common/environmentService.ts#L127"),+ Folder("Library/Application Support/Windsurf/CachedProfilesData", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/userDataProfile/common/userDataProfile.ts#L274"),+ Folder("Library/Application Support/Windsurf/CachedConfigurations", .cache, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/workbench/services/configuration/common/configurationCache.ts#L66"),+ Folder(+ "Library/Application Support/Windsurf/User/workspaceStorage", .projectState, source: "https://github.com/microsoft/vscode/blob/0817aaa824590067854c361e77eb973a08b3cf48/src/vs/platform/storage/electron-main/storageMain.ts#L469-L482",+ rowsDepth: 1, rowsAreProjectState: true+ ),]),Definition(id: "nova", name: "Nova", systemImage: "curlybraces", appBundleIdentifiers: ["com.panic.Nova"], folders: [Folder("Library/Caches/com.panic.Nova", .cache, source: "https://developer.apple.com/documentation/foundation/filemanager/searchpathdirectory/cachesdirectory"),diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swiftindex 39da3ef2..d89ee380 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift@@ -447,6 +447,7 @@ struct DeveloperCachesTests {// Neovim its swap and undo files."Library/Application Support/Code", "Library/Application Support/Code - Insiders","Library/Application Support/VSCodium", "Library/Application Support/Cursor",+ "Library/Application Support/Windsurf", "Library/Application Support/Devin","Library/Application Support/Zed", ".local/state/nvim",// minikube keeps its clusters' keys and the images a person added; Vagrant its machine index and key;// Jan its chat history; Ollama a copy of its app while it updates.@@ -1376,20 +1377,40 @@ struct DeveloperCachesTests {@Test func offersTheConfigurationAndProfileCachesOfEveryEditorBuiltOnVSCode() async throws {let directory = try TemporaryDirectory()- for app in ["Code", "VSCodium", "Cursor"] {+ let apps = ["Code", "VSCodium", "Cursor", "Windsurf", "Devin"]+ for app in apps {try directory.file("Library/Application Support/\(app)/CachedConfigurations/folder/key/configuration.json", bytes: 4_096)try directory.file("Library/Application Support/\(app)/CachedProfilesData/__default__profile__/extensions.user.cache", bytes: 4_096)try directory.file("Library/Application Support/\(app)/Backups/1/untitled", bytes: 4_096)}- let editors = DeveloperCaches.definitions.filter { ["vscode", "vscodium", "cursor"].contains($0.id) }+ let editors = DeveloperCaches.definitions.filter { ["vscode", "vscodium", "cursor", "windsurf"].contains($0.id) }let locations = await DeveloperCaches.scan(editors, homeDirectory: directory.url).flatMap(\.locations)let support = directory.url.appending(path: "Library/Application Support").path(percentEncoded: false)- #expect(Set(locations.map { String($0.url.path(percentEncoded: false).dropFirst(support.count + 1)) }) == [- "Code/CachedConfigurations", "Code/CachedProfilesData", "VSCodium/CachedConfigurations",- "VSCodium/CachedProfilesData", "Cursor/CachedConfigurations", "Cursor/CachedProfilesData",- ])+ #expect(Set(locations.map { String($0.url.path(percentEncoded: false).dropFirst(support.count + 1)) }) == Set(+ apps.flatMap { ["\($0)/CachedConfigurations", "\($0)/CachedProfilesData"] }+ ))+ }++ @Test func offersWhatWindsurfAndDevinCacheAsVSCodeDoesAndNeverTheirBackups() async throws {+ let directory = try TemporaryDirectory()+ let cached = ["Code Cache/js/index", "GPUCache/data_0", "DawnWebGPUCache/data_0", "CachedExtensionVSIXs/x.vsix",+ "logs/20261011T120000/main.log"]+ for app in ["Windsurf", "Devin"] {+ for path in cached + ["Backups/1/untitled"] {+ try directory.file("Library/Application Support/\(app)/\(path)", bytes: 4_096)+ }+ }+ let windsurf = DeveloperCaches.definitions.filter { $0.id == "windsurf" }++ let locations = await DeveloperCaches.scan(windsurf, homeDirectory: directory.url).flatMap(\.locations)++ let support = directory.url.appending(path: "Library/Application Support").path(percentEncoded: false)+ let folders = cached.map { String($0.split(separator: "/").first!) }+ #expect(Set(locations.map { String($0.url.path(percentEncoded: false).dropFirst(support.count + 1)) }) == Set(+ ["Windsurf", "Devin"].flatMap { app in folders.map { "\(app)/\($0)" } }+ ))}@Test func offersTheNpmCacheOfZedsNodeAndNeverTheNodeItself() async throws {