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