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.Documentation Index
Fetch the complete documentation index at: https://docs.bricks.tools/llms.txt
Use this file to discover all available pages before exploring further.
Built-in sub-agents
CTOR includes one built-in sub-agent:| Name | Description | Tools |
|---|---|---|
explore | Read-only codebase search and exploration | read_file, glob, grep |
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.
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
Agent file format
Sub-agents are markdown files with YAML frontmatter:| 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 |
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
modelfield — 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-20251001for Anthropic,gpt-5.4-minifor OpenAI Codex and GitHub Copilot,gemini-3-flash-previewfor Google,minimax-m2.5for OpenCode Zen,minimax-m2.7for OpenCode Go - Session model — the model selected for the current session
Thinking level resolution
When a sub-agent runs, its thinking level is resolved in this order:- Agent file
thinking_levelfield — 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