@misconfig/cli 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,324 @@
1
+ // What misconfig knows to be malicious, or to be missing security fixes,
2
+ // from public reports. It ships with each release and is checked on the
3
+ // computer, with no network requests. Add --lookup to also ask OSV.dev, which
4
+ // is updated every day. Every entry names its source, and only facts the
5
+ // source states are used.
6
+ //
7
+ // Shared and private reports repeat these words, and misconfig.ai accepts
8
+ // only words this file gives. When the wording of a fact changes after a
9
+ // release, keep the old wording in the entry's `was` (for example
10
+ // was: { what: ["..."] }), so reports made by earlier versions still open.
11
+
12
+ // Packages, by "ecosystem:name". `versions` is "all" when every version is
13
+ // unsafe (including a copy that looks harmless), or the versions that were
14
+ // malware.
15
+ export const KNOWN_PACKAGES = {
16
+ "npm:postmark-mcp": {
17
+ versions: "all",
18
+ what: "a copy of Postmark's MCP server published by someone else. From version 1.0.16 it secretly copied every email it sent to the publisher",
19
+ source: "Koi Security, September 2025",
20
+ was: { source: ["Dark Reading, September 2025"] },
21
+ },
22
+ "npm:@lanyer640/mcp-runcommand-server": {
23
+ versions: "all",
24
+ what: "an MCP server that, from version 1.0.6, opens a reverse shell to the attacker as soon as it's installed",
25
+ source: "Checkmarx, October 2025",
26
+ },
27
+ "npm:mcp-server-github": {
28
+ versions: "all",
29
+ what: "a lookalike of the official @modelcontextprotocol/server-github that reports details of every computer it's installed on",
30
+ source: "OSV MAL-2026-5479",
31
+ },
32
+ "npm:@atlisp/mcp": {
33
+ versions: ["1.12.14"],
34
+ what: "an MCP package whose version 1.12.14 is malware that can take over the computer",
35
+ source: "Helix threat watch, October 2026",
36
+ },
37
+ "npm:@revizahoshii/hoshino-mcp-server": { versions: "all", what: "an MCP server listed as malware", source: "OSV MAL-2026-17825" },
38
+ "npm:@httttt/mcp-npx-fetch-1": { versions: "all", what: "an MCP server listed as malware", source: "OSV MAL-2026-16422" },
39
+ "npm:ubiquiti-agents-link-mcp": { versions: "all", what: "an MCP server listed as malware", source: "OSV MAL-2026-16409" },
40
+ // The s1ngularity attack: malicious Nx releases that used installed AI
41
+ // agents (claude, gemini, q) with their safety flags off to hunt for secrets.
42
+ ...Object.fromEntries(
43
+ [
44
+ ["nx", ["20.9.0", "20.10.0", "20.11.0", "20.12.0", "21.5.0", "21.6.0", "21.7.0", "21.8.0"]],
45
+ ["@nx/devkit", ["20.9.0", "21.5.0"]],
46
+ ["@nx/js", ["20.9.0", "21.5.0"]],
47
+ ["@nx/node", ["20.9.0", "21.5.0"]],
48
+ ["@nx/workspace", ["20.9.0", "21.5.0"]],
49
+ ["@nx/eslint", ["21.5.0"]],
50
+ ["@nx/enterprise-cloud", ["3.2.0"]],
51
+ ["@nx/key", ["3.2.0"]],
52
+ ].map(([name, versions]) => [
53
+ `npm:${name}`,
54
+ {
55
+ versions,
56
+ what: "a release replaced with malware in the s1ngularity attack. It ran the AI agents on the computer with their safety checks off to find secrets, and published them",
57
+ source: "Nx advisory GHSA-cxm3-wv7p-598c",
58
+ },
59
+ ]),
60
+ ),
61
+ };
62
+
63
+ // Editor extensions, by lowercase "publisher.name". `editors` limits an entry
64
+ // to the editors whose marketplace served the bad build.
65
+ const GLASSWORM = {
66
+ versions: "all",
67
+ what: "one of the extensions in the GlassWorm campaign, which installs remote-access malware",
68
+ source: "The Hacker News, December 2025",
69
+ };
70
+ export const KNOWN_EXTENSIONS = {
71
+ "anthropic.claude-code": {
72
+ versions: ["2.1.312", "2.1.313"],
73
+ editors: ["Cursor"],
74
+ what: "a tampered build of the Claude Code extension that Cursor's marketplace served on October 29, 2026. It adds an SSH key to ~/.ssh/authorized_keys and opens a tunnel to the attacker",
75
+ source: "StepSecurity, October 2026",
76
+ advice: "Uninstall it, delete any key ending in svc-telemetry from ~/.ssh/authorized_keys, and follow Cursor's security notice for this extension",
77
+ },
78
+ ...Object.fromEntries(
79
+ [
80
+ "iconkieftwo.icon-theme-materiall",
81
+ "prisma-inc.prisma-studio-assistance",
82
+ "prettier-vsc.vsce-prettier",
83
+ "flutcode.flutter-extension",
84
+ "csvmech.csvrainbow",
85
+ "codevsce.codelddb-vscode",
86
+ "saoudrizvsce.claude-devsce",
87
+ "saoudrizvsce.claude-dev",
88
+ "clangdcode.clangd-vsce",
89
+ "cweijamysq.sync-settings-vscode",
90
+ "bphpburnsus.iconesvscode",
91
+ "bphpburn.icons-vscode",
92
+ "klustfix.kluster-code-verify",
93
+ "vims-vsce.vscode-vim",
94
+ "yamlcode.yaml-vscode-extension",
95
+ "solblanco.svetle-vsce",
96
+ "vsceue.volar-vscode",
97
+ "redmat.vscode-quarkus-pro",
98
+ "msjsdreact.react-native-vsce",
99
+ "tailwind-nuxt.tailwindcss-for-react",
100
+ "vitalik.solidity",
101
+ ].map((id) => [id, GLASSWORM]),
102
+ ),
103
+ };
104
+
105
+ // The official extensions of AI coding agents. Another publisher's extension
106
+ // with the same name, or a near copy of the name and publisher, is flagged.
107
+ export const AGENT_EXTENSIONS = {
108
+ "anthropic.claude-code": "Claude Code",
109
+ "saoudrizwan.claude-dev": "Cline",
110
+ "rooveterinaryinc.roo-cline": "Roo Code",
111
+ "kilocode.kilo-code": "Kilo Code",
112
+ "github.copilot": "GitHub Copilot",
113
+ "github.copilot-chat": "GitHub Copilot Chat",
114
+ "google.geminicodeassist": "Gemini Code Assist",
115
+ "amazonwebservices.amazon-q-vscode": "Amazon Q",
116
+ "continue.continue": "Continue",
117
+ };
118
+
119
+ // Agents installed as npm packages, and their published security advisories:
120
+ // GitHub's advisory pages for anthropics/claude-code and openai/codex.
121
+ // Versions from `introduced` up to, not including, `fixed` are affected.
122
+ // Gemini CLI had none published there.
123
+ export const AGENT_PACKAGES = {
124
+ "@anthropic-ai/claude-code": { tool: "Claude Code", update: { npm: "npm install -g @anthropic-ai/claude-code@latest", native: "claude update", homebrew: "brew upgrade claude-code", local: "claude update" } },
125
+ "@openai/codex": { tool: "Codex", update: { npm: "npm install -g @openai/codex@latest", homebrew: "brew upgrade codex" } },
126
+ "@google/gemini-cli": { tool: "Gemini CLI", update: { npm: "npm install -g @google/gemini-cli@latest", homebrew: "brew upgrade gemini-cli" } },
127
+ "@github/copilot": { tool: "GitHub Copilot", update: { npm: "npm install -g @github/copilot@latest" } },
128
+ "opencode-ai": { tool: "OpenCode", update: { npm: "npm install -g opencode-ai@latest" } },
129
+ "@sourcegraph/amp": { tool: "Amp", update: { npm: "npm install -g @sourcegraph/amp@latest" } },
130
+ "Claude Desktop": { tool: "Claude Desktop", update: { app: "Open Claude Desktop and install the update it offers, or download the latest from claude.ai/download" } },
131
+ };
132
+
133
+ const cc = (id, cve, severity, title, introduced, fixed) => ({ id, cve, severity, title, introduced, fixed });
134
+ export const AGENT_ADVISORIES = {
135
+ "@anthropic-ai/claude-code": [
136
+ cc("GHSA-pq7j-f95f-qfcv", "CVE-2026-86063", "high", "a plugin's pinned commit could be bypassed to install attacker-controlled code", "0.0.0", "2.1.179"),
137
+ cc("GHSA-5j29-h97v-84ch", "CVE-2026-103435", "high", "a symlink could redirect a file write anywhere", "0.0.0", "2.1.129"),
138
+ cc("GHSA-gfvf-j8jh-jxxw", "CVE-2026-103012", "low", "managed settings weren't applied when a stored API key was used", "2.0.68", "2.1.260"),
139
+ cc("GHSA-7835-87q9-rgvv", "CVE-2026-55607", "high", "a git worktree could escape the sandbox", "2.1.38", "2.1.163"),
140
+ cc("GHSA-fg94-h982-f3mm", "CVE-2026-54316", "medium", "data could leak through a pre-approved domain in WebFetch", "0.2.54", "2.1.163"),
141
+ cc("GHSA-4vp2-6q8c-pvq2", "CVE-2026-46406", "medium", "the /copy command used an insecure temporary file", "2.1.59", "2.1.128"),
142
+ cc("GHSA-5cwg-9f6j-9jvx", "CVE-2026-35603", "medium", "system-wide settings were loaded insecurely on Windows", "0.0.0", "2.1.75"),
143
+ cc("GHSA-q5hj-mxqh-vv77", "CVE-2026-40068", "high", "a spoofed git worktree could skip the trust dialog and run code", "2.1.63", "2.1.84"),
144
+ cc("GHSA-vp62-r36r-9xqp", "CVE-2026-39861", "high", "a symlink could write files outside the workspace and escape the sandbox", "0.0.0", "2.1.64"),
145
+ cc("GHSA-mmgp-wc2j-qcv7", "CVE-2026-33068", "high", "a repository's settings file could skip the workspace trust dialog", "0.0.0", "2.1.53"),
146
+ cc("GHSA-ff64-7w26-62rf", "CVE-2026-25725", "high", "settings.json could be changed to escape the sandbox", "0.0.0", "2.1.2"),
147
+ cc("GHSA-4q92-rfm6-2cqx", "CVE-2026-25724", "low", "symbolic links could get around deny rules", "0.0.0", "2.1.7"),
148
+ cc("GHSA-66q4-vfjg-2qhh", "CVE-2026-25722", "high", "changing directory could bypass write protection", "0.0.0", "2.0.57"),
149
+ cc("GHSA-mhg7-666j-cqg4", "CVE-2026-25723", "high", "a piped sed command could bypass file write restrictions", "0.0.0", "2.0.55"),
150
+ cc("GHSA-vhw5-3g5m-8ggf", "CVE-2026-24052", "high", "domain checks could be bypassed to reach attacker-controlled sites", "0.0.0", "1.0.111"),
151
+ cc("GHSA-qgqw-h4xq-7w8w", "CVE-2026-24887", "high", "a find command could run without the approval prompt", "0.0.0", "2.0.72"),
152
+ cc("GHSA-q728-gf8j-w49r", "CVE-2026-24053", "high", "a zsh feature could write files outside allowed paths", "0.0.0", "2.0.74"),
153
+ cc("GHSA-jh7p-qr78-84p7", "CVE-2026-21852", "medium", "a repository's configuration could leak data before the trust prompt", "0.0.0", "2.0.65"),
154
+ cc("GHSA-xq4m-mc3c-vvg3", "CVE-2025-66032", "high", "command validation could be bypassed to run any code", "0.0.0", "1.0.93"),
155
+ cc("GHSA-5hhx-v7f6-x7gv", "CVE-2025-65099", "high", "commands could run before the startup trust dialog", "0.0.0", "1.0.39"),
156
+ cc("GHSA-7mv8-j34q-vp7q", "CVE-2025-64755", "high", "a sed command could write files without approval", "0.0.0", "2.0.31"),
157
+ cc("GHSA-66m2-gx93-v996", "CVE-2025-59829", "low", "a symlink could get around deny rules", "0.0.0", "1.0.120"),
158
+ cc("GHSA-2jjv-qf24-vfm4", "CVE-2025-59828", "high", "plugins could autoload and run code with some Yarn versions", "0.0.0", "1.0.39"),
159
+ cc("GHSA-4fgq-fpq9-mr3g", "CVE-2025-59536", "high", "commands could run before the startup trust dialog", "0.0.0", "1.0.111"),
160
+ cc("GHSA-j4h9-wv2m-wrf7", "CVE-2025-59041", "high", "a crafted git email setting could run code", "0.0.0", "1.0.105"),
161
+ cc("GHSA-qxfv-fcpc-w36x", "CVE-2025-58764", "high", "an rg command could run without the approval prompt", "0.0.0", "1.0.105"),
162
+ cc("GHSA-ph6w-f82w-28w6", null, "high", "the startup warning wasn't enough to stop code from running", "0.0.0", "1.0.87"),
163
+ cc("GHSA-x5gv-jw7f-j6xj", "CVE-2025-55284", "high", "a permissive default allowlist let files be read and sent out", "0.0.0", "1.0.4"),
164
+ cc("GHSA-x56v-x2h6-7j34", "CVE-2025-54795", "high", "an echo command could run without the approval prompt", "0.0.0", "1.0.20"),
165
+ cc("GHSA-pmw4-pwvc-3hx2", "CVE-2025-54794", "high", "similar path names could get around path restrictions", "0.0.0", "0.2.111"),
166
+ cc("GHSA-9f65-56v6-gxw7", "CVE-2025-52882", "high", "the IDE extensions accepted connections from any website", "0.2.117", "1.0.24"),
167
+ ],
168
+ "@openai/codex": [cc("GHSA-w5fx-fh39-j5rw", "CVE-2025-59532", "high", "a bug in path handling could bypass the sandbox", "0.2.0", "0.39.0")],
169
+ // Claude Desktop builds are on GitHub's anthropics/claude-code advisory pages too.
170
+ "Claude Desktop": [
171
+ { ...cc("GHSA-v234-4jrq-mgg6", null, "high", "opening a file from a Cowork folder could run commands", "1.1.3918", "1.15962.0"), platforms: ["mac"] },
172
+ { ...cc("GHSA-4p2j-qj3c-6x84", "CVE-2026-88066", "high", "a malicious git program could be run from the search path", "0.0.0", "1.8089.0"), platforms: ["windows"] },
173
+ { ...cc("GHSA-5p5x-5294-qhp3", "CVE-2026-44470", "high", "a directory junction could give local administrator access", "0.0.0", "1.3834.0"), platforms: ["windows"] },
174
+ cc("GHSA-3rwf-2g6p-c2f9", "CVE-2026-44467", "high", "SSH host keys weren't checked for remote sessions", "1.2581.0", "1.4304.0"),
175
+ ],
176
+ };
177
+
178
+ // Files that attacks on AI agents and their users leave behind, checked by
179
+ // name only. `strong` marks names nothing else is likely to use.
180
+ export const TRACES = [
181
+ {
182
+ paths: ["/tmp/inventory.txt.bak"],
183
+ strong: true,
184
+ campaign: "s1ngularity",
185
+ what: "The s1ngularity attack used AI agents on the computer to list secret files here",
186
+ fix: "Rotate your GitHub, npm and cloud keys, check ~/.bashrc and ~/.zshrc for a line that shuts the computer down, and remove the file once you've looked at it",
187
+ platforms: ["mac", "linux"],
188
+ },
189
+ {
190
+ paths: ["/tmp/inventory.txt"],
191
+ strong: false,
192
+ campaign: "s1ngularity",
193
+ what: "The s1ngularity attack used AI agents on the computer to list secret files under this name. Other tools can use the same name",
194
+ fix: "If you didn't make it, open it: a list of key and wallet files means the attack ran. Then rotate your GitHub, npm and cloud keys",
195
+ platforms: ["mac", "linux"],
196
+ },
197
+ {
198
+ paths: ["~/.dev-env/.runner", "~/.dev-env/run.sh", "~/.dev-env/config.sh"],
199
+ strong: true,
200
+ campaign: "Shai-Hulud 2.0",
201
+ what: "Shai-Hulud 2.0 installs a GitHub Actions runner in ~/.dev-env so its owners can run code on this computer",
202
+ fix: "Disconnect the runner, delete ~/.dev-env, rotate your GitHub, npm and cloud keys, and check your repositories for workflows you didn't add",
203
+ },
204
+ {
205
+ paths: ["~/Library/LaunchAgents/com.apple.sysmond.plist"],
206
+ strong: true,
207
+ campaign: "the tampered Claude Code extension for Cursor",
208
+ what: "The tampered Claude Code extension served by Cursor's marketplace in October 2026 starts an SSH tunnel to the attacker from this file at login",
209
+ fix: "Remove the file and the extension, delete any key ending in svc-telemetry from ~/.ssh/authorized_keys, and follow Cursor's security notice",
210
+ platforms: ["mac"],
211
+ },
212
+ {
213
+ paths: ["~/.config/.smt", "~/.config/.smtk", "~/.config/smt.cmd", "~/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/sysmon.cmd"],
214
+ strong: true,
215
+ campaign: "the tampered Claude Code extension for Cursor",
216
+ what: "The tampered Claude Code extension served by Cursor's marketplace in October 2026 keeps its SSH tunnel running with a file in ~/.config or the Windows Startup folder",
217
+ fix: "Remove the extension and what it left, delete any key ending in svc-telemetry from ~/.ssh/authorized_keys (and the SysMon scheduled task on Windows), and follow Cursor's security notice",
218
+ was: {
219
+ what: ["The tampered Claude Code extension served by Cursor's marketplace in October 2026 keeps its SSH tunnel running with these files"],
220
+ fix: ["Remove the files and the extension, delete any key ending in svc-telemetry from ~/.ssh/authorized_keys (and the SysMon scheduled task on Windows), and follow Cursor's security notice"],
221
+ },
222
+ },
223
+ ];
224
+
225
+ // A line attacks add to shell startup files.
226
+ export const SHELL_TRACES = [
227
+ {
228
+ line: /^\s*sudo\s+shutdown\s+-h\s+0\s*$/,
229
+ campaign: "s1ngularity",
230
+ what: "The s1ngularity attack added this line, which shuts the computer down whenever a terminal opens",
231
+ fix: "Delete the line, then change your GitHub, npm and cloud keys: the same attack collected them",
232
+ },
233
+ ];
234
+
235
+ // Workflows worms add to repositories they reach. `strong` marks a match
236
+ // on the workflow's content or a name nothing else uses.
237
+ export const WORKFLOW_TRACES = [
238
+ {
239
+ name: /(^|\/)\.github\/workflows\/discussion\.ya?ml$/i,
240
+ content: (text) => /github\.event\.discussion\.body/.test(text) && /self-hosted/i.test(text),
241
+ strong: true,
242
+ campaign: "Shai-Hulud 2.0",
243
+ what: "Shai-Hulud 2.0 adds this workflow so anyone who opens a GitHub discussion can run code on a self-hosted runner",
244
+ fix: "Delete the workflow, remove self-hosted runners you didn't add, and change the repository's secrets and your GitHub and npm tokens",
245
+ },
246
+ {
247
+ name: /(^|\/)\.github\/workflows\/formatter_\d{3,}\.ya?ml$/i,
248
+ strong: false,
249
+ campaign: "Shai-Hulud 2.0",
250
+ what: "Shai-Hulud 2.0 adds a workflow named like this that copies the repository's secrets",
251
+ fix: "If you didn't add it, delete it and change the repository's secrets and your GitHub and npm tokens",
252
+ },
253
+ {
254
+ name: /(^|\/)\.github\/workflows\/shai-?hulud-?workflow\.ya?ml$/i,
255
+ strong: true,
256
+ campaign: "Shai-Hulud",
257
+ what: "The Shai-Hulud worm adds this workflow to repositories it reaches",
258
+ fix: "Delete the workflow, then change the repository's secrets and your GitHub and npm tokens",
259
+ },
260
+ ];
261
+
262
+ // Hosts and addresses named in these reports as attackers' servers.
263
+ export const KNOWN_BAD_HOSTS = {
264
+ "91.92.242.30": "the ClawHub skills attack (Snyk, February 2026)",
265
+ "134.209.82.225": "the tampered Claude Code extension for Cursor (StepSecurity, October 2026)",
266
+ "45.115.38.27": "the @lanyer640/mcp-runcommand-server reverse shell (Checkmarx, October 2025)",
267
+ "giftshop.club": "the postmark-mcp email theft (Koi Security, September 2025)",
268
+ "npx-canary-log.vulnerable-live.workers.dev": "the mcp-server-github lookalike (OSV MAL-2026-5479)",
269
+ };
270
+
271
+ // Official MCP packages people mean to install. A name a letter or two away,
272
+ // or one copied without its scope, is flagged as a lookalike.
273
+ export const OFFICIAL_MCP_PACKAGES = [
274
+ ...["filesystem", "github", "gitlab", "memory", "puppeteer", "brave-search", "google-maps", "slack", "postgres", "everything", "sequential-thinking", "gdrive", "aws-kb-retrieval", "redis", "everart"].map((s) => `@modelcontextprotocol/server-${s}`),
275
+ "@playwright/mcp",
276
+ "@upstash/context7-mcp",
277
+ "@notionhq/notion-mcp-server",
278
+ "@stripe/mcp",
279
+ "@supabase/mcp-server-supabase",
280
+ "@sentry/mcp-server",
281
+ "@cloudflare/mcp-server-cloudflare",
282
+ "@azure/mcp",
283
+ "mcp-remote",
284
+ "firecrawl-mcp",
285
+ "@anthropic-ai/claude-code",
286
+ "@openai/codex",
287
+ "@google/gemini-cli",
288
+ ];
289
+ export const OFFICIAL_PYPI_MCP = ["mcp-server-fetch", "mcp-server-git", "mcp-server-time", "mcp"];
290
+
291
+ // Versions in the order semver gives them: numbers part by part, and a
292
+ // pre-release such as 2.0.0-beta.1 before its release. Build data after +
293
+ // doesn't count.
294
+ export function compareVersions(a, b) {
295
+ const parse = (v) => {
296
+ const text = String(v).replace(/^v/, "").split("+")[0];
297
+ const dash = text.indexOf("-");
298
+ return {
299
+ main: (dash < 0 ? text : text.slice(0, dash)).split(".").map((n) => Number.parseInt(n, 10) || 0),
300
+ pre: dash < 0 ? [] : text.slice(dash + 1).split("."),
301
+ };
302
+ };
303
+ const pa = parse(a);
304
+ const pb = parse(b);
305
+ for (let i = 0; i < Math.max(pa.main.length, pb.main.length, 3); i++) {
306
+ const d = (pa.main[i] ?? 0) - (pb.main[i] ?? 0);
307
+ if (d) return d < 0 ? -1 : 1;
308
+ }
309
+ if (!pa.pre.length || !pb.pre.length) return pa.pre.length === pb.pre.length ? 0 : pa.pre.length ? -1 : 1;
310
+ for (let i = 0; i < Math.max(pa.pre.length, pb.pre.length); i++) {
311
+ const x = pa.pre[i];
312
+ const y = pb.pre[i];
313
+ if (x === undefined || y === undefined) return x === undefined ? -1 : 1;
314
+ if (x === y) continue;
315
+ const nx = /^\d+$/.test(x);
316
+ const ny = /^\d+$/.test(y);
317
+ if (nx && ny) return Number(x) < Number(y) ? -1 : 1;
318
+ if (nx !== ny) return nx ? -1 : 1;
319
+ return x < y ? -1 : 1;
320
+ }
321
+ return 0;
322
+ }
323
+
324
+ export const VERSION_RE = /^v?\d{1,6}(?:\.\d{1,6}){1,3}(?:[-+][0-9A-Za-z.-]{1,40})?$/;
@@ -3,21 +3,35 @@
3
3
  //
4
4
  // Tokens: "~" is the home folder. "{config}" is the per-user app settings
5
5
  // folder: ~/Library/Application Support on macOS, %APPDATA% on Windows and
6
- // ~/.config on Linux. A path ending in "/" is a folder of files.
6
+ // ~/.config on Linux. A path ending in "/" is a folder of agent files, and
7
+ // "*" stands for any one folder or file name.
7
8
 
8
9
  export const OSES = { mac: "macOS", windows: "Windows", linux: "Linux" };
9
10
 
10
11
  export const LOCATIONS = [
11
12
  {
12
13
  agent: "Claude Code",
13
- controls: "Permissions, hooks, MCP servers, and every folder it has been started in",
14
- user: ["~/.claude/settings.json", "~/.claude/settings.local.json", "~/.claude.json", "~/.claude/CLAUDE.md", "~/.claude/agents/", "~/.claude/commands/", "~/.claude/skills/", "~/.claude/hooks/"],
14
+ controls: "Permissions, hooks, MCP servers, plugins, memory, and every folder it has been started in",
15
+ user: [
16
+ "~/.claude/settings.json",
17
+ "~/.claude/settings.local.json",
18
+ "~/.claude.json",
19
+ "~/.claude/CLAUDE.md",
20
+ "~/.claude/rules/",
21
+ "~/.claude/agents/",
22
+ "~/.claude/commands/",
23
+ "~/.claude/skills/",
24
+ "~/.claude/hooks/",
25
+ "~/.claude/projects/*/memory/MEMORY.md",
26
+ "~/.claude/plugins/installed_plugins.json",
27
+ "~/.claude/plugins/known_marketplaces.json",
28
+ ],
15
29
  system: {
16
- mac: ["/Library/Application Support/ClaudeCode/managed-settings.json"],
17
- windows: ["C:/ProgramData/ClaudeCode/managed-settings.json"],
18
- linux: ["/etc/claude-code/managed-settings.json"],
30
+ mac: ["/Library/Application Support/ClaudeCode/managed-settings.json", "/Library/Application Support/ClaudeCode/managed-settings.d/", "/Library/Application Support/ClaudeCode/managed-mcp.json"],
31
+ windows: ["C:/Program Files/ClaudeCode/managed-settings.json", "C:/Program Files/ClaudeCode/managed-settings.d/", "C:/Program Files/ClaudeCode/managed-mcp.json"],
32
+ linux: ["/etc/claude-code/managed-settings.json", "/etc/claude-code/managed-settings.d/", "/etc/claude-code/managed-mcp.json"],
19
33
  },
20
- project: ["CLAUDE.md", ".claude/settings.json", ".claude/settings.local.json", ".mcp.json", ".claude/agents/", ".claude/commands/"],
34
+ project: ["CLAUDE.md", ".claude/settings.json", ".claude/settings.local.json", ".mcp.json", ".claude/rules/", ".claude/agents/", ".claude/commands/", ".claude/skills/"],
21
35
  },
22
36
  {
23
37
  agent: "Claude Desktop",
@@ -27,26 +41,32 @@ export const LOCATIONS = [
27
41
  },
28
42
  {
29
43
  agent: "Codex",
30
- controls: "Sandbox, approvals, MCP servers and trusted folders",
31
- user: ["~/.codex/config.toml", "~/.codex/AGENTS.md"],
32
- project: ["AGENTS.md", ".codex/config.toml"],
44
+ controls: "Sandbox, approvals, hooks, command rules, MCP servers, skills and trusted folders",
45
+ user: ["~/.codex/config.toml", "~/.codex/*.config.toml", "~/.codex/hooks.json", "~/.codex/rules/", "~/.codex/AGENTS.md", "~/.agents/skills/"],
46
+ system: { mac: ["/etc/codex/config.toml", "/etc/codex/requirements.toml"], linux: ["/etc/codex/config.toml", "/etc/codex/requirements.toml"] },
47
+ project: ["AGENTS.md", ".codex/config.toml", ".codex/hooks.json", ".codex/rules/", ".agents/skills/"],
33
48
  },
34
49
  {
35
- agent: "Cursor",
36
- controls: "Rules, MCP servers and editor settings",
37
- user: ["~/.cursor/mcp.json", "{config}/Cursor/User/settings.json"],
38
- project: [".cursor/rules/", ".cursor/mcp.json", ".cursorrules", "AGENTS.md"],
50
+ agent: "GitHub Copilot",
51
+ controls: "Instructions, auto-approval, hooks, MCP servers and trusted folders, in VS Code and on the command line",
52
+ user: ["{config}/Code/User/settings.json", "{config}/Code/User/mcp.json", "~/.copilot/config.json", "~/.copilot/mcp-config.json"],
53
+ project: [".github/copilot-instructions.md", ".github/instructions/", ".github/prompts/", ".github/agents/", ".github/hooks/", ".github/mcp.json", ".vscode/settings.json", ".vscode/mcp.json", ".mcp.json", "AGENTS.md"],
39
54
  },
40
55
  {
41
- agent: "GitHub Copilot in VS Code",
42
- controls: "Instructions, auto-approval and MCP servers",
43
- user: ["{config}/Code/User/settings.json", "{config}/Code/User/mcp.json"],
44
- project: [".github/copilot-instructions.md", ".github/instructions/", ".github/prompts/", ".vscode/settings.json", ".vscode/mcp.json"],
56
+ agent: "Cursor",
57
+ controls: "Rules, hooks, sandbox, command permissions and MCP servers",
58
+ user: ["~/.cursor/mcp.json", "~/.cursor/hooks.json", "~/.cursor/cli-config.json", "~/.cursor/sandbox.json", "~/.cursor/permissions.json", "{config}/Cursor/User/settings.json"],
59
+ project: [".cursor/rules/", ".cursor/mcp.json", ".cursor/hooks.json", ".cursor/cli.json", ".cursorrules", "AGENTS.md"],
45
60
  },
46
61
  {
47
62
  agent: "Gemini CLI",
48
- controls: "YOLO and auto-accept, MCP servers and instructions",
49
- user: ["~/.gemini/settings.json", "~/.gemini/GEMINI.md"],
63
+ controls: "Approval mode, trusted folders, extensions, MCP servers and instructions",
64
+ user: ["~/.gemini/settings.json", "~/.gemini/GEMINI.md", "~/.gemini/trustedFolders.json", "~/.gemini/extensions/*/gemini-extension.json", "~/.gemini/extensions/*/GEMINI.md"],
65
+ system: {
66
+ mac: ["/Library/Application Support/GeminiCli/settings.json"],
67
+ windows: ["C:/ProgramData/gemini-cli/settings.json"],
68
+ linux: ["/etc/gemini-cli/settings.json"],
69
+ },
50
70
  project: ["GEMINI.md", ".gemini/settings.json"],
51
71
  },
52
72
  {
@@ -55,33 +75,62 @@ export const LOCATIONS = [
55
75
  user: {
56
76
  mac: ["~/.zshrc", "~/.zprofile", "~/.bash_profile", "~/.bashrc"],
57
77
  linux: ["~/.bashrc", "~/.zshrc", "~/.profile", "~/.config/fish/config.fish"],
58
- windows: ["~/Documents/PowerShell/Microsoft.PowerShell_profile.ps1", "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1"],
78
+ windows: [
79
+ "~/Documents/PowerShell/Microsoft.PowerShell_profile.ps1",
80
+ "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1",
81
+ "~/OneDrive*/Documents/PowerShell/Microsoft.PowerShell_profile.ps1",
82
+ "~/OneDrive*/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1",
83
+ ],
59
84
  },
60
85
  project: [],
61
86
  },
62
87
  {
63
88
  agent: "OpenCode",
64
- controls: "Permissions, session sharing and MCP servers",
65
- user: ["~/.config/opencode/opencode.json", "~/.config/opencode/AGENTS.md"],
89
+ controls: "Permissions, session sharing, plugins and MCP servers",
90
+ user: ["~/.config/opencode/opencode.json", "~/.config/opencode/AGENTS.md", "~/.config/opencode/plugins/"],
66
91
  project: ["opencode.json", ".opencode/", "AGENTS.md"],
67
92
  },
68
93
  {
69
- agent: "Grok CLI",
70
- controls: "API key, model and MCP servers",
71
- user: ["~/.grok/settings.json", "~/.grok/user-settings.json"],
72
- project: [".grok/settings.json", ".grok/GROK.md"],
94
+ agent: "Cline",
95
+ controls: "Auto-approval, YOLO mode, MCP servers and rules",
96
+ user: ["{config}/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", "~/.cline/data/settings/cline_mcp_settings.json", "~/.cline/data/globalState.json", "~/Documents/Cline/Rules/"],
97
+ project: [".clinerules", ".cline/plugins/"],
73
98
  },
74
99
  {
75
100
  agent: "Windsurf",
76
- controls: "Rules and MCP servers",
77
- user: ["~/.codeium/windsurf/mcp_config.json", "{config}/Windsurf/User/settings.json"],
78
- project: [".windsurf/rules/", ".windsurfrules"],
101
+ controls: "Rules, hooks and MCP servers",
102
+ user: ["~/.codeium/windsurf/mcp_config.json", "~/.codeium/windsurf/hooks.json", "{config}/Windsurf/User/settings.json"],
103
+ project: [".windsurf/rules/", ".windsurf/hooks.json", ".devin/hooks.v1.json", ".windsurfrules"],
79
104
  },
80
105
  {
81
- agent: "Cline",
82
- controls: "MCP servers and auto-approved tools",
83
- user: ["{config}/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json"],
84
- project: [".clinerules"],
106
+ agent: "Zed",
107
+ controls: "Agent tool permissions, trusted projects and context servers",
108
+ user: { mac: ["~/.config/zed/settings.json"], linux: ["~/.config/zed/settings.json"], windows: ["{config}/Zed/settings.json"] },
109
+ project: [".zed/settings.json"],
110
+ },
111
+ {
112
+ agent: "Grok",
113
+ controls: "Permission mode, sandbox, hooks and MCP servers",
114
+ user: ["~/.grok/config.toml", "~/.grok/settings.json", "~/.grok/hooks/"],
115
+ project: [".grok/config.toml", ".grok/settings.json", ".grok/hooks/", ".grok/GROK.md"],
116
+ },
117
+ {
118
+ agent: "Amp",
119
+ controls: "Permissions, plugins and MCP servers",
120
+ user: ["~/.config/amp/settings.json", "~/.config/amp/plugins/"],
121
+ project: [".amp/settings.json", ".amp/plugins/", "AGENTS.md"],
122
+ },
123
+ {
124
+ agent: "Goose",
125
+ controls: "Approval mode, extensions and hints",
126
+ user: { mac: ["~/.config/goose/config.yaml"], linux: ["~/.config/goose/config.yaml"], windows: ["{config}/Block/goose/config/config.yaml"] },
127
+ project: [".goosehints"],
128
+ },
129
+ {
130
+ agent: "Continue",
131
+ controls: "Models, MCP servers, rules and where session data is sent",
132
+ user: ["~/.continue/config.yaml", "~/.continue/config.json"],
133
+ project: [".continue/"],
85
134
  },
86
135
  {
87
136
  agent: "Roo Code",
@@ -89,23 +138,23 @@ export const LOCATIONS = [
89
138
  user: ["{config}/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json"],
90
139
  project: [".roo/", ".roomodes"],
91
140
  },
92
- {
93
- agent: "Zed",
94
- controls: "Agent tool approvals and context servers",
95
- user: { mac: ["~/.config/zed/settings.json"], linux: ["~/.config/zed/settings.json"], windows: ["{config}/Zed/settings.json"] },
96
- project: [".zed/settings.json"],
97
- },
98
141
  {
99
142
  agent: "Kiro",
100
- controls: "Steering files and MCP servers",
101
- user: ["~/.kiro/settings/mcp.json", "~/.kiro/steering/"],
102
- project: [".kiro/steering/", ".kiro/settings/mcp.json"],
143
+ controls: "Steering files, hooks, agents and MCP servers",
144
+ user: ["~/.kiro/settings/mcp.json", "~/.kiro/steering/", "~/.kiro/hooks/", "~/.kiro/agents/"],
145
+ project: [".kiro/steering/", ".kiro/settings/mcp.json", ".kiro/hooks/", ".kiro/agents/"],
103
146
  },
104
147
  {
105
148
  agent: "Amazon Q",
106
- controls: "Rules and MCP servers",
107
- user: ["~/.aws/amazonq/mcp.json"],
108
- project: [".amazonq/rules/", ".amazonq/mcp.json"],
149
+ controls: "Rules, agents and MCP servers",
150
+ user: ["~/.aws/amazonq/mcp.json", "~/.aws/amazonq/cli-agents/"],
151
+ project: [".amazonq/rules/", ".amazonq/mcp.json", ".amazonq/cli-agents/"],
152
+ },
153
+ {
154
+ agent: "Junie",
155
+ controls: "Guidelines and MCP servers",
156
+ user: [],
157
+ project: [".junie/guidelines.md", ".junie/AGENTS.md", ".junie/mcp/mcp.json"],
109
158
  },
110
159
  {
111
160
  agent: "Aider",
@@ -124,7 +173,7 @@ export function userPaths(entry, os) {
124
173
  return [...list, ...system].map((p) => p.replace("{config}", CONFIG_DIR[os]));
125
174
  }
126
175
 
127
- // How to write a path so people recognise it on their system.
176
+ // How to write a path so people recognize it on their system.
128
177
  export function displayPath(path, os) {
129
178
  if (os !== "windows") return path;
130
179
  return path