Type
/agent to create, update, and manage your agentsConfiguration
Agents are configured in yourfirebender.json file using the agents array:
Path Formats
Paths support multiple formats:- Relative paths:
.firebender/agents/my-agent.md(relative to project root for project config,~/.firebenderfor personal config) - Home directory:
~/my-agents/agent.md - Absolute paths:
/path/to/agent.md
Scope
| Configuration Location | Agent Availability |
|---|---|
Project firebender.json | Available in current project only |
Personal ~/.firebender/firebender.json | Available across all projects |
Agent File Format
Each agent is defined in a Markdown file with YAML frontmatter:Configuration Fields
Display name of the agent. This appears in the mode picker and when the agent is invoked.
Description of the agent’s purpose and when it should be used. Shows in the mode picker.
Color for the agent mode in hex, rgb, or named color format (e.g.,
"#FF5722", "rgb(255, 87, 34)", "red").Absolute path to icon image file (svg or png format) to display for this agent.
Comma-separated list of tools the agent can use. If omitted, the agent inherits all available tools.
Model to use for this agent (e.g.,
claude-sonnet-4-20250514, gpt-5). See available models for valid model IDs.Available Tools
Configure your agent with any combination of these tools:Core Tools
| Tool | Description |
|---|---|
read_file | Read files from the codebase |
list_dir | List directory contents |
grep_search | Search file contents with regex patterns |
file_search | Fuzzy search for files by path |
delete_file | Delete files |
run_terminal_cmd | Execute terminal commands |
web_search | Search the web for information |
edit_file | Edit files in the codebase |
MCP Tools
You can also include tools from MCP servers configured in yourfirebender.json. The format is:
Examples
Read-Only Code Reviewer
Test Writer Agent
Database Query Agent (with MCP)
Usage
Creating Agents
Use the/agents slash command to list existing agents and create new ones:

Using Agents
Agents can be used in two ways:- Mode Selection: Agents appear in the mode picker alongside built-in Auto, Read, and Write modes. Select an agent to activate it, and all your interactions will use that agent’s configuration.
- Automatic Delegation: The main agent can automatically delegate tasks to specialized agents based on their descriptions and expertise.
Sub-agents
All agents in Firebender can function as sub-agents through automatic task delegation. When the main agent encounters a task that matches a specialized agent’s expertise, it can delegate that task to the agent, which works independently and returns results.How Sub-agents Work
When used as sub-agents through delegation:- Separate Context: Each delegated task runs in its own context window, separate from the main conversation
- Task-Focused: Sub-agents are invoked for specific tasks based on their
descriptionfield - Independent Execution: Sub-agents work autonomously using their configured tools and system prompt
- Result Integration: Results are returned to the main agent and integrated into the conversation
Delegation vs. Mode Selection
The same agent configuration can be used in both ways:| Use Case | Behavior | Context |
|---|---|---|
| Mode Selection | Manually select agent as persistent mode | Uses main conversation context |
| Delegation | Automatically invoked for matching tasks | Uses separate context window |
Configuration for Delegation
Thedescription field is particularly important for delegation, as it helps the main agent determine when to invoke the sub-agent:
Related Documentation
- MCP Configuration - Extend agents with Model Context Protocol tools
- Custom Agents - Build specialized AI agents for your workflow
- Commands - Custom AI commands for your workflow