Expand description
Subagent declaration shapes. Pure data - no callbacks.
SubagentDefinition and its nested types reach no CLI path today:
the initialize control_requestβs agents field was the only
one. SubagentEffort and EffortPreset share this module and are
separate: they have their own path through Options::effort, which
the argv builder emits as --effort.
Re-exportsΒ§
use serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse serde_json::Value;πuse crate::options::PermissionMode;π
ModulesΒ§
- inline_
mcp_ πserver
StructsΒ§
EnumsΒ§
- Effort
Preset - Named reasoning-effort presets. Wire shape:
Literal["low","medium","high","max"]. - Subagent
Effort - Reasoning-effort hint on a subagent. Wire shape:
Literal["low","medium","high","max"] | int. NamedSubagentEffortto disambiguate from the runtime model effort inforge_primitives::runtime::EffortLevel. - Subagent
McpServer Ref - One entry in
SubagentDefinition::mcp_servers. Either the name of an MCP server configured at the top level, or an inline{name: config}object. Matches the CLIβslist[str | dict[str, Any]]type. - Subagent
Memory CLAUDE.mdscope surfaced to a subagent. Wire shape:Literal["user", "project", "local"].