Which files Spellwarden reads for each coding agent
Last updated 23 November 2026
A coding agent takes its tools and its instructions from files: MCP server configurations, hooks, settings, rules, commands and subagents. Whoever can change one of those files can change what the agent does. The Spellwarden scanner reads the files that each vendor documents, in a repository with spellwarden scan and in a home directory with spellwarden scan --user.
The tables below give those files agent by agent, as scanner 1.20.0 reads them, with what is judged in each, what is read but not judged, and what is not read and why. The source is the scanner's README, which wins where a later release differs.
A repository scan and a workstation scan
- A repository scan reads what git tracks under the folder you scan, plus the untracked files that git does not ignore. Each folder named below is found at any depth of the repository, so a
.claudefolder in a subproject counts too. The settings file, the baseline file and the lock file apply. - A workstation scan, in the scanner since 1.14.0, reads the home directory of the person who runs it, on Linux, macOS and Windows, and reports client by client. It reads no settings file, baseline or lock. Scan a developer workstation holds every path, system by system.
A home path starts at the home directory (~) or at a variable the client reads, such as $COPILOT_HOME. The base folder of $CLAUDE_CONFIG_DIR is ~/.claude, of $CODEX_HOME ~/.codex and of $XDG_CONFIG_HOME ~/.config.
What the rules judge
| Content | Rules |
|---|---|
| An MCP server entry | SW-CFG-001, SW-CFG-002, SW-CFG-003, SW-CFG-004, SW-CFG-010, SW-CFG-012 and SW-CFG-013. With --probe, the MCP server rules on what a remote server answers. |
| A hook command | SW-CFG-005, SW-CFG-006 and SW-CFG-007. |
| Claude Code settings | The three hook rules and SW-CFG-008. |
| A plugin marketplace | SW-CFG-009. |
| A skill | The skill rules, whose ids start with SW-SKL. |
| An instruction file: a rule file, a command, a subagent or an output style | The skill rules except SW-SKL-015 and SW-SKL-031, which judge the metadata of a SKILL.md. |
Scanner rules lists every rule with its severity. How often the skill rules are right on the text of commands and subagents has not been measured, and neither has how often SW-CFG-012 and SW-CFG-013 are right on the servers of Codex and Gemini CLI.
Files that several agents read
| What | In a repository | In the home directory |
|---|---|---|
| Skills | Every folder that holds a SKILL.md, with every file below it. | Each client's own skills folder, listed with the client below, and ~/.agents/skills, which Cursor, VS Code, Devin, Codex and Gemini CLI read. |
| Agent instructions | AGENTS.md in any folder, and its variants AGENTS.override.md, AGENTS.local.md and AGENT.md. | Listed with Codex and Devin below. |
| Subagents of the shared folder | A .md file directly in .agents/agents/, and <name>/AGENT.md in that folder. | None. |
| Plugin marketplace | .claude-plugin/marketplace.json and every plugin it lists. A local plugin's skills, MCP configuration, hooks, manifest, commands and agents are read. A plugin hosted elsewhere is listed and locked by its declared source, never fetched. | Listed with each client below. |
On a workstation, a folder that several clients read is one set of items. It names each client that was found among those that read it.
Not read: .agents/plugins/marketplace.json, for which the scanner has no parser or rule.
Claude Code
| What | In a repository | In the home directory |
|---|---|---|
| MCP servers | .mcp.json. | ~/.claude.json: the servers of the user scope and of each project. |
| Settings and hooks | .claude/settings.json and .claude/settings.local.json, with their hooks. | $CLAUDE_CONFIG_DIR/settings.json: hooks, permissions, enabled plugins and extra marketplaces. |
| Instruction files | CLAUDE.md in any folder, and its variant CLAUDE.local.md. | $CLAUDE_CONFIG_DIR/CLAUDE.md. |
| Rules | A .md file under .claude/rules/, subfolders included. | $CLAUDE_CONFIG_DIR/rules/**/*.md. |
| Commands | A .md file under .claude/commands/, subfolders included. | $CLAUDE_CONFIG_DIR/commands/**/*.md. |
| Subagents | A .md file under .claude/agents/, subfolders included. | $CLAUDE_CONFIG_DIR/agents/**/*.md. |
| Output styles | A .md file directly in .claude/output-styles/. | $CLAUDE_CONFIG_DIR/output-styles/*.md. |
| Skills | See the shared files above. | $CLAUDE_CONFIG_DIR/skills. |
| Plugins and marketplaces | See the shared files above. | $CLAUDE_CONFIG_DIR/plugins/installed_plugins.json, with each plugin's skills, commands, subagents, MCP servers, hooks and manifest, and $CLAUDE_CONFIG_DIR/plugins/known_marketplaces.json. |
- Read but not judged: in the front matter of a command or a subagent, inline
hooksandmcpServers,permissionMode,tools,disallowedTools,modelandskills. A subagent's inline server is not a server item, and the registry check does not consider it. SW-SKL-036 does readallowed-toolsthere. - Not read:
.claude/workflows/*.js, and a plugin's.lsp.jsonandmonitors/monitors.json, for which the scanner has no parser or rule. On a workstation, also the settings keys that run commands besides hooks, such asstatusLineandapiKeyHelper, plugins thatCLAUDE_CODE_PLUGIN_CACHE_DIRmoves out of the plugins folder, the parts a plugin declares outside its standard layout, a plugin'soutput-styles/andworkflows/folders, and MCP bundles. - Claude Desktop has one file,
claude_desktop_config.json, read on a workstation for its MCP servers. Its extensions are not read: no Anthropic page names where they are installed.
Codex
| What | In a repository | In the home directory |
|---|---|---|
| MCP servers | .codex/config.toml: each [mcp_servers.<id>] table is a server item. | $CODEX_HOME/config.toml. |
| Hooks | The [hooks] table of .codex/config.toml, and .codex/hooks.json. | The [hooks] table and notify of $CODEX_HOME/config.toml, and $CODEX_HOME/hooks.json. |
| Plugins and marketplaces | The [plugins] and [marketplaces] entries of .codex/config.toml, listed only. | The same entries of $CODEX_HOME/config.toml, and the installed plugins under $CODEX_HOME/plugins/cache/*/*/*: each plugin's manifest, MCP servers, hooks and skills. |
| Instruction files | See the shared files above. | $CODEX_HOME/AGENTS.md and $CODEX_HOME/AGENTS.override.md. |
| Subagents | A .md file directly in .codex/agents/. | Read as Cursor's; see Cursor below. |
| Custom prompts | None. | $CODEX_HOME/prompts/*.md. |
| Skills | See the shared files above. | ~/.agents/skills. |
- Read but not judged: in
.codex/config.tomlonly the servers and the hooks are judged. The plugin and marketplace entries are listed, not judged and not part of the registry check. A hook entry of typeagentormcp_toolhas no command and is not judged.notifyis not a hook in a project file, because Codex ignores it there. - Not read: in
config.toml,developer_instructions,model_instructions_file, the approval and sandbox keys,[agents]and profiles, all outside the servers and the hooks. Also not read, because the scanner has no parser or rule for them:.codex/agents/*.tomland.codex/rules/*.rulesand, on a workstation, the profile files named<name>.config.toml.$CODEX_HOME/skills/is not read as Codex's own folder, because no OpenAI page names it any more.
Gemini CLI
| What | In a repository | In the home directory |
|---|---|---|
| MCP servers and hooks | .gemini/settings.json: mcpServers and hooks. Each server is an item of its own. | ~/.gemini/settings.json. |
| Instruction file | GEMINI.md, in any folder. | ~/.gemini/GEMINI.md. |
| Subagents | A .md file directly in .gemini/agents/. | ~/.gemini/agents/*.md. |
| Skills | See the shared files above. | ~/.gemini/skills and ~/.agents/skills. |
| Extensions | None. | ~/.gemini/extensions: each extension's gemini-extension.json with its MCP servers, hooks, the context files it names, its skills and its subagents. |
- Read but not judged: in
.gemini/settings.json, the keystools.discoveryCommand,tools.callCommand,mcp.serverCommand,tools.allowedandcontext.fileName; and in a subagent file, theauthvalues, which can run a command. - Not read:
.gemini/commands/**/*.tomland Gemini CLI's policy files, in the repository, in the home directory and in extensions, for which the scanner has no parser or rule; and the variableGEMINI_CLI_HOME.
Cursor
| What | In a repository | In the home directory |
|---|---|---|
| MCP servers | .cursor/mcp.json. | ~/.cursor/mcp.json. |
| Hooks | .cursor/hooks.json. | ~/.cursor/hooks.json. |
| Rules | A .mdc file under .cursor/rules/, subfolders included, and .cursorrules at the top of the scanned folder. | None. |
| Subagents | A .md file directly in .cursor/agents/. | ~/.cursor/agents/*.md, ~/.claude/agents/*.md and ~/.codex/agents/*.md. |
| Skills | See the shared files above. | ~/.cursor/skills, ~/.agents/skills, ~/.claude/skills and ~/.codex/skills. |
| Plugins | None. | ~/.cursor/plugins/local/*: each local plugin's manifest, MCP servers, hooks, skills, rules, subagents and commands. |
- Read but not judged: a hook entry of type
prompt, which has no command. - Not read: a
.mdfile in.cursor/rules/, which Cursor ignores;.cursor/commands/, which has no documented format; and.cursor/permissions.json,.cursor/sandbox.json,.cursor/cli.json,.cursor/worktrees.jsonand.cursor/environment.json, for which the scanner has no parser or rule. On a workstation,~/.cursor/rules/is not read: Cursor's rules page says user rules are kept in its settings, not in files.
Windsurf and Devin
Windsurf's documentation moved to Devin, and a workstation report names the client Windsurf (Devin Desktop). Both sets of folders are read.
| What | In a repository | In the home directory |
|---|---|---|
| MCP servers | .devin/mcp_config.json and .devin/mcp_config.local.json. | $XDG_CONFIG_HOME/devin/mcp_config.json and ~/.codeium/windsurf/mcp_config.json. |
| Hooks | .windsurf/hooks.json and .devin/hooks.v1.json, and the hooks of .devin/config.json and .devin/config.local.json. | The hooks of $XDG_CONFIG_HOME/devin/config.json. |
| Rules | A .md file under .windsurf/rules/ or .devin/rules/, subfolders included; global_rules.md directly in a .windsurf or .devin folder; and .windsurfrules at the top of the scanned folder. | ~/.devin/global_rules.md and ~/.devin/rules/*.md, and $XDG_CONFIG_HOME/devin/AGENTS.md and $XDG_CONFIG_HOME/devin/AGENT.md. |
| Subagents | A .md file directly in .devin/agents/, and <name>/AGENT.md in that folder. | $XDG_CONFIG_HOME/devin/agents/*.md and $XDG_CONFIG_HOME/devin/agents/*/AGENT.md. |
| Skills | See the shared files above. | $XDG_CONFIG_HOME/devin/skills, ~/.codeium/windsurf/skills, ~/.agents/skills, ~/.codex/skills and ~/.copilot/skills. |
- The Devin folder is
$XDG_CONFIG_HOME/devin/on Linux and macOS and%APPDATA%/devin/on Windows, where the same files are read. On Linux and macOS~/.config/devin/is read as well when the variable points elsewhere. The~/.codeium/paths are also read for the folderswindsurf-nextandwindsurf-insiders. - Read but not judged: a hook entry of type
prompt, and the permissions of.devin/config.jsonand.devin/config.local.json, where only the hooks are read. - Not read: the workflows in
.windsurf/workflows/,.devin/workflows/and~/.codeium/windsurf/global_workflows/, which run only when the user asks; and~/.codeium/windsurf/memories/global_rules.md, which only an archived page from before the rename to Devin Desktop names.
GitHub Copilot and VS Code
A workstation report names this client VS Code. It covers the files of GitHub Copilot and VS Code's own MCP configuration.
| What | In a repository | In the home directory |
|---|---|---|
| MCP servers | .vscode/mcp.json and .github/mcp.json. | $COPILOT_HOME/mcp-config.json, and the mcp.json of VS Code's user folder and of each profile, for VS Code and VS Code Insiders. |
| Hooks | Every .json file directly in .github/hooks/. In each hook, bash, powershell and command are judged. | $COPILOT_HOME/hooks/*.json. |
| Settings | .github/copilot/settings.json and .github/copilot/settings.local.json: the hooks, the enabled plugins and the extra marketplaces. | $COPILOT_HOME/settings.json. |
| Instruction files | .github/copilot-instructions.md at the top of the scanned folder, and a file whose name ends in .instructions.md under .github/instructions/. | $COPILOT_HOME/copilot-instructions.md, $COPILOT_HOME/instructions/**/*.instructions.md, ~/.claude/rules/**/*.md and ~/.claude/CLAUDE.md. |
| Custom agents | A .md file under .github/agents/, subfolders included. | $COPILOT_HOME/agents/**/*.md and ~/.claude/agents/**/*.md. |
| Skills | See the shared files above. | $COPILOT_HOME/skills, ~/.claude/skills and ~/.agents/skills. |
| Plugins | None. | $COPILOT_HOME/installed-plugins/*/*: each installed plugin's manifest, MCP servers, hooks, skills and custom agents. |
- Read but not judged: a hook entry of type
promptorhttp, which has no command;permissionsin the Copilot settings files, where only the hooks, the enabled plugins and the extra marketplaces are read; and in a custom agent's front matter,mcp-servers,hooksandhandoffs. - Not read:
.github/prompts/*.prompt.md, the prompt files of VS Code's Local harness; the approval keys of.vscode/settings.json;copilot-setup-steps.yml; and Copilot'slsp-config.json. On a workstation, also the folders thatskillDirectoriesnames, themcp.jsonfiles of VS Code's remote and WSL servers and the instruction files, prompt files and custom agents of VS Code's user profile, because VS Code's documentation names no path for them.
Read but not judged
Since 1.20.0 a scan reads more of these files than its rules judge in full. The scanner gives no notice for such a part, because nothing was left unread. Three things hold for every agent:
- A hook entry without a command is not judged. It is still part of the file's hash, so the lock file shows a change to it.
- A rule file, a command, a subagent, an output style and a Copilot instruction file are judged over their text by the skill rules. Their front matter is not judged for what it configures, except
allowed-toolsin a command or a subagent. - In the settings documents of Codex, Gemini CLI, Copilot and Devin, only the parts named above are judged. A passed scan says nothing about the rest.
What is not read, and why
A file is left out for a reason, and each list above names its files. These are the reasons:
- No vendor page names its path or its format. A row stays in the scanner's table only while the client's own documentation names the path, and a place a client stops documenting moves to the list of what is not read.
- The scanner has no parser or rule for it: policy files, permission files, command files in TOML and workflow scripts.
- The agent does not load it, or loads it only when the user asks: Markdown files in Cursor's rules folder, and the workflows of Windsurf and Devin.
- It lies outside the home directory and belongs to an administrator: the system-wide managed files under
/etc/claude-code/,/etc/gemini-cli/andC:\ProgramData\. - It is hosted elsewhere: a plugin in another repository or at a URL is listed and locked by its declared source, and never fetched.
No rule judges a file in these lists, so a passed scan says nothing about it. That differs from content the scanner should read and cannot: a file of agent content that is too large, or more than 300 instruction files in one scan root, ends the scan as incomplete with exit code 2, never as a pass. What Spellwarden checks and what it does not has the other limits.
Linked folders and --follow-links
A symbolic link at the path of an agent file is followed when it leads to a file inside the scanned folder. A link to a directory is not read as a folder, with one exception. In an instruction folder, such as .claude/rules/shared linked to ../../shared-rules, the default is the notice symlink_skipped: the files reached only through the link are not judged, and the scan can pass with them unread. Since 1.20.0, spellwarden scan --follow-links follows such a link.
- It is off by default, and nothing changes while it is off.
- It follows a linked directory below
.claude/rules/,.cursor/rules/,.windsurf/rules/,.devin/rules/,.claude/commands/,.claude/agents/,.github/instructions/or.github/agents/, a named folder in.devin/agents/or.agents/agents/, or one of these folders itself, when its target is a directory inside the scanned folder. It goes one level deep and judges each file under the link's path. - At most 50 links are followed per scan root. More is the error
instructions_limit, and the scan is incomplete with exit code 2. - It never follows a link out of the scanned folder, a linked folder above an instruction folder, a linked directory anywhere else, or a link to a directory inside a skill or a local plugin directory.
- The lock file does not record it, so the lock, the locked scan and the baseline commands need the same option as the scan.
- A workstation scan refuses it: it already follows a link to a directory inside the home directory, and reports a link that leads out of it.
Linked rule folders has the full behaviour, and Linked rule folders in CI the input of the GitHub Action and the GitLab component.
After an upgrade to 1.20.0
Much of the above is new in scanner 1.20.0. A repository or a home directory without these files gets the same reports as before, apart from the scanner version and the rules version. One that holds them can gain findings, so a check that passed can fail; a repository with a lock file sees the new items as added until spellwarden lock runs once; and more instruction files count toward the limit. Upgrading to scanner 1.20.0 has the list.