Operating Agents
ForgeCode provides three specialized agents, each designed for different stages of development work. They differ in capabilities and access levels, allowing you to choose the right approach for your task.
Agent Comparison
| Agent | Access | Purpose | Best For |
|---|---|---|---|
muse | read + write | Planning & analysis | Reviewing impact, planning changes, critical systems |
forge | read + write | Implementation | Making changes, fixing bugs, creating features |
sage | read | Research & investigation | Understanding codebases, tracing bugs, analyzing architecture |
Typical workflow: Use muse to plan → Switch to forge to implement
Both agents can use sage internally to research and understand your codebase when needed.
Agent Selection Summary
From the Agent Selection Guide, here are the key points to remember:
How to switch quickly
- Type
:agentin your ForgeCode session - Browse the available agents list
- Use ↑/↓ to choose an agent
- Press Enter to confirm
Why selection matters
Models control raw intelligence, while agents control behavior and execution style. Picking the right agent gives you help that matches your current stage of work.
When to switch
- Use
sagefor deep research and system understanding - Use
musefor planning and change analysis - Use
forgefor direct implementation and code changes - Use custom agents for team- or domain-specific workflows
Pro tips
- Your conversation and project context are preserved when switching agents
- Combine
:agentwith:modelto tune both behavior and intelligence
muse Agent
muse analyzes your codebase and creates detailed implementation plans. It proposes solutions and explains the impact of changes without executing them.
Switch to muse: /muse
Ideal for:
- Planning complex refactoring
- Understanding scope before implementation
- Working with critical or production code
- Learning how to implement specific features
- Changes requiring team review
Example prompts:
- "How would you redesign this API for better scalability?"
- "Create a plan to add user authentication"
- "What's needed to implement pagination?"
forge Agent
forge implements solutions directly. It modifies files, creates code, and executes commands to complete tasks immediately.
Switch to forge: /forge (active by default)
Ideal for:
- Quick fixes and routine tasks
- Refactoring with immediate results
- Implementing approved plans
- Tasks where you want hands-off execution
- Creating new features
Example prompts:
- "Fix the null pointer exception in UserService"
- "Create a React component for the user profile"
- "Add unit tests for the payment processor"
sage (Internal Research Tool)
sage is not a user-facing agent, but it's an internal tool that both muse and forge can use automatically to research and understand your codebase. When either agent needs to investigate code, trace functionality, or analyze architecture, it leverages sage behind the scenes.
You don't need to manually switch to sage; it works transparently when the agents need deeper codebase insights.
Switching Between Agents
You can switch between agents at any time during your session:
- Use
:museto switch tomuseAgent - Use
:forgeto switch toforgeAgent - Use
:agentto see all available agents and choose from a dropdown
Common patterns:
- Use
musebefore making significant changes to critical systems - Switch to
forgewhen you're ready to implement - Both agents will automatically use
sagefor research when needed
Best practice: Use version control and commit your work before using forge for significant changes.