Sub-agents are specialized AI agents that handle scoped tasks within your project. The main agent can delegate work to sub-agents, each with their own tools and instructions.
Built-in sub-agents
BRICKS Project Desktop includes one built-in sub-agent:
| Name | Description | Tools |
|---|
explore | Read-only codebase search and exploration | read_file, glob, grep |
Built-in sub-agents cannot be edited or deleted.
Managing sub-agents
Click the Sub-Agents button in the sidebar toolbar to open the management panel.
Scopes
Sub-agents are organized into two scopes:
- Global — available across all open projects. Stored in
~/.bricks-project-desktop/agents/.
- Project — available only within a specific project. Stored in your project’s
.bricks/agents/ directory.
Project-scoped agents override global agents with the same name. Custom global agents override built-in agents with the same name.
Create a sub-agent
- Open the Sub-Agents panel
- Select the Global scope
- Click New Agent
- Edit the agent’s frontmatter and instructions in the editor
- Click Save
Sub-agents are markdown files with YAML frontmatter:
---
name: my-agent
description: Describe when to use this agent
thinking_level: low
tools:
- read_file
- glob
- grep
---
You are a specialized agent. Describe your purpose and instructions here.
Frontmatter fields:
| Field | Required | Description |
|---|
name | Yes | Unique identifier for the agent |
description | No | When to use this agent (shown in the agent card) |
model | No | AI model override (e.g., anthropic/claude-haiku-4-5-20251001). See model resolution |
thinking_level | No | Thinking level override (off, minimal, low, medium, high, xhigh). See thinking level resolution |
tools | No | List of tools available to the agent |
Available tools: read_file, glob, grep
Edit a sub-agent
Click the edit button on an agent card to open the editor. Modify the frontmatter or instructions, then click Save.
Delete a sub-agent
Click the remove button on an agent card, then click again to confirm. The agent file is permanently deleted.
Changes to agent files on disk are detected automatically. If you edit agent files with an external editor, the panel updates in real time.
Model resolution
When a sub-agent runs, its model is resolved in this order:
- Agent file
model field — if the agent file specifies a model, it is used
- Settings default — the default sub-agent model configured in settings
- Provider-specific default — a cost-efficient model for the current provider:
claude-haiku-4-5-20251001 for Anthropic, gpt-5.4-mini for OpenAI Codex and GitHub Copilot
- Session model — the model selected for the current session
This means sub-agents automatically use a cost-efficient model for the active provider, without requiring per-agent configuration.
Thinking level resolution
When a sub-agent runs, its thinking level is resolved in this order:
- Agent file
thinking_level field — if the agent file specifies a thinking level, it is used
- Settings default — the default sub-agent thinking level configured in settings
- Model-specific fallback — for reasoning models on the OpenAI Responses API, defaults to
low