Skip to main content

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

By Budget

💰 Budget-Conscious:
  1. Gemini Flash (free tier!)
  2. OpenCode (local, free)
  3. GPT-3.5 Turbo (cheap)
💵 Balanced:
  1. Claude Haiku (fast + cheap)
  2. Gemini Pro
  3. Cursor (subscription)
💎 Premium:
  1. Claude Opus (best quality)
  2. GPT-4 Turbo
  3. Claude Sonnet

By Context Window


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:
See Specialized Agents for details.

Agent Strengths & Weaknesses

Claude Code

Strengths ✅:
  • Complex reasoning
  • System design
  • Edge case handling
  • Clear explanations
Weaknesses ⚠️:
  • Can be verbose
  • Sometimes over-engineers
  • More expensive
Best for: Architecture, refactoring, security

Gemini

Strengths ✅:
  • Blazing fast
  • Free tier (!)
  • Good for simple tasks
  • Concise code
Weaknesses ⚠️:
  • May miss edge cases
  • Less sophisticated reasoning
  • Shorter responses
Best for: Quick fixes, iteration, experimentation

Cursor CLI

Strengths ✅:
  • Great UI/UX intuition
  • Fast iterations
  • Context-aware
  • Good for frontend
Weaknesses ⚠️:
  • Subscription required
  • Less depth on algorithms
  • Tied to Cursor ecosystem
Best for: UI components, rapid prototyping

OpenAI Codex (GPT-4)

Strengths ✅:
  • Reliable and consistent
  • Well-documented
  • Good all-rounder
  • Strong community
Weaknesses ⚠️:
  • Expensive
  • Slower than alternatives
  • Nothing exceptional
Best for: General coding, documentation

Open Source (OpenCode/Qwen)

Strengths ✅:
  • Fully local
  • Privacy guaranteed
  • Free (your hardware)
  • No rate limits
Weaknesses ⚠️:
  • Slower
  • Lower quality
  • Requires powerful hardware
  • More setup needed
Best for: Privacy-sensitive, learning, cost control

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

Error: “Agent ‘claude’ not configured”Solution:
  • Check .forge/config.json has API key
  • Verify API key is valid
  • Run forge config validate
Issue: Even “fast” agents are slowPossible causes:
  • Network latency
  • Large context window
  • Complex task description
Solutions:
  • Check internet speed
  • Reduce context
  • Simplify task description
Issue: Same task, different results each timeThis is normal!AI is non-deterministic. Use temperature=0 for more consistency:

Next Steps

Claude Code Setup

Configure Claude for Forge

Gemini Setup

Setup Gemini (free tier!)

Open Source Agents

Run agents locally

Specialized Agents

Create custom agent personas