Omniscio

OmniscioGuidesZero tools

Claude Code: "Agent 'code-reviewer' would be spawned with zero tools — refusing"

This refusal protects the task: a subagent with no tools cannot act, and before v2.1.208 it launched anyway and could return an empty or confusing result.

Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

Agent 'code-reviewer' would be spawned with zero tools — refusing. Its tools list resolved to nothing: unrecognized [Grpe]. Fix the agent's tools frontmatter or pass a different subagent_type.

The name in quotes is the subagent the message names. The bracket after resolved to nothing is your own entries, grouped by what went wrong, and it is the part that tells you what to change.

What does it mean?

A subagent's tools field lists the tools it may use. When every entry in that list fails to match a usable tool, the subagent would start with nothing, so Claude Code usually refuses to launch it.

The message sorts the entries into three groups, and the group is the diagnosis:

  • Unrecognized: the entry matches no tool name, usually a typo such as Grpe for Grep.
  • Not available to subagents: the entry names a real tool that subagents cannot use. Background subagents keep a smaller built-in tool set, so a tool that only a foreground subagent can use lands here when the subagent would run in the background, which is the default.
  • Matched no tools in this session: the entry is valid but nothing in this session matches it right now, such as mcp__github__* with no GitHub MCP server connected, or Agent for a subagent already at the depth limit.

Leaving the field out never causes this: with no tools field, the subagent inherits every tool available to subagents. An empty list, or a disallowedTools list that removes every entry, also skips the refusal, and that subagent launches with no tools at all.

How do I fix it?

The list lives in the agent's own file, at ~/.claude/agents/<name>.md for a personal agent or .claude/agents/<name>.md in a project, and the name in the message is that file's name.

  1. Start with the spelling of an unrecognized entry. Compare each named entry with the tools available to subagents; the Claude Code tools guide lists the names and the rules around them.
  2. Remove entries for tools this session does not have. An MCP tool from a server that is not connected matches nothing, so remove the entry or connect that server.
  3. Name an MCP server's tools by its full name. For a server whose tools look like mcp__reports__v2__get_totals, the entry is mcp__reports__v2__*: mcp__, the whole server name, then __*. The shorter mcp__reports names a different server and gives the subagent none of those tools.
  4. For a tool background subagents drop, remove the entry — or keep the subagent in the foreground. A tool such as CronCreate is not in a background subagent's set. If the definition sets background: true, remove that field, then let Claude wait for the subagent so it runs in the foreground and keeps the tool; Claude can only wait while fork mode is off, which is on by default.
  5. Or delete the tools field. With no list, the subagent inherits every tool available to subagents, which removes the whole class of mismatch.
  6. If the only entry is Agent, give the subagent another tool or raise the depth limit. Claude Code withholds Agent at the depth limit, so a list holding nothing else resolves to no tools at all.

How do I know it is fixed?

  • The delegation runs: Claude launches the named subagent instead of printing the refusal.
  • The subagent uses the tools you listed, which shows the entries resolved to real ones.
  • A call that names this same agent again succeeds, which shows its list now resolves rather than the message being avoided.

Where these answers come from

Common questions

Why did Claude refuse to launch the subagent?

Every entry in the subagent's tools list failed to match a usable tool, so it would have started with nothing to act with. Claude Code refuses that launch instead of running an agent that cannot do anything.

What do the three groups in the message mean?

Unrecognized entries match no tool name, usually a typo. Not available to subagents entries name real tools a subagent cannot use. Matched no tools in this session entries are valid but nothing in the current session matches them.

Why does an entry work for one subagent and not another?

Background subagents keep a smaller built-in tool set than foreground ones, and background is the default. A tool only a foreground subagent can use lands in the not-available group when the subagent would run in the background.

Does leaving tools out cause this?

No. Omitting the tools field never triggers the refusal; the subagent inherits every tool available to subagents. An empty list, or a disallowedTools list that removes everything, also skips the refusal, and that subagent launches with no tools.

How do I name an MCP server's tools correctly?

Use the server's full name after mcp__, followed by __*. For a server named reports__v2 that is mcp__reports__v2__*. The shorter mcp__reports names a different server and matches none of those tools.