Your AI agent skills, finally organized. A macOS app to browse, edit, and manage skills across Claude Code, Cursor, Codex, Windsurf, and Amp.
fix: Stop .agents symlink dirs from falsely detecting uninstalled tools (#82)
Josh Pigfordcf006faa72e8
diff --git a/Chops/Models/ToolSource.swift b/Chops/Models/ToolSource.swiftindex d303bd5..54115d9 100644--- a/Chops/Models/ToolSource.swift+++ b/Chops/Models/ToolSource.swift@@ -194,42 +194,33 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {|| fm.fileExists(atPath: "\(home)/.claude/CLAUDE.md")|| fm.fileExists(atPath: "\(home)/.claude/plugins/installed_plugins.json")|| Self.cliBinaryExists("claude")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .cursor:return fm.fileExists(atPath: "/Applications/Cursor.app")|| fm.fileExists(atPath: "\(home)/.cursor/argv.json")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .windsurf:return fm.fileExists(atPath: "/Applications/Windsurf.app")|| fm.fileExists(atPath: "\(home)/.codeium/windsurf/argv.json")- || globalPaths.contains { fm.fileExists(atPath: $0) }- || globalRulePaths.contains { fm.fileExists(atPath: $0) }case .codex:return fm.fileExists(atPath: "\(home)/.codex/config.toml")|| fm.fileExists(atPath: "\(home)/.codex/auth.json")|| Self.cliBinaryExists("codex")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .amp:let configHome = ProcessInfo.processInfo.environment["XDG_CONFIG_HOME"].flatMap { $0.isEmpty ? nil : $0 } ?? "\(home)/.config"return fm.fileExists(atPath: "\(configHome)/amp/config.json")|| fm.fileExists(atPath: "\(configHome)/amp/settings.json")|| Self.cliBinaryExists("amp")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .pi:return Self.cliBinaryExists("pi")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .copilot:return fm.fileExists(atPath: "\(home)/.copilot")|| Self.cliBinaryExists("copilot")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .agents:return fm.fileExists(atPath: "\(home)/.agents/skills")case .antigravity:return Self.appBundleExists("Antigravity")|| fm.fileExists(atPath: "\(home)/.antigravity")|| Self.cliBinaryExists("antigravity")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .opencode:let configHome = ProcessInfo.processInfo.environment["XDG_CONFIG_HOME"].flatMap { $0.isEmpty ? nil : $0 } ?? "\(home)/.config"@@ -238,11 +229,10 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {|| fm.fileExists(atPath: "\(configHome)/opencode/opencode.jsonc")|| fm.fileExists(atPath: "\(home)/.local/share/opencode")|| Self.cliBinaryExists("opencode")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .augment:- return fm.fileExists(atPath: "\(home)/.augment")+ return Self.appBundleExists("Augment")+ || fm.fileExists(atPath: "\(home)/.augment/settings.json")|| Self.cliBinaryExists("augment")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .claudeDesktop:return Self.appBundleExists("Claude")case .openclaw:@@ -250,7 +240,6 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {|| Self.cliBinaryExists("openclaw")|| fm.fileExists(atPath: "/opt/homebrew/lib/node_modules/openclaw")|| fm.fileExists(atPath: "/usr/local/lib/node_modules/openclaw")- || globalPaths.contains { fm.fileExists(atPath: $0) }case .aider, .custom:return true}