Subagents
The main agent can give a subagent a focused task, such as tracing a code path or reviewing documentation. The subagent works from its own brief and reports back to the main agent, which uses the result in its reply. On a local provider, independent tasks can run in parallel. On Abacus.AI models, subagents run one at a time.
Delegate a task​
Ask in the main conversation. You can name a subagent or describe the work and let the agent pick one. Give it the relevant paths and say what you want back. To split work across several subagents, give each task a clear scope.
Use Explore to trace where the API validates a request, then use a second Explore agent to check which tests cover invalid inputs. Report the relevant files and leave them unchanged.
Use a skill when you want the current agent to follow a reusable procedure. A slash command such as /changelog loads that skill into the current conversation. Use a subagent when you want to delegate a task and receive a separate report.
Built-in subagents​
| Subagent | What to ask it to do |
|---|---|
| Explore | Locate files or symbols, trace how code works, and report findings without editing. |
| General Purpose | Research a question or carry out a self-contained change. It can edit when the session allows it. |
| Plan | Design an implementation, identify affected files, and explain trade-offs before edits begin. |
| Product Guide | Answer questions about setting up and using the product, including settings and usage. |
The built-ins available depend on the model. Abacus.AI models offer all four. Conversations running through a local provider can use Explore and General Purpose. Claude Code models run their own agent and get no subagents, built-in or custom. When Orchestrator mode is active, the main agent can delegate implementation and review the resulting work.
Abacus.AI models and local providers can both use custom definitions, including in Local only mode.
Follow a run​
| Where | How to open the subagent's transcript |
|---|---|
| CLI | When runs are listed below the composer, press Down from the last line of the composer. Highlight a run and press Enter. Select main in the same list to return. |
| VS Code | Select a subagent's card in the conversation. Select Main in the transcript header to return. |
The transcript shows that subagent's work. The main conversation contains the agent's reply. To inspect child events programmatically, see Subagents in stream JSON.
Create a custom subagent​
Save the following as .abacusai/agents/docs-reviewer.md in the project folder.
---
name: docs-reviewer
description: Review README setup instructions and usage examples.
tools: [file_read, grep, glob]
---
Compare the README with the code and checked-in configuration. Report each
mismatch with the README section and the source file that shows the expected
behavior. Leave all files unchanged.
Ask the main agent to have docs-reviewer check the README setup steps. The three tools in this example let the subagent inspect the files and search the codebase.
Where definitions live​
| Scope | Folders, in lookup order |
|---|---|
| Project | .abacusai/agents/, then .agents/agents/ |
| Personal | ~/.abacusai/agents/, then ~/.agents/agents/ |
Project definitions take precedence over personal definitions with the same name. A session offers up to eight custom subagents, with project definitions first. Use regular Markdown files. In an untrusted workspace, the file must resolve inside the workspace. See workspace trust.
Definition fields​
| Field | Meaning |
|---|---|
name | Required. Up to 64 lowercase letters, digits, and hyphens. Start with a letter or digit. Built-in agent names are reserved. |
description | Required. Say when to delegate to this subagent. The roster uses the first 300 characters. |
tools | Optional. An allowlist drawn from file_read, grep, glob, bash, file_write, and file_str_replace. Omit it to start with all six. |
disallowedTools | Optional. Removes tools from the allowlist. |
| Markdown body | Required. Instructions for the subagent, up to 8 KB. |
Your session's permission rules still apply to the subagent's tool calls. A subagent can only use tools that the session makes available.
Import existing definitions​
The setup import copies compatible standalone definitions from an existing configuration. It maps supported tool names and reports definitions it skips, including those with unknown tool names or tool rules with arguments, such as Bash(git diff:*) or Read(src/**).