Overview
Forge supports multiple specialized agents:- Forge (default) - General-purpose coding agent
- Sage - Code analysis and architecture expert
- Muse - Strategic planning and design thinking
- Planner - Task breakdown and project management
- Custom agents - Define your own specialized agents
Multi-Agent Advantage
Complex tasks often require different types of thinking: strategic planning, detailed implementation, code review, and testing. Multi-agent workflows let you tap into the right expertise at each stage.
Agent Basics
Switching Agents
- Interactive Mode
- Shell Plugin
- Direct Command
Available Agents
Forge (Default)
Forge (Default)
Best for: General coding, debugging, implementationCapabilities:
- Code generation and modification
- Bug fixing and debugging
- Test writing
- Documentation creation
- File operations
Sage
Sage
Best for: Code analysis, architecture review, deep understandingCapabilities:
- Architecture analysis
- Code quality assessment
- Design pattern identification
- System understanding
- Best practices guidance
Muse
Muse
Best for: Strategic planning, design thinking, innovationCapabilities:
- Feature design and planning
- System architecture proposals
- Technology recommendations
- Impact assessment
- Strategic decision-making
Planner
Planner
Best for: Task breakdown, project management, milestone planningCapabilities:
- Breaking down large tasks
- Creating implementation plans
- Estimating complexity
- Identifying dependencies
- Milestone definition
Multi-Agent Workflows
Sequential Agent Flow
Use different agents for different stages:Parallel Agent Consultation
Get multiple perspectives on the same problem:Iterative Refinement
Refine solutions through agent collaboration:Creating Custom Agents
Define specialized agents for your team’s needs:Agent Definition File
Create agents in your project or globally:Agent Configuration Options
Agent Properties
| Property | Description | Default |
|---|---|---|
id | Unique agent identifier | Required |
title | Display name | Same as id |
description | Agent purpose | None |
system_prompt | Instructions for agent behavior | Default prompt |
tools | Available tools for agent | All tools |
max_turns | Maximum conversation turns | 50 |
temperature | Model creativity (0.0-2.0) | 0.7 |
max_tokens | Maximum response length | Model default |
provider | AI provider to use | Config default |
model | Specific model to use | Config default |
custom_rules | Additional constraints | None |
Workflow Patterns
Research → Plan → Build
Explore → Understand → Modify
Design → Validate → Refine
Advanced Techniques
Context Preservation
Maintain context across agent switches:Agent-Specific Tools
Some agents may have specialized tool access:Workflow Files
Create reusable multi-agent workflows:Best Practices
Choose the Right Agent
Match agent expertise to task type:
- Understanding → Sage
- Planning → Muse or Planner
- Implementation → Forge
- Review → Sage
- Strategy → Muse
Use Sequential Flow
Follow natural development stages:Plan → Implement → Review → RefineNot: Implement → Plan → Review
Performance Considerations
Agent Model Selection
Different agents can use different models:Tool Optimization
Limit tools for focused agents:Troubleshooting
Agent not found
Agent not found
- List available agents:
forge agent list - Check agent file exists in
.forge/agents/ - Verify YAML syntax is valid
- Reload Forge to pick up new agents
Context lost between agents
Context lost between agents
- Verify conversation continuity with
:info - Don’t use
:newwhen switching agents - Use
/agentcommand within same session - Check conversation ID remains consistent
Agent behavior unexpected
Agent behavior unexpected
- Review agent’s
system_prompt - Check
temperaturesetting (lower = more focused) - Verify
custom_rulesdon’t conflict - Test with default agent for comparison
Examples
Building a New Feature
Debugging Complex Issues
Refactoring Legacy Code
Related Features
- Custom Commands - Automate multi-agent workflows
- Semantic Search - Help agents understand codebases
- Shell Integration - Quick agent switching
- Git Operations - Collaborative git workflows