Subagents
fast-agent supports two simple approaches to subagents.
1. Model controlled
Model-controlled subagents are temporary, one-shot agents. The parent model decides when to create them and what task to delegate.
Enable them from the command line:
Or use -xx to enable both subagents and shell access:
You can also opt in from a system prompt. The default agent includes the
project's AGENTS.md, so the directive can be placed there:
--no-subagents or subagents: false always overrides the directive.
For a persistent configuration, use Agent Card flags:
subagentsgives a normal parent agent the built-insubagenttool.subagent_modeloptionally fixes the model used by every temporary child.harness_toolsis the model-facing self-management surface for fast-agent. It provides allow-listed access to harness information and resources, and lets the model use/mcpand/skillsto connect servers or manage installed skills. Ad-hoc local MCP commands also require shell access, as provided by-xx. Enable these options only when those model-controlled changes are appropriate.
2. User defined
Use Agent Cards when you want named, reusable agents rather than temporary model-created children.
An Agent Card can define:
- the agent's instructions and description;
- its model or model reference;
- tools, skills, and MCP servers; and
- the description shown to a parent model when the card is loaded as a tool.
This is the better option for stable roles such as a reviewer, researcher, or project-specific specialist.