Overview
Forge supports 8 different AI coding agents - giving you the freedom to choose the best tool for each task. This is the core of Forge’s BYOL (Bring Your Own LLM) philosophy.The Agent Landscape
Supported Agents
Commercial API-Based
Claude Code
By: Anthropic
Models: Claude 3.5 Sonnet, Opus, Haiku
Best for: Complex logic, architecture
Cost: $3-15/MTokExcellent reasoning, great for system design
Cursor CLI
By: Cursor
Models: Multiple (via Cursor account)
Best for: UI/UX, rapid iteration
Cost: Subscription-basedIntuitive for frontend work, fast iterations
Gemini
By: Google
Models: Gemini 2.0 Flash, 1.5 Pro
Best for: Fast tasks, experimentation
Cost: Free tier available!Blazing fast, generous free tier
OpenAI Codex
By: OpenAI
Models: GPT-4 Turbo, GPT-3.5
Best for: General purpose coding
Cost: $0.50-30/MTokReliable, well-documented
Open Source & Local
OpenCode
Type: Open source
Run: Locally via Ollama
Best for: Privacy-sensitive work
Cost: Free (your hardware)Fully local, no data leaves your machine
Qwen Code
Type: Open source (Alibaba)
Run: Locally via Ollama
Best for: Cost-conscious development
Cost: Free (your hardware)Strong performance, competitive with commercial
LLM-Agnostic
Claude Code Router
Type: LLM proxy
Use: Any OpenAI-compatible API
Best for: Flexibility, vendor independence
Cost: Varies by backendRoute to ANY model - OpenAI, Anthropic, local, custom
Amp
By: Sourcegraph
Type: Code intelligence
Best for: Large codebase navigation
Cost: Based on usageExcels at understanding existing code
Choosing the Right Agent
By Task Type
| Task Type | Best Agent | Why |
|---|---|---|
| Complex Architecture | Claude Sonnet/Opus | Superior reasoning |
| Quick Fixes | Gemini Flash | Fastest, free |
| UI Components | Cursor | UI/UX intuition |
| Refactoring | Claude Sonnet | Maintains coherence |
| Testing | Claude/GPT-4 | Comprehensive coverage |
| Documentation | GPT-4 | Clear writing |
| Privacy-Critical | OpenCode/Qwen | Runs locally |
| Experimentation | Gemini | Free tier, fast |
By Budget
💰 Budget-Conscious:- Gemini Flash (free tier!)
- OpenCode (local, free)
- GPT-3.5 Turbo (cheap)
- Claude Haiku (fast + cheap)
- Gemini Pro
- Cursor (subscription)
- Claude Opus (best quality)
- GPT-4 Turbo
- Claude Sonnet
By Context Window
| Agent | Context | Best For |
|---|---|---|
| Gemini 1.5 Pro | 2M tokens | Massive codebases |
| Claude 3.5 | 200K tokens | Large projects |
| GPT-4 Turbo | 128K tokens | Standard projects |
| GPT-3.5 | 16K tokens | Small files |
Agent Comparison
Speed vs Quality
Cost vs Capability
Real-World Performance
Benchmark: “Add JWT Authentication”
Same task, different agents:Switching Between Agents
One of Forge’s superpowers: try multiple agents on the same task!Agent Configuration
Quick Setup
See detailed setup for each agent:Configuration File
.forge/config.json:
Specialized Agent Profiles
Apply “personas” to any base agent:Agent Strengths & Weaknesses
Claude Code
Strengths ✅:- Complex reasoning
- System design
- Edge case handling
- Clear explanations
- Can be verbose
- Sometimes over-engineers
- More expensive
Gemini
Strengths ✅:- Blazing fast
- Free tier (!)
- Good for simple tasks
- Concise code
- May miss edge cases
- Less sophisticated reasoning
- Shorter responses
Cursor CLI
Strengths ✅:- Great UI/UX intuition
- Fast iterations
- Context-aware
- Good for frontend
- Subscription required
- Less depth on algorithms
- Tied to Cursor ecosystem
OpenAI Codex (GPT-4)
Strengths ✅:- Reliable and consistent
- Well-documented
- Good all-rounder
- Strong community
- Expensive
- Slower than alternatives
- Nothing exceptional
Open Source (OpenCode/Qwen)
Strengths ✅:- Fully local
- Privacy guaranteed
- Free (your hardware)
- No rate limits
- Slower
- Lower quality
- Requires powerful hardware
- More setup needed
Multi-Agent Workflows
Sequential Workflow
Use different agents for different stages:Parallel Comparison
Run multiple agents simultaneously:Cost Tracking
Monitor spending per agent:Best Practices
Start with Free Tier
Begin with Gemini Flash (free!) to validate approach, then use premium agents for refinement
Match Agent to Task
Don’t use Claude Opus for simple fixes. Don’t use Gemini Flash for architecture.
Learn Agent Strengths
Track which agent works best for which task types in your codebase
Keep Options Open
Configure multiple agents. Vendor lock-in is the enemy of productivity.
Troubleshooting
Agent not available
Agent not available
Error: “Agent ‘claude’ not configured”Solution:
- Check
.forge/config.jsonhas API key - Verify API key is valid
- Run
forge config validate
All agents slow
All agents slow
Issue: Even “fast” agents are slowPossible causes:
- Network latency
- Large context window
- Complex task description
- Check internet speed
- Reduce context
- Simplify task description
Results inconsistent
Results inconsistent
Issue: Same task, different results each timeThis is normal!AI is non-deterministic. Use temperature=0 for more consistency:

