Skip to contentllms.txt

invocation_patterns

How agents are triggered. Mechanisms include natural language detection, @-mention syntax, slash commands, CLI flags, or automatic delegation.

Type: object Content type: agents

ProviderSupportedMechanism
claude-code✓natural language (Claude auto-delegates), @agent-<name> @-mention from typeahead, or --agent flag at startup for session-wide agent; plugin subagents appear as <plugin>:<name> in typeahead
codex✓spawn-agent tool at LLM discretion; LLM selects role from dynamically-built role descriptions combining built-in and user-defined roles
copilot-cli✓/agent slash command, natural language instruction, auto-inference (suppressible with disable-model-invocation), or --agent flag; 4 patterns
cursor✓Custom agents are invoked through the Cursor IDE agent picker; background-enabled agents can also run concurrently via the background agents UI. Subagents can be spawned by other agents for parallel execution workstreams.
factory-droid✓exposed as subagent_type targets for the Task tool; primary assistant delegates mid-session; droids enabled by default with live progress streaming in UI
gemini-cli✓Two patterns: (1) automatic delegation by the main agent based on task relevance and the subagent's description, (2) explicit @-mention at the start of a prompt (e.g., '@codebase_investigator review this'); /agents list/enable/disable/configure manages the registry.
kiro✓keyboard shortcut binding for IDE invocation; welcomeMessage shown on agent start; manual selection via agent picker
opencode✓Primary agents are cycled via the Tab key or the switch_agent keybind. Subagents are invoked automatically by primary agents for specialized tasks based on their description, or manually by @-mentioning the subagent name in a message. Agent name derives from the filename (configEntryNameFromPath).
roo-code✓Users switch modes via the mode selector or /mode command; each mode is a distinct operating persona with its own roleDefinition and tool groups
amp✗not documented
cline✗not documented
crush✗not documented
pi✗not documented
windsurf✗not documented
zed✗not documented