Availability
About subagents
Subagents are custom agents that you can configure for specialized tasks, like code review or project bootstrapping. Each subagent has its own tools and capabilities that you can delegate specific tasks to. You can have local subagents or share them with your team by adding their configuration to your repository.- Subagents have their own context window independent from the main agent
- Subagents have a custom prompt that is used to instruct the agent
- Subagents run in parallel with other subagents
- Subagents will show a summary of their current progress in the main thread
Create a subagent
You can create a new subagent through the wizard by running/agents command in interactive mode. Or you can create the configuration file manually.
Create a subagent with the wizard
- Run the
/agentscommand in interactive mode - Select “Create new agent”
- Select where you want the agent configuration to be stored
- Complete the following fields to configure the agent:
- Name
- Description
- Color
- Model
- Prompt
- Review the configuration and press enter to save the agent
Create a subagent manually
You can create a subagent manually by creating a configuration file. The configuration file should be a markdown file stored in either~/.augment/agents/ (user only) or ./.augment/agents/ (shared). See the Subagent configuration reference for more details.
Example subagent configuration:
Running your subagent
Once you’ve configured the subagent, you can trigger it by sending a message that references the agent name. Augment will also automatically detect when a task is appropriate for a subagent and offer to use it.Subagent configuration reference
File locations
Subagents are configured in markdown files with YAML frontmatter. Subagents can be configured at the user level or the workspace level. User-level subagents are available in all workspaces, while workspace-level subagents are only available in the current workspace.| Scope | Location | Availability |
|---|---|---|
| User | ~/.augment/agents/ | Available in all workspaces |
| Workspace | ./.augment/agents/ | Available in current workspace only |
Frontmatter configuration
| Field | Required | Purpose |
|---|---|---|
name | Yes | Name of the agent |
description | No | Description of the agent |
color | No | Color of the agent in the CLI, should be a valid ANSI color name. |
model | No | Model to use for the agent. If not specified, the CLI default model is used. |
Agent prompt
The agent prompt is the main body of the markdown file. The prompt is used to instruct the agent on its role and capabilities. The prompt can include any information that you want to be available to the agent, including specific tools or instructions. The prompt is rendered as markdown and supports code blocks, lists, and other formatting.Best practices for subagents
- Subagents are most effective when they have a specific and focused task. It is better to create multiple subagents for different tasks rather than trying to create a single agent for multi-step, long-running, or complex tasks.
- Subagents should have a detailed prompt. The prompt should clearly define the agent’s role, capabilities, and expected behavior. Include specific instructions, task lists, examples, and expected output. Take advantage of markdown formatting to make the prompt as clear as possible.
- Share your subagents with your team. Subagents are a great way to share custom workflows with your team. Store your subagents in your projects
./.augment/agents/directory to make them available to everyone.