--- name: agent-config-review description: Reviews a repository's agent instruction files, skill folders and MCP server entries against what Claude Code, Codex, Gemini CLI, Grok Build, Devin, Cline, Zed and VS Code really read. Use it when instructions, skills or MCP servers seem to be ignored by an agent, or when setting one repository up for several agents. --- # Agent configuration review ## When to use - One repository is used with several coding agents and someone needs to know which files each one reads. - An agent ignores its instructions, a skill or an MCP server, and the cause may be a file name, folder, key or field. - Not for how well an agent follows instructions, for authentication flows, or for SDK support of MCP revisions. ## Steps 1. List the agents the team uses and their versions. List every instruction file, rules folder, skill folder and MCP config file in the repository and in the home folder. 2. Check instruction files against these rules (from the brief "Agent instruction files", read on the date shown): - Claude Code, default setting `claude-md-or-agents-md`: reads `AGENTS.md` only when no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md` exists in the working folder or above. `~/.claude/CLAUDE.md`, the managed `CLAUDE.md` and `.claude/rules/` do not block it. Setting `claude-md-and-agents-md` reads both, `CLAUDE.md` first. Reading `AGENTS.md` needs Claude Code v2.1.277 or later. - Claude Code never reads `AGENTS.local.md`, `AGENTS.override.md` or anything under `.agents/`. A `CLAUDE.md` over 4 MiB is skipped entirely. `@path` imports resolve relative to the importing file and nest at most 4 hops. `.claude/rules/` is searched recursively; a rule with `paths` front matter loads only for matching files. - Grok Build Agents Window: rules in `.cursor/rules` must end in `.mdc`; a plain `.md` there is ignored. Team, then Project, then User rules; the earlier wins. - Grok Build Terminal UI: never reads `.mdc`. Reads every `*.md` in `.grok/rules/` and plain `*.md` directly in `.claude/rules/` and `.cursor/rules/`, strips `globs`/`alwaysApply` so those load every session, skips gitignored files. Reads `AGENTS.md`, `Agents.md`, `AGENT.md`, `CLAUDE.md`, `Claude.md`, `CLAUDE.local.md` from `~/.grok/`, then root down to the working folder; deeper wins. - Devin Local: `AGENTS.md`, `AGENTS.local.md`, `AGENT.md` are always on; `.devin/rules/*.md` take `trigger`: `always_on`, `glob`, `model_decision`, `manual`. It imports `.windsurf/rules/*.md`, `.windsurf/global_rules.md` and `.windsurfrules`; when both `global_rules.md` files exist, only `.devin/global_rules.md` loads. - Zed reads only the first project file in this order: `.rules`, `.cursorrules`, `.windsurfrules`, `.clinerules`, `.github/copilot-instructions.md`, `AGENT.md`, `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`. Cline reads `.clinerules/` or `.cline/rules/` and `~/.agents/AGENTS.md`. - GitHub Copilot: `excludeAgent: "code-review"` or `"cloud-agent"` in an `.instructions.md` file hides it from that agent. 3. Check skill folders (brief "Agent Skills format"): each skill is a folder with `SKILL.md` (front matter `name`, `description`). Codex, Gemini CLI and Grok Build read `.agents/skills/`; Claude Code reads only `.claude/skills/`. Gemini CLI: `.agents/skills/` beats `.gemini/skills/` in the same tier, and a workspace skill beats a user skill of the same name. Grok Build: only `~/.agents/skills/` is read by both the Agents Window and the Terminal UI. Claude Code cuts `description` plus `when_to_use` at 1,536 characters; its listing budget is 1% of the context window. Codex's list budget is 2% of the context window (8,000 characters when unknown), raised with `skills.max_context_tokens` up to 10,000 tokens. Validate with `skills-ref validate ./my-skill`. 4. Check MCP entries (brief "MCP client configuration files"): most clients use top-level `mcpServers`; VS Code `.vscode/mcp.json` uses `servers`; Zed uses `context_servers`; Codex uses TOML `[mcp_servers.]`. - Claude Code: no `type` means stdio; `url` with no `type` is a configuration error and the server is skipped; `type: "streamable-http"` is read as `http`. `claude mcp add` defaults to local scope. - VS Code: editor files take `${env:NAME}`; portable files (`~/.copilot/mcp-config.json`, workspace `.mcp.json`) take `${NAME}` or `${NAME:-default}`; a bare `$NAME` stays literal. The local harness that reads editor files is removed in February 2027. - Grok Build hosted cloud agents do not read `~/.cursor/mcp.json`. Devin Desktop: `.devin/mcp_config.json` (shared), `.devin/mcp_config.local.json` (gitignored). Gemini CLI: `-s project` writes `.gemini/settings.json` and is the default. Codex timeouts: start 10 s, tool 60 s. 5. Check the MCP protocol revision (brief "MCP specification revisions"): the current revision is 2026-07-28. It removes the `initialize` handshake, sessions and `Mcp-Session-Id`; each request carries its version in `_meta` key `io.modelcontextprotocol/protocolVersion`; servers must implement `server/discover`; every result needs `resultType`; Streamable HTTP POSTs need `Mcp-Method` and `Mcp-Name` headers; resource-not-found becomes `-32602`. Roots, Sampling and Logging are Deprecated and stay at least 12 months (90 days under expedited removal). 6. For each agent, write one line: the files it reads, the files it ignores, and the change that makes it read the missing one. 7. If a question is about an agent, file or setting not covered in steps 2 to 5, say so and point to the agent's own documentation. Do not answer it from memory. ## Mistakes this prevents - Assuming Claude Code reads `AGENTS.md` next to an existing `CLAUDE.md`. - Putting skills only in `.agents/skills/` and expecting Claude Code to load them. - A remote MCP entry with `url` and no `type` in Claude Code, or `mcpServers` in `.vscode/mcp.json`. - `.mdc` rules expected to work in Grok's terminal, or `globs` expected to scope rules there. - Building a 2026-07-28 server around `initialize` and sessions. ## Tell the user - These rules were read from each vendor's documentation on the date shown on this page; agents change file rules often. - The review says which files are read, not how well an agent follows them. Cite as: mysi, Agent configuration review, mysi.dev/agent-config-review, version 1, changed 2026-12-04. MIT.