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 Xcode's documentation index and three coding agents' caches and logs
Țugui Dragoș55bc5d63acf1
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swiftindex 6abe8725..e693b100 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift@@ -375,6 +375,7 @@ public enum DeveloperCaches {Folder("Library/Developer/Xcode/visionOS DeviceSupport", .deviceSupport, source: "Xcode 27: DVTFoundation.framework (\"%@ DeviceSupport\") and XROS.platform/Info.plist (Description visionOS)", rowsDepth: 1),Folder("Library/Developer/Xcode/macOS DeviceSupport", .deviceSupport, source: "Xcode 27: CoreSymbolicationDT.framework/Resources/JSONCrashLog/DeviceSupportDirectories.py", rowsDepth: 1),Folder("Library/Developer/Xcode/DocumentationCache", .cache, source: "Xcode 27: DVTFoundation.framework, -[DVTDeveloperPaths documentationCacheDirectoryForCurrentApplication]"),+ Folder("Library/Developer/Xcode/DocumentationIndex", .cache, source: "Xcode 27: DVTFoundation.framework, -[DVTDeveloperPaths documentationIndexDirectoryForCurrentApplication]"),Folder("Library/Developer/CoreSimulator/Caches", .cache, source: "https://developer.apple.com/documentation/xcode-release-notes/xcode-12_3-release-notes"),Folder("Library/Logs/CoreSimulator", .logs, source: "Xcode 27: /Library/Developer/PrivateFrameworks/CoreSimulator.framework (\"%s/Library/Logs/CoreSimulator\")"),Folder("Library/Caches/com.apple.dt.Xcode", .cache, source: "https://developer.apple.com/documentation/foundation/filemanager/searchpathdirectory/cachesdirectory"),@@ -886,6 +887,15 @@ public enum DeveloperCaches {Definition(id: "opencode", name: "opencode", systemImage: "terminal", appBundleIdentifiers: [], folders: [Folder(".cache/opencode", .cache, source: "https://github.com/anomalyco/opencode/blob/907b3bc518fa48e90e8ec24dd327d13eee71c36c/packages/core/src/global.ts#L12"),]),+ Definition(id: "kilo", name: "Kilo Code", systemImage: "terminal", appBundleIdentifiers: [], folders: [+ Folder(".cache/kilo", .cache, source: "https://github.com/Kilo-Org/kilocode/blob/fb7e96eda5409517a05948b9efaf01c53997bf6e/packages/kilo-docs/pages/getting-started/settings/sandboxing.md#L108-L113"),+ ]),+ Definition(id: "continue", name: "Continue", systemImage: "terminal", appBundleIdentifiers: [], folders: [+ Folder(".continue/logs", .logs, source: "https://github.com/continuedev/continue/blob/5522c6f44ca0ac3528b37244818fbfa39b5af470/core/util/paths.ts#L385-L399"),+ ]),+ Definition(id: "cline", name: "Cline", systemImage: "terminal", appBundleIdentifiers: [], folders: [+ Folder(".cline/data/logs", .logs, source: "https://github.com/cline/cline/blob/c3a40572765b76873c597247941118c1778d02c8/docs/cli/cli-reference.mdx#L363-L376"),+ ]),// Cloud toolsDefinition(id: "gcloud", name: "Google Cloud CLI", systemImage: "cloud", appBundleIdentifiers: [], folders: [Folder(".config/gcloud/logs", .logs, source: "https://docs.cloud.google.com/compute/docs/troubleshooting/general-tips"),diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swiftindex 16cc871d..201c24b0 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift@@ -384,8 +384,9 @@ struct DeveloperCachesTests {".minikube", ".minikube/cache/images", ".vagrant.d", "Library/Application Support/Jan/data", "Library/Caches/ollama",// Unity keeps its licenses beside its caches; SonarScanner the client certificates it signs in with."Library/Unity", ".sonar",- // Claude Code and Codex keep every conversation and prompt beside their caches and logs.- ".claude", ".codex",+ // Claude Code and Codex keep every conversation and prompt beside their caches and logs; Continue its+ // configuration and sessions, Cline its sessions and the API keys in `data/settings`.+ ".claude", ".codex", ".continue", ".cline", ".cline/data",]// 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`,@@ -430,6 +431,24 @@ struct DeveloperCachesTests {#expect(Set(listed) == [".claude/cache", ".claude/debug", ".claude/statsig", ".codex/log"])}+ @Test func listsWhatOtherCodingAgentsCacheAndLogButNeverTheirSettings() async throws {+ let directory = try TemporaryDirectory()+ for path in [+ ".cache/kilo/bin/rg", ".local/share/kilo/sessions/session.json", ".continue/logs/core.log",+ ".continue/logs/prompt.log", ".continue/config.yaml", ".continue/sessions/session.json",+ ".cline/data/logs/cline.log", ".cline/data/settings/providers.json", ".cline/data/sessions/1/messages.json",+ ] {+ try directory.file(path, bytes: 4_096)+ }++ let environments = await scanned(directory.url)++ let home = directory.url.path(percentEncoded: false)+ let listed = environments.filter { ["kilo", "continue", "cline"].contains($0.id) }+ .flatMap(\.locations).map { String($0.url.path(percentEncoded: false).dropFirst(home.count)) }+ #expect(Set(listed) == [".cache/kilo", ".continue/logs", ".cline/data/logs"])+ }+/// 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() {@@ -848,12 +867,13 @@ struct DeveloperCachesTests {@Test func offersTheDocumentationXcodeCaches() async throws {let directory = try TemporaryDirectory()try directory.file("Library/Developer/Xcode/DocumentationCache/v27/index.db", bytes: 400_000)+ try directory.file("Library/Developer/Xcode/DocumentationIndex/index.db", bytes: 400_000)let xcode = DeveloperCaches.definitions.filter { $0.id == "xcode" }let locations = await DeveloperCaches.scan(xcode, homeDirectory: directory.url).flatMap(\.locations)- #expect(locations.map(\.url.lastPathComponent) == ["DocumentationCache"])- #expect(locations.first?.kind == .cache)+ #expect(Set(locations.map(\.url.lastPathComponent)) == ["DocumentationCache", "DocumentationIndex"])+ #expect(locations.allSatisfy { $0.kind == .cache })}@Test func offersTheLogsOfTheSimulatorsAndSpaceLeavesThemToDeveloper() async throws {