Roo Code — AI Coding Agent with Custom Modes
Fork of Cline with custom agent modes, boomerang orchestration, and multi-model routing. Create specialized AI agents for coding, review, and architecture tasks.
What it is
Roo Code is a fork of Cline, the popular VS Code AI coding extension, that adds custom agent modes, boomerang orchestration, and multi-model routing. You can create specialized agents for different tasks: one mode for writing code, another for reviewing, another for architecture decisions. Each mode can use a different LLM and set of rules.
This tool is built for developers who want fine-grained control over how AI assists them. Instead of one generic coding assistant, you get a team of specialized agents.
How it saves time or tokens
By routing tasks to specialized modes, Roo Code avoids sending expensive context to the wrong model. A quick formatting fix can go to a fast, cheap model while a complex architecture question routes to a stronger one. The estimated token cost is around 4,000 tokens per session. Boomerang orchestration chains agents so the output of one becomes the input of the next, reducing manual copy-paste between tools.
How to use
- Install Roo Code from the VS Code marketplace or build from source.
- Configure your LLM API keys for the models you want to use.
- Define custom modes with specific system prompts and model assignments.
- Switch between modes during development using the command palette.
{
"roo.modes": [
{
"name": "architect",
"model": "claude-sonnet-4-20250514",
"systemPrompt": "You are a senior software architect. Focus on design patterns, scalability, and maintainability."
},
{
"name": "coder",
"model": "claude-sonnet-4-20250514",
"systemPrompt": "You are a senior developer. Write clean, tested code following project conventions."
},
{
"name": "reviewer",
"model": "claude-haiku-4-20250514",
"systemPrompt": "You are a code reviewer. Find bugs, security issues, and style violations."
}
]
}
Example
Boomerang orchestration chains modes:
1. [architect] Design the API schema for user authentication
-> Output: API spec with endpoints and data models
2. [coder] Implement the API based on the architect output
-> Output: Working code with tests
3. [reviewer] Review the implementation for security issues
-> Output: Review comments and suggested fixes
Each step uses the optimal model for that task type.
Related on TokRepo
- AI coding tools — More AI-assisted development tools
- Multi-agent frameworks — Compare multi-agent orchestration approaches
Common pitfalls
- Too many custom modes creates decision paralysis. Start with 2-3 modes and add more only when you identify clear use cases.
- Boomerang orchestration requires well-defined handoff points. Vague output from one mode degrades the next mode's input quality.
- Different models have different context window sizes. Ensure your mode configuration accounts for the model's limits.
- Custom system prompts add token overhead to every request. Keep them concise and focused.
- Roo Code is a fork of Cline, so upstream Cline updates may not merge automatically. Check compatibility when updating.
Frequently Asked Questions
Roo Code is a fork of Cline that adds custom agent modes, boomerang orchestration for chaining agents, and multi-model routing. While Cline uses one model for all tasks, Roo Code lets you assign different models and system prompts to different task types.
Roo Code supports any model accessible via API: OpenAI, Anthropic Claude, Google Gemini, local models via Ollama, and others. Each custom mode can use a different model, so you can mix providers.
Boomerang orchestration chains multiple agent modes in sequence. The output of one mode becomes the input of the next. For example, an architect mode designs a solution, then a coder mode implements it, then a reviewer mode checks the result.
Yes. Mode configurations are stored in VS Code settings files that can be committed to your repository. This ensures the entire team uses the same agent configurations.
Roo Code is primarily a VS Code extension. It requires the VS Code editor or compatible forks like Cursor or VSCodium. There is no standalone CLI version.
Citations (3)
- Roo Code GitHub— Roo Code is a fork of Cline with custom modes
- Cline GitHub— Cline AI coding assistant for VS Code
- Anthropic Model Selection Docs— Multi-model routing for AI applications
Related on TokRepo
Source & Thanks
Created by Roo Code Team. Licensed under Apache 2.0.
RooVetGit/Roo-Code — 10k+ stars
Discussion
Related Assets
Claude-Flow — Multi-Agent Orchestration for Claude Code
Layers swarm and hive-mind multi-agent orchestration on top of Claude Code with 64 specialized agents, SQLite memory, and parallel execution.
ccusage — Real-Time Token Cost Tracker for Claude Code
CLI that reads ~/.claude logs and breaks down Claude Code token spend by day, session, and project — pluggable into your statusline.
SuperClaude — Workflow Framework for Claude Code
Adds 16+ slash commands, 9 cognitive personas, and a smart flag system to Claude Code in one pipx install.