Loading image...Kiro
  • CLI
  • Powers
  • Autonomous agent
  • Enterprise
  • Pricing
  • Docs
SIGN INDOWNLOADS
Loading image...Kiro
Loading image...Kiro
Product
  • About Kiro
  • CLI
  • Powers
  • Autonomous agent
  • Pricing
  • Downloads
For
  • Enterprise
  • Startups
Resources
  • Documentation
  • Blog
  • Changelog
  • FAQs
  • Report a bug
  • Suggest an idea
  • Billing support
Social
Site TermsLicenseResponsible AI PolicyLegalPrivacy PolicyCookie Preferences
  1. Docs
  2. IDE
  3. Chat
  4. Subagents

Subagents

On this page
  • Custom subagents
  • Invocation
  • Attributes

Subagents allow Kiro to run multiple tasks in parallel, or delegate specific tasks to subagents that specialize in those tasks. Kiro will automatically launch subagents as appropriate. You can also launch subagents manually by instructing Kiro to do so via a prompt such as "Run subagents to...".

Kiro has two built-in subagents: a "context gathering" subagent used to explore a project and gather relevant context, and a "general purpose" subagent used for parallelizing all other tasks.

Subagents run in parallel; however, the main Kiro agent will wait until all subagents have completed before proceeding. Each subagent has its own context window, ensuring that the main agent context is not polluted by the subagent's execution. Subagents automatically return their results back to the main agent once they finish.

Steering files and MCP servers work in subagents exactly as they do in the main agent. However, subagents do not have access to Specs, and Hooks will not trigger in subagents.

You can significantly speed up development by leveraging subagents to perform multiple tasks simultaneously. In the following example, subagents are used to fetch and analyze several tickets in parallel. Not only is this faster than analyzing the tickets sequentially, the tool call and ticket details stay within each subagent and do not pollute the main agent's context.

Custom subagents

You can define your own custom agent by creating a markdown (.md) file in ~/.kiro/agents (global) or <workspace>/.kiro/agents (workspace scope). Enter the prompt for the custom agent in the body of the markdown file, and define additional attributes as YAML front matter.

For example, to create a simple "code reviewer" custom agent, create ~/kiro/agents/code-reviewer.md with the following content:

markdown
--- name: code-reviewer description: Expert code review assistant. tools: ["read", "@context7"] model: claude-sonnet-4 --- You are a senior code reviewer. ## Your Responsibilities - Review code for correctness, performance, and security ...

Invocation

When launching subagents, Kiro will automatically select the appropriate custom agent configuration for each subagent, based on the description field. You can also explicitly ask Kiro to use a specific subagent, for example: "Use the code-reviewer subagent to find performance issues in my code".

Attributes

Below is a list of attributes you can use in the frontmatter. The name attribute is mandatory; all others are optional.

AttributeDescriptionExample valueDefault value, if omitted
nameName of the agentcode-reviewerName of the .md file
descriptionDescription of the agentExpert code review assistantNo description
toolsList (array) of tools the agent can access["@builtin", "@context7"]No tools
modelThe model to useclaude-sonnet-4LLM currently selected in chat
includeMcpJsonIf true, then all MCP tools are includedtruefalse
includePowersIf true, then all MCP tools in Powers are includedtruefalse

In the tools field, you can use the following:

  • read: all built-in file read tools
  • write: all built-in file write tools
  • shell: all built-in shell command-related tools
  • web: all built-in web tools
  • spec: all built-in spec-related tools (only valid in Spec mode)
  • @builtin: all built-in tools
  • @<mcp_server>: all tools from a specific MCP server, e.g., @figma
  • @<mcp_server>/<tool>: a specific tool from a specific MCP server, e.g., @figma/get_figjam

Wildcarding is supported, e.g., tools: ["*"] to include all built-in and MCP tools, or tools: ["@figma/*"] to include all tools from the figma MCP server.

Page updated: February 4, 2026
Summarization
Web tools