Omniscio

OmniscioGuidessubagent_type is required

subagent_type is required: the general-purpose agent is not available in this session

The session is not broken. The general-purpose subagent, or every built-in agent, has been switched off, either by an environment variable or by an allowlist, and Claude asked for it by default.

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

What is the exact message?

subagent_type is required: the general-purpose agent is not available in this session. Available agents: ...

The list after Available agents: is the point of the message. It names the subagents this session can spawn, which is what Claude needs to retry.

What does it mean?

Claude called the Agent tool without a subagent_type, and this session has no general-purpose subagent to fall back on. The general-purpose agent is the one the call would normally land on when no type is named.

No task was lost; the call simply had nowhere to go in this session.

The two setups that cause it

Anthropic names two, and they look different in practice:

  • CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1 is set in non-interactive mode. That removes every built-in subagent, so there is no general-purpose agent in the session at all.
  • The session's main-thread agent has a tools: Agent(...) allowlist that leaves out general-purpose. The agent exists in Claude Code but this session's own configuration does not offer it.

Both are per-session decisions: the variable is read when a session starts, and the allowlist belongs to the agent definition that is running the session.

What do I do about it?

Start with the variable, because it is the one you can see: if CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS is not set where you launch Claude Code, the allowlist is your cause instead.

  • Usually nothing is needed. Anthropic's first step is that the message lists the subagents the session does have, so Claude can retry with one of them.
  • If the variable is set and you want the built-in agents back, remove it from wherever you set it: your shell, a .env file, or the environment you pass to the SDK. A running session keeps what it started with, so start a new one.
  • If the allowlist is the cause, add general-purpose to it. The allowlist is the tools frontmatter of the agent definition that is running the session, written as tools: Agent(...).

A subagent is a helper session Claude starts for one job, and the Agent tool is how it starts one. Naming a subagent_type picks which helper; leaving it out lands on general-purpose.

How do I know it is fixed?

  • Claude delegates again and the task runs through a subagent instead of ending on this message.
  • A call that names general-purpose is accepted after you change the allowlist.
  • In a non-interactive session, the built-in agents are usable again in a new session after you unset the variable.

Where these answers come from

Common questions

Does this mean my subagents are broken?

No. The subagents the session does have are listed in the message itself, and Claude can retry with one of them. What is missing is the general-purpose agent, which Claude falls back on when a call names no subagent type.

What turns off the general-purpose agent?

Anthropic names two causes: CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1 set in non-interactive mode, which removes every built-in subagent, and a main-thread agent whose tools: Agent(...) allowlist leaves out general-purpose.

Do I have to change anything?

Usually not. Because the message lists the subagents the session has, Claude can retry with one of them. Change the configuration only when the failure keeps repeating.

Why does the message say the agent is not available in this session?

Because availability is decided per session. A tools: Agent(...) allowlist on the main-thread agent, or the SDK variable that removes the built-ins, changes what that one session can spawn without changing anything on disk for the next session.

I run an older version and see a different wording. Why?

Before v2.1.235 the same call failed with Agent type 'general-purpose' not found. Updating gives you this message, which names the subagents that are available.