Introduction
Forge supports two types of agents that work together to give you ultimate flexibility in AI-assisted development. Understanding the distinction is key to mastering Forge.The Key Distinction:
- AI Coding Agents = The execution platforms (CLI tools that run AI models)
- Specialized Agents = Custom prompts that work with ANY coding agent
- Example: Your “test-writer” specialized agent can run on Claude today, Gemini tomorrow
AI Coding Agents vs Specialized Agents
The Concept
Think of it like this:Quick Comparison
| Aspect | AI Coding Agents | Specialized Agents |
|---|---|---|
| What it is | The AI execution platform | Custom prompt/instructions |
| Examples | Claude Code, Gemini, Cursor CLI | test-writer, security-expert |
| How many per task | Pick ONE | Optional, pick ZERO or ONE |
| Reusability | Locked to that agent | Works with ANY coding agent |
| Configuration | API keys, models | Custom prompts, instructions |
The 8 AI Coding Agents
Forge can execute tasks using these AI coding agents - including open-source and LLM-agnostic options:Claude Code
Provider: Anthropic
Type: Commercial
Best for: Complex reasoning, refactoring, architecture
Claude Code Router
Provider: Open-source
Type: LLM-agnostic router
Best for: Using ANY model instead of Claude
Cursor CLI
Provider: Cursor
Type: Commercial
Best for: Fast iterations, UI work, quick fixes
Gemini
Provider: Google
Type: Commercial
Best for: Cost-effective, multimodal, large context
Codex
Provider: OpenAI
Type: Commercial
Best for: Code completion, established patterns
Amp
Provider: Sourcegraph
Type: Commercial
Best for: Code intelligence, search-augmented
OpenCode
Provider: Open-source
Type: Fully local
Best for: Privacy, offline work, cost savings
Qwen Code
Provider: Alibaba (open-source)
Type: Fully local
Best for: Multilingual, Asian languages, local execution
The Power of Choice
Not Locked to Subscriptions
Not Locked to Subscriptions
Unlike other platforms, Forge doesn’t force you into specific subscriptions:
- Use open-source models - OpenCode, Qwen Code run fully local
- Route to any LLM - Claude Code Router lets you use any provider
- Bring your own API keys - Pay providers directly, not through Forge
- Mix and match - Use Claude for architecture, Gemini for tests, OpenCode for refactoring
Compare Agents on Same Task
Compare Agents on Same Task
Try multiple agents and choose the best result:
Specialized Agent System
Specialized agents are custom prompts that modify how any AI coding agent approaches a task. They’re reusable, portable, and work with ALL coding agents.How They Work
Built-in Specialized Agents
| Agent | Purpose | What it does |
|---|---|---|
| test-writer | Testing focus | Ensures comprehensive test coverage |
| security-expert | Security hardening | Reviews for vulnerabilities, adds security measures |
| pr-reviewer | Code review | Analyzes code quality, suggests improvements |
| auth-specialist | Authentication | Expert in OAuth, JWT, session management |
| performance-optimizer | Optimization | Focuses on speed, memory, efficiency |
| documentation-writer | Documentation | Adds JSDoc, README, examples |
Using Specialized Agents
Creating Custom Specialized Agents
Create your own in.forge/specialized/:
Agent Selection Matrix
Choose the right agent for the job:- By Task Type
- By Priority
- By Budget
| Task Type | Recommended Agent | Why |
|---|---|---|
| Architecture | Claude Code | Best reasoning, handles complexity |
| Refactoring | Claude Code, Cursor | Strong code understanding |
| New Features | Gemini, Cursor | Fast, cost-effective |
| Bug Fixes | Cursor CLI | Quick iterations |
| UI Work | Cursor CLI | Visual focus |
| Security | Claude + security-expert | Deep analysis |
| Testing | Gemini + test-writer | Comprehensive, cheap |
| Documentation | Any + documentation-writer | Consistent style |
| Privacy-sensitive | OpenCode, Qwen Code | Fully local |
Performance Comparison
Real-world data from Namastex Labs (50+ projects):Speed (Average task completion)
Quality (Code review score)
Cost (Per 1000 tasks)
Best Practices
Multiple Attempts Strategy
For important features, use this proven workflow:1
Fast prototype
2
Quality improvement
3
Cost-effective alternative
4
Compare and choose
Agent-Specific Tips
Claude Code: Use for complex reasoning
Claude Code: Use for complex reasoning
Claude excels at:
- System architecture decisions
- Complex refactoring
- Security-critical code
- Understanding large codebases
Gemini: Best value for testing
Gemini: Best value for testing
Gemini is perfect for:
- Writing comprehensive tests
- Documentation generation
- Simple feature implementation
- High-volume tasks
Cursor CLI: Speed matters
Cursor CLI: Speed matters
Cursor is fastest for:
- Quick bug fixes
- UI tweaks
- Iterative development
- Real-time experimentation
OpenCode/Qwen: Privacy + cost savings
OpenCode/Qwen: Privacy + cost savings
Local models when you need:
- Complete privacy (sensitive code)
- Offline development
- Zero API costs
- Full control

