Roo Code(AI IDE 平台市场研究)


1. 介绍

Roo Code 是一个开源的 VS Code 扩展形态 AI 编码智能体,最初于 2024 年末以 Roo Cline 的名义从 Cline 分叉而来,2025 年 1 月更名 Roo Code。它的核心差异化不在模型接入,而在把 Harness 的 L3 编排控制层交还给用户配置:通过一个可自定义的「模式(Modes)」系统,把原本固定的单一智能体循环,变成一组角色不同、权限不同、提示词不同的可切换角色,再以「回旋镖任务(Boomerang Tasks)」机制把这些角色编排成多阶段工作流。

在 AI IDE 的流派划分中,Roo Code 与其母项目 Cline 同属「开源人机协同」一支:本地执行、自带密钥(BYOK)、逐次审批、以人为最终闸门。本组文档将其与 Cline(详见 09-cline.md)作为双子星对比研究:Cline 用 Plan / Act 两个固定阶段回答「先想后做」,Roo Code 用一个开放的模式定义系统回答「谁来做、被允许做什么」。这个差异使 Roo Code 成为观察「用户可配置编排层」这一设计取向的最佳样本。

1.1. 开发商与产品沿革

项目内容来源
起源2024 年末以 Roo Cline 名义从 Cline 分叉;发起方为一家兽医人力技术公司(Roo)的内部工程团队,动因是希望对智能体的角色与权限做比 Cline 更细的配置第三方技术资料
更名2025-01-14 发布公告,正式更名 Roo Code;VS Code 市场保留原发布者标识(RooVeterinaryInc.roo-cline)以兼容存量用户第三方技术资料
GitHub 组织RooCodeInc/Roo-Code官方仓库
许可证Apache 2.0官方仓库
规模数据VS Code 市场装机量超 300 万、GitHub 星标约 2.3 万—2.4 万、贡献者 300 余人(2026 年第三方口径)第三方评测,
后续动向多个第三方来源显示,原开发团队于 2026 年 4 月宣布停止运营,Roo Code Router 托管服务于 2026 年 5 月关闭,项目后续由社区接续;同期出现继任产品 Roomote。上述事项均未获官方一手确认,第三方评测

需要指出:开源项目的「公司关闭」不等于「项目死亡」——Apache 2.0 许可证下的仓库、市场装机与社区分支(如 Kilo Code 等后续分叉)可以独立存续。但对企业选型者而言,商业化主体消失意味着云端服务、SLA 与安全响应通道的持续性需要重新评估,这一点在 7.3 节展开。

1.2. 定位与最新版本

Roo Code 的定位是结构化的 VS Code 内智能体工作流平台:不要求用户更换编辑器,而是把可定制的多角色智能体体系叠装进既有 VS Code 环境。与 Cursor(整套 IDE)相比,Roo Code 是「给现有编辑器加装一套可编排的智能体团队」;与 Cline 相比,Roo Code 把这套编排做成了一等公民而非固定流程。

最新版本号属高频变动信息,撰写时第三方口径显示其处于 v3.5x 系列(约 2026 年 2 月仍保持高频发布节奏),未能从官方发布页取得可核验的当期版本号,记为 [待填写]

1.3. 定价与授权

内容来源
扩展本体免费开源(Apache 2.0),模型费用由用户经自选推理服务商直接支付(BYOK,无加价)官方 FAQ
支持的推理服务商超过 25 家:Anthropic、OpenAI、Google Gemini、AWS Bedrock、DeepSeek、Mistral、xAI、OpenRouter、Ollama、LM Studio、Requesty、Groq、Cerebras 等,另支持 VS Code Language Model API官方 FAQ 与第三方汇总
Roo Code Cloud Free免费,提供 token 用量追踪第三方口径,
Roo Code Cloud Pro第三方口径约 $20/月,另云智能体任务约 $5/小时第三方口径,
Roo Code Cloud Team第三方口径约 $99/月(不限席位数),含集中计费、共享配置、GitHub / Slack 集成第三方口径,
Roomote(继任产品)第三方口径:自托管 10 用户以内免费,云托管 $49/月起第三方口径,

2. 名词解释

术语英文 / 缩写释义
模式ModesRoo Code 的核心抽象:一组定义了角色提示词、工具权限与行为指令的智能体人格;每个模式可以有独立的默认模型(粘性模型),模式选择跨会话持久化
编排模式Orchestrator Mode又称回旋镖模式(Boomerang Mode),自身无直接工具访问权,唯一能力是通过 new_task 工具把复杂任务拆解为子任务并派发给其他模式,是 Roo Code 的任务编排层
回旋镖任务Boomerang TasksOrchestrator 发起的子任务执行机制:每个子任务在隔离上下文中运行,完成后仅以摘要回传,防止实现细节(文件差异、命令输出)填满父上下文
自定义模式Custom Modes用户以 YAML / JSON 配置或自然语言创建的模式,可限定工具组与文件路径正则(如只允许编辑 .md / .mdx),可覆盖同名内置模式;全局或项目级存放于 .roomodescustom_modes.yaml
工具组Tool Groups模式权限的最小单位,共四组:read(读文件与搜索)、edit(写文件)、command(终端命令)、mcp(MCP 服务器交互),另有 browser(浏览器)
.roo/ 目录.roo/项目级配置目录,存放模式专属规则(.roo/rules-{mode-slug}/)、MCP 配置(.roo/mcp.json)等;是 Roo Code 的仓库内上下文与工具契约落点
.roorules 文件.roorules项目根目录的指令文件,为智能体提供项目约定;支持按模式拆分为 .roorules-{mode-slug}
上下文提及Context Mentions@ 前缀显式注入上下文的机制,如 @/src/file.ts@problems(当前诊断错误),是用户主动做上下文选择的入口
自动批准Auto-approval按工具与操作类型的分级放行设置,可对读写文件、命令、浏览器操作分别开关;官方 FAQ 明确提示对命令自动批准应极其谨慎
检查点Checkpoints每次工具调用前对工作区状态的快照机制(基于影子 git 实现),允许在智能体改坏代码后回退到之前任一状态
粘性模型Sticky Model每个模式记住自己上次使用的模型,切换模式时自动切模型,实现「架构用强模型、补全用快模型」的按模式路由
模型上下文协议Model Context Protocol(MCP)外部工具与数据源的开放接入协议;Roo Code 中 MCP 工具受模式 mcp 工具组权限控制
云智能体Cloud AgentsRoo Code Cloud 提供的远端执行形态,可从 GitHub、Slack 或网页发起 PR 审查等任务(第三方口径)
引导词Role Definition每个模式的核心系统提示词,声明该模式的角色与专长,随模式切换整体替换

3. 功能说明

3.1. 模式系统

五个内置模式构成 Roo Code 的默认角色分工(来源:官方文档 Using Modes):

模式工具权限定位与典型用途
Code(默认)全部工具组(read / edit / browser / command / mcp)常规开发、功能实现、调试
Askread / browser / mcp,禁止编辑与命令代码讲解、概念探索、技术学习,倾向只答不改
Architectread / browser / mcp + 受限 edit(仅 Markdown)系统设计与高层规划,可在动手前把方案写成文档
Debug全部工具组系统化排障:分析、收敛假设、加日志确认、再修复,内置「先定位根因、勿治标」的方法论指令
Orchestratornew_task(无直接工具)拆解复杂任务并派发给其他模式,协调多阶段工作流

模式切换有四种方式:下拉菜单、斜杠命令(/architect/ask/debug/code/orchestrator)、快捷键循环切换、以及智能体在对话中建议切换。每个模式绑定独立的粘性模型,可在不增加手动操作的前提下做「按任务类型路由到不同价位模型」的成本优化。

自定义模式进一步把这套机制开放:团队可以定义「只能改测试文件的测试员」「只能写文档的文档员」,用文件路径正则硬约束其编辑范围,并把定义随仓库分发。项目级 .roomodes 中定义的同名模式会覆盖内置模式,使团队在不改产品配置的情况下标准化 AI 行为。

3.2. 任务执行与工具能力

能力说明Harness 层位
文件读写通过 write_to_file / apply_diff 等工具落地,逐次呈现给用户确认L2 + L6
终端命令在 VS Code 终端内执行,默认逐次审批,可分级自动批准L2 + L6
浏览器内置浏览器能力,用于前端验证与资料查阅(需所用模型支持)L2
MCP接入外部工具与数据源,配置于项目级 .roo/mcp.jsonL2
上下文提及@ 引用文件、文件夹、诊断信息,显式注入上下文L1
检查点每次工具调用前快照,支持回退L4
Code Actions接入 VS Code 原生快捷修复菜单:解释、改进、修复选区代码L2
历史任务任务历史保存,可回溯、恢复与引用L4

3.3. 云端与协作能力

Roo Code Cloud 把部分能力从本地扩展到云端(第三方口径):GitHub PR 自动审查、Slack 与 Linear 集成、云智能体任务、token 用量分析。此外有第三方来源提及一个「审查步」类特性( Booster mode,在产出后追加一次专门审查),未获官方文档确认,。


4. 平台架构

图 4-1|Roo Code 平台架构:用户可控本地栈中的 Harness 六层

Roo Code 平台架构(用户可控本地栈 × 六层能力) 信息截止 2026(第三方口径)· 示意:基于本文分析绘制 宿主层 · VS Code 扩展 Webview UI + 扩展宿主双向消息通信 · 不改造编辑器本体 状态机调度 L3 编排控制层 · 模式系统(本图重点) 五个内置模式:Code / Ask / Architect / Debug / Orchestrator · 自定义模式(.roomodes)可覆盖 Orchestrator 经 new_task 派发回旋镖子任务 · 隔离上下文仅摘要回传 · 编排拓扑随仓库版本化 工具调用 · 逐次审批 L2 工具与执行层 · 工具执行器 工具组 read / edit / command / mcp / browser · 逐次审批 + 分级自动批准 无 OS 级沙箱 · 护栏 = 人 + 检查点 + git 上下文注入 L1 上下文工程层 模式即上下文框架 · 模式专属规则(.roo/rules-*)· @ 上下文提及 无自动全仓索引 · 跨仓理解 = 读取文件 + MCP + 上下文提及 BYOK 直连 模型接入层 · ApiHandler 抽象层 25+ 推理服务商 · BYOK 无加价 · 含重试逻辑 · 本地执行代码不经中转 结构解读:Roo Code 将 Harness 六层能力全部放入用户可控的本地栈——L3 编排拓扑是仓库内版本化资产,L5/L6 组织级能力需团队自建。

数据来源:基于本文分析绘制的示意图。

维度内容
宿主形态VS Code 扩展(Webview UI + 扩展宿主双向消息通信),不改造编辑器本体
智能体循环扩展内的状态机,编排对话流、工具执行与用户审批;历史上与 Cline 同源,属 Cline 系状态机家族
工具执行器独立的工具执行模块,实现文件操作、命令执行、浏览器与 MCP 调用
模型接入ApiHandler 抽象层对接 25+ 推理服务商,含重试逻辑;BYOK,无模型加价
配置面模式定义(.roomodes / custom_modes.yaml)、规则(.roo/rules- / .roorules)、MCP(.roo/mcp.json)、自动批准与上下文管理设置
云端服务Roo Code Cloud(第三方口径):用量分析、云任务、GitHub / Slack / Linear 集成
许可与数据Apache 2.0 开源;扩展本体不强制遥测;模型调用直接发生在用户与推理服务商之间,项目代码不经 Roo Code 服务器中转(本地形态下)

这个架构的关键工程含义是:Roo Code 把 Harness 的六层能力全部放进了用户可控的本地栈。上下文在本地装配、工具在本地执行、模型直连用户自己的密钥、配置随仓库版本化——代价是 L5 / L6 的组织级能力(审计、策略下发、集中观测)没有平台代劳,需要团队自建(见 5.5、5.6 节)。


5. Harness 设计

5.1. L1 上下文工程层

Roo Code 的 L1 由四个机制构成:

  1. 模式即上下文框架。每次请求注入的系统提示由当前模式的角色定义 + 模式专属指令决定。Orchestrator 派发的子任务运行在独立上下文中,只回传摘要——这是一种结构化的上下文隔离:实现细节不进入父会话,父会话保留的是任务分解与验收状态。这比单纯依赖压缩(compaction)更主动:上下文不是被压缩掉,而是从一开始就没进入错误的窗口。
  2. 仓库内规则文件.roo/rules-{mode-slug}/ 目录与 .roorules-{mode-slug} 单文件让「给架构师看的约定」和「给写代码的角色看的约定」可以分开维护,规则随模式选择性生效,而非全量注入。
  3. 上下文提及@ 体系(文件、文件夹、@problems 诊断)提供显式的上下文选择入口,把「模型看到什么」的一部分决定权交给用户。
  4. 无自动全仓索引。与 Cursor、Windsurf 不同,Roo Code 未内置向量索引与语义检索,跨仓理解依赖读取文件 + MCP + 上下文提及的组合。这在小仓库中是更少噪声的选择,在大仓库中则是明确的短板。

5.2. L2 工具与执行层

工具执行的安全模型以「逐次审批 + 分级自动批准」为主轴:

  • 默认情况下每次文件写入、命令执行、浏览器操作都需用户批准,批准界面展示完整差异与命令内容。
  • 自动批准可按操作类别(读、写、命令、浏览器、MCP)分别开启,粒度到类别而非单条命令;官方 FAQ 直接警告对命令自动批准要「极其谨慎」。
  • MCP 以协议化方式接入外部系统,工具暴露受当前模式 mcp 权限组约束。
  • 无操作系统级沙箱(对比 Codex CLI 的 Seatbelt / Landlock,详见 05-codex-cli.md)。Roo Code 的护栏是「人 + 检查点 + git」的组合,而非进程隔离。

已知弱点:模式权限控制的是智能体「请求」什么工具,而命令一旦被批准即在用户终端全权执行,命令内部行为(脚本里嵌套的破坏性操作)不受模式权限约束。这是所有依赖审批而非沙箱的工具的共同边界,本组文档在 02、05 两篇中已作结构性分析。

5.3. L3 编排与控制层

这是 Roo Code 在全组平台中最具辨识度的一层:

  1. 单循环:每个模式内部是一个「请求 → 工具调用 → 观察结果 → 迭代」的标准智能体循环。
  2. 模式编排(Boomerang):Orchestrator 通过 new_task 派发子任务,子任务完成后摘要回传,Orchestrator 据此规划下一步;默认每次子任务交接需人工批准,可配置为自动以换取更高自主度。典型链路:Architect 出方案 → Code 实现 → Debug 排障 → Code 修复 → 回到 Orchestrator 验收。
  3. 用户可配置的编排:与 Cline 固定的 Plan / Act 两阶段不同,Roo Code 的编排拓扑由用户定义——增加一个「测试员」模式并把 Orchestrator 的派发规则写进其指令,即可改变工作流本身。这等价于把 L3 从产品预设变成仓库内的版本化资产。

工程上应把模式编排视为一种轻量工作流引擎:它没有 DAG、重试、超时等重型语义,胜在零基础设施、随仓库分发、可读可审计。适合以「阶段产出物」为节点的工作流(规格 → 实现 → 审查),不适合需要程序化保证的长流水线——后者应交给 CI 或终端型工具。

5.4. L4 记忆与状态层

机制作用持久化范围
Checkpoints每次工具调用前的工作区快照(影子 git),支持逐步回退会话内 + 任务历史
任务历史历史任务保存、恢复与引用本地,跨会话
模式与粘性模型模式选择与各模式默认模型跨会话记忆本地
仓库内规则与模式定义项目约定与角色定义随代码版本化团队共享
MCP Memory 类服务器可经 MCP 接入外部记忆存储(自建)自建

没有官方的自动记忆机制(对比 Claude Code 的 auto memory,详见 02-claude-code.md);跨会话的项目知识主要靠「写进规则文件」这一纪律约束。

5.5. L5 评估与观测层

  • token 用量追踪:本地会话显示 token 消耗;Roo Code Cloud 提供用量分析(第三方口径)。
  • 检查点 + git diff:回退机制本身构成最朴素的「机械判据」——改动好坏由测试与 diff 审查判定,但这是用户的纪律,不是产品的评估层。
  • 无内置评测 / 回归集 / 轨迹系统:未检索到官方 eval 或 trace 能力,记「无结果」。开源形态下,团队通常把 L5 建在测试框架与 CI 上,Roo Code 只负责把改动落到可被这些机制判定的状态。

5.6. L6 治理与安全层

Roo Code 的 L6 与 Cline 同构,是「人工审批即治理」的极简实现:

治理维度实现
执行审批逐次批准 / 按类别自动批准;差异全文可见
权限边界模式级工具组 + 文件路径正则(属执行前置约束,而非组织策略)
数据边界本地执行 + BYOK:代码与提示不经产品方服务器(云服务除外)
审计无组织级审计日志;可依赖 git 历史间接留痕
组织策略无策略下发机制;团队靠把 .roomodes 与规则文件纳入版本控制实现「约定即策略」
合规认证第三方来源称项目方曾获 SOC 2 Type 2;原运营主体停摆后的合规承诺存续性存疑

结构性评价:Roo Code 把 L6 的下限交给了「默认审批」这一人肉闸门,把上限留给了开源代码的可审计性。对 3—10 人的高信任小团队,这套极简治理是够用的;对需要 RBAC、审计导出、供应商责任主体的组织,它是不足的——这与 03 篇 GitHub Copilot 的企业闭环形成鲜明对照。

5.7. 与 Cline 的 Harness 差异

维度ClineRoo Code
编排哲学单智能体 + Plan / Act 两个固定阶段开放模式系统:角色、权限、提示词全部可定义
任务分解无显式子任务派发(在同窗口内推进)Boomerang 子任务隔离上下文,摘要回传
权限表达逐次审批为主,自动批准较粗模式 × 工具组 × 路径正则的细粒度声明
团队形态轻(BYOK 免费,团队席位制收费)平面 Team 定价 + 云任务 + Slack / Linear 集成(第三方口径)
上下文策略会话内压缩为主模式隔离 + 规则按模式生效,结构性减少无关上下文
社区规模星标约 5.8 万(第三方口径)星标约 2.4 万(第三方口径)

一句话概括:Cline 把「先想后做」做成产品流程,Roo Code 把「谁来做、被允许做什么」做成用户资产。前者对个人更顺手,后者对团队更有编排表达力。

5.8. 六层能力小结

评级一句话判断
L1 上下文工程★★模式隔离与规则文件是亮点;无全仓索引,大仓库靠纪律
L2 工具与执行★★工具面完整、审批粒度细;无 OS 级沙箱
L3 编排与控制★★★全组唯一把编排拓扑开放为用户可配置资产的平台
L4 记忆与状态★★检查点回退强;无自动记忆
L5 评估与观测用量可见,评估依赖团队自建
L6 治理与安全★★人肉闸门 + 代码可审计;无组织级治理

6. 实际案例

说明:本节如实说明数据可得性。未检索到 Roo Code 官方发布的、带量化指标的企业采用案例,本节不引用任何未核实的量化效果数字。

可引用的确凿信息仅两类:

  1. 规模信号:VS Code 市场装机量超 300 万、GitHub 星标约 2.4 万、贡献者 300 余人,多个第三方来源称有 Apple、Microsoft、Amazon、ByteDance 等公司的开发者在内测或使用调研中提及该工具(均属弱信号)。
  2. 可复现的工作流范式(基于官方文档描述的能力组合,非量化案例):
  • 多阶段功能开发:Orchestrator 拆解需求 → Architect 产出设计文档(仅可写 Markdown,天然防止越权写码)→ Code 按 spec 实现 → Debug 定位失败测试 → Orchestrator 汇总验收。
  • 团队行为标准化:项目根 .roomodes 定义覆盖内置模式的团队专属角色(如「只允许改 src/legacy/ 的迁移助手」),随仓库分发,新成员克隆即得一致的智能体行为。
  • 成本分层路由:Architect / Orchestrator 绑定高能力模型,Code 绑定高性价比模型,利用粘性模型在切换模式时自动换档。

7. 总结

7.1. 优势

  1. L3 编排的用户主权:模式系统把角色、权限、提示词变成仓库内可版本化的资产,是全组平台中对「团队自定义智能体工作流」表达力最强的设计。
  2. Boomerang 的上下文隔离:子任务独立窗口 + 摘要回传,从结构上缓解长任务上下文腐烂,比单纯依赖压缩更主动。
  3. 真开源 + 无模型加价:Apache 2.0、BYOK、本地执行,供应商锁定风险最低。
  4. 细粒度权限声明:模式 × 工具组 × 路径正则,把「这个角色不许碰什么」写成配置而非口头约定。

7.2. 局限

  1. 无全仓索引与沙箱:L1 的检索深度与 L2 的进程隔离都不及终端型与 IDE 型头部产品。
  2. L5 / L6 需自建:无评估体系与组织级治理,规模化团队要补测试门禁与审计链路。
  3. 商业化主体停摆风险:原团队于 2026 年 4 月停止运营(第三方口径),云服务与合规承诺的连续性需重新尽调;本体开源使代码存续无虞,但「有人负责」与「代码存在」是两回事。
  4. 高 token 消耗:多模式与子任务链路天然比单循环更耗 token,第三方评测普遍提及。

7.3. 适用边界与选型建议

场景是否适用理由
高信任小团队的 VS Code 内智能体工作流适用人肉闸门 + 模式标准化够用
需要团队自定义智能体角色与权限强适用全组最开放的模式编排系统
受监管行业、需审计与供应商主体不适用治理层缺失且运营主体已停摆
大仓库深度语义检索部分适用无内置索引,需 MCP 与自建工具补位
预算敏感 + 模型自由适用BYOK 无加价,可本地模型

选型建议:把 Roo Code 与 Cline 一起评估,用「团队需要多少编排表达力」作判据——只需要 Plan / Act 的选 Cline(更大社区、更简心智);需要按角色切分权限与上下文的选 Roo Code。若目标是规格先行的工程化交付,则两者都只是过渡,应转看 12 篇 Kiro。


信息缺口声明

  1. 当期版本号与发布节奏:未从官方发布页取得可核验版本,记 [待填写];第三方口径 v3.5x 系列。
  2. 原开发团队 2026-04 停止运营、Roo Code Router 2026-05 关闭、Roomote 上线:均来自第三方来源,未经官方一手确认,。
  3. Roo Code Cloud 各档定价与云智能体小时费率:第三方口径,。
  4. SOC 2 Type 2 合规声明:第三方口径,。
  5. Booster mode(审查步):未获官方文档确认,。
  6. 企业量化采用案例:未检索到官方发布的一手量化数据,未采用任何营销口径数字。
  7. Checkpoints 的实现细节(影子 git 的存储位置与上限):依据官方功能描述归纳,实现细节未逐项核验。

8. 参考资料

  1. Roo Code 官方文档 · Using Modes — RooCodeInc,2026。https://docs.roocode.com/basic-usage/using-modes
  2. Roo Code 官方文档 · FAQ — RooCodeInc,2026。https://docs.roocode.com/faq
  3. Roo Code 官方文档站 — RooCodeInc,2026。https://docs.roocode.com/
  4. Roo Code GitHub 仓库(Apache 2.0) — RooCodeInc,2024—2026。https://github.com/RooCodeInc/Roo-Code
  5. Roo Code 官方网站 — RooCodeInc,2026。https://roocode.com/
  6. Roo Code — VS Code Marketplace — RooVeterinaryInc,2024—2026。https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline
  7. Roo Code 专题词条 — AI Wiki(第三方),2026。https://aiwiki.ai/wiki/roo_code
  8. Roo Code vs Cline: AI Coding Extensions Battle — Serenities AI(第三方),2026。https://serenitiesai.com/articles/roo-code-vs-cline-ai-coding-2026
  9. Roo Code Review 2026 — Vibe Coding(第三方),2026。https://vibecoding.app/blog/roo-code-review
  10. Introducing the Model Context Protocol — Anthropic,2024-11-25。https://www.anthropic.com/news/model-context-protocol
  11. Terminal-Bench 官方站(模型 + Harness 系统评测口径) — Stanford / Laude Institute,2025—2026。https://www.tbench.ai/
  12. 2025 Stack Overflow Developer Survey — Stack Overflow,2025-07-30。https://survey.stackoverflow.co/2025/

Roo Code(AI IDE Platform Market Research)

1. Introduction

Roo Code is an open-source AI coding agent built as a VS Code extension, forked from Cline in late 2024 under the name Roo Cline, and renamed to Roo Code in January 2025. Its core differentiation is not model integration but returning Harness's L3 orchestration control layer to user configuration: through a customizable "Modes" system, it turns what was originally a single fixed agent loop into a set of switchable roles with different roles, permissions, and prompts, and then orchestrates these roles into multi-stage workflows via the "Boomerang Tasks" mechanism.

In the taxonomy of AI IDE schools, Roo Code and its parent project Cline both belong to the "open-source human-in-the-loop" branch: local execution, bring-your-own-key (BYOK), per-step approval, and the human as the final gate. This group of documents studies the two as twins alongside Cline (see 09-cline.md): Cline uses the two fixed Plan / Act stages to answer "think before acting," while Roo Code uses an open mode definition system to answer "who does it, and what are they allowed to do." This difference makes Roo Code the best sample for observing the design orientation of a "user-configurable orchestration layer."

1.1. Developer and Product History

ItemDetailsSource
OriginForked from Cline in late 2024 under the name Roo Cline; initiated by an internal engineering team of a veterinary workforce technology company (Roo), motivated by a desire to configure the agent's roles and permissions more finely than Cline allowsThird-party technical material
RenamingAnnounced on 2025-01-14, officially renamed to Roo Code; the VS Code Marketplace retains the original publisher identifier (RooVeterinaryInc.roo-cline) for backward compatibility with existing usersThird-party technical material
GitHub organizationRooCodeInc/Roo-CodeOfficial repository
LicenseApache 2.0Official repository
Scale dataVS Code Marketplace installs exceed 3 million, GitHub stars approximately 23,000–24,000, and 300+ contributors (2026 third-party figures)Third-party review
Later developmentsSeveral third-party sources indicate the original development team announced it would cease operations in April 2026, the Roo Code Router hosted service closed in May 2026, and the project was subsequently continued by the community; the successor product Roomote appeared around the same time. None of the above has been confirmed by first-party official sourcesThird-party review

It should be noted that for an open-source project, a "company shutdown" does not equal "project death"—the repository under the Apache 2.0 license, Marketplace installs, and community forks (such as subsequent forks like Kilo Code) can continue to exist independently. But for enterprise evaluators, the disappearance of the commercial entity means the continuity of cloud services, SLAs, and security-response channels must be reassessed, a point elaborated in section 7.3.

1.2. Positioning and Latest Version

Roo Code is positioned as a structured in-VS-Code agent workflow platform: it does not require users to switch editors, but layers a customizable multi-role agent system into the existing VS Code environment. Compared with Cursor (an entire IDE), Roo Code is "adding an orchestratable agent team to an existing editor"; compared with Cline, Roo Code makes this orchestration a first-class citizen rather than a fixed process.

The latest version number is fast-moving information; at the time of writing, third-party sources indicated it was in the v3.5x series (still maintaining a high-frequency release cadence around February 2026). A verifiable current version number could not be obtained from the official release page, recorded as [To be filled].

1.3. Pricing and Licensing

ItemDetailsSource
Extension itselfFree and open source (Apache 2.0); model costs are paid directly by the user to their chosen inference provider (BYOK, no markup)Official FAQ
Supported inference providersMore than 25: Anthropic, OpenAI, Google Gemini, AWS Bedrock, DeepSeek, Mistral, xAI, OpenRouter, Ollama, LM Studio, Requesty, Groq, Cerebras, and others; also supports the VS Code Language Model APIOfficial FAQ and third-party summary
Roo Code Cloud FreeFree, provides token usage trackingThird-party figure
Roo Code Cloud ProApproximately $20/month per third-party sources, plus roughly $5/hour for cloud agent tasksThird-party figure
Roo Code Cloud TeamApproximately $99/month per third-party sources (unlimited seats), including centralized billing, shared configuration, and GitHub / Slack integrationsThird-party figure
Roomote (successor product)Third-party figures: free for up to 10 users self-hosted, cloud hosted from $49/monthThird-party figure

2. Glossary

TermEnglish / AbbreviationDefinition
ModeModesRoo Code's core abstraction: a set of agent personas defined by role prompts, tool permissions, and behavioral instructions; each mode can have its own independent default model (sticky model), and mode selection persists across sessions
Orchestrator ModeOrchestrator ModeAlso called Boomerang Mode; it has no direct tool access itself, and its only capability is to decompose complex tasks into subtasks and dispatch them to other modes via the `new_task` tool—it is Roo Code's task orchestration layer
Boomerang TaskBoomerang TasksThe subtask execution mechanism initiated by the Orchestrator: each subtask runs in an isolated context and only returns a summary on completion, preventing implementation details (file diffs, command output) from filling the parent context
Custom ModeCustom ModesModes created by users via YAML / JSON configuration or natural language, which can restrict tool groups and file-path regexes (e.g., only allowing edits to `.md` / `.mdx`), and can override built-in modes with the same name; stored globally or per-project in `.roomodes` or `custom_modes.yaml`
Tool GroupTool GroupsThe smallest unit of mode permission, four groups in total: `read` (read files and search), `edit` (write files), `command` (terminal commands), and `mcp` (MCP server interaction), plus `browser` (browser)
`.roo/` directory`.roo/`Project-level configuration directory that stores mode-specific rules (`.roo/rules-{mode-slug}/`), MCP configuration (`.roo/mcp.json`), and more; it is the landing point for Roo Code's in-repository context and tool contracts
`.roorules` file`.roorules`An instruction file in the project root that provides project conventions to the agent; it can be split per mode into `.roorules-{mode-slug}`
Context MentionContext MentionsA mechanism that explicitly injects context using the `@` prefix, such as `@/src/file.ts` or `@problems` (current diagnostic errors); it is the entry point where users actively make context selections
Auto-approvalAuto-approvalTiered release settings by tool and operation type, which can be toggled separately for reading/writing files, commands, and browser operations; the official FAQ explicitly warns to be extremely cautious about auto-approving commands
CheckpointCheckpointsA snapshot mechanism of the workspace state before each tool call (implemented on shadow git), allowing rollback to any prior state after the agent breaks code
Sticky ModelSticky ModelEach mode remembers the model it last used, and switching modes automatically switches models, enabling per-mode routing such as "strong model for architecture, fast model for completion"
Model Context ProtocolModel Context Protocol (MCP)An open access protocol for external tools and data sources; in Roo Code, MCP tools are governed by the mode's `mcp` tool-group permission
Cloud AgentCloud AgentsRemote execution form provided by Roo Code Cloud, which can initiate tasks such as PR review from GitHub, Slack, or the web (third-party figure)
Role DefinitionRole DefinitionThe core system prompt of each mode, declaring the mode's role and specialty, and replaced wholesale when switching modes

3. Feature Overview

3.1. Mode System

Five built-in modes make up Roo Code's default role division (source: the official Using Modes documentation):

ModeTool PermissionsPositioning and Typical Uses
Code (default)All tool groups (read / edit / browser / command / mcp)Regular development, feature implementation, and debugging
Askread / browser / mcp; editing and commands disallowedCode explanation, concept exploration, and technical learning; tends to answer rather than modify
Architectread / browser / mcp + restricted edit (Markdown only)System design and high-level planning; can write proposals into documents before doing hands-on work
DebugAll tool groupsSystematic troubleshooting: analyze, narrow down hypotheses, add logging to confirm, then fix; includes built-in methodological instructions to "locate the root cause first, do not just treat symptoms"
OrchestratorOnly `new_task` (no direct tools)Decomposes complex tasks and dispatches them to other modes, coordinating multi-stage workflows

There are four ways to switch modes: a dropdown menu, slash commands (`/architect`, `/ask`, `/debug`, `/code`, `/orchestrator`), cycling through modes via a keyboard shortcut, and the agent suggesting a switch within a conversation. Each mode is bound to its own sticky model, enabling cost optimization of "routing by task type to differently priced models" without adding manual operations.

Custom modes further open up this mechanism: teams can define a "tester that can only change test files" or a "documenter that can only write docs," using file-path regexes to hard-constrain their edit scope and distributing the definitions with the repository. A mode defined in the project-level `.roomodes` with the same name overrides the built-in mode, letting teams standardize AI behavior without changing product configuration.

3.2. Task Execution and Tool Capabilities

CapabilityDescriptionHarness Layer
File read/writeImplemented via tools such as `write_to_file` / `apply_diff`, presented to the user for confirmation one step at a timeL2 + L6
Terminal commandsExecuted inside the VS Code terminal, requiring per-step approval by default, with tiered auto-approval availableL2 + L6
BrowserBuilt-in browser capability for front-end validation and reference research (requires the model in use to support it)L2
MCPConnects external tools and data sources, configured in the project-level `.roo/mcp.json`L2
Context mentions`@` references to files, folders, and diagnostic information to explicitly inject contextL1
CheckpointsSnapshot before each tool call, supports rollbackL4
Code ActionsIntegrates with VS Code's native quick-fix menu: explain, improve, or fix selected codeL2
Task historyTask history is saved, and can be traced back, restored, and referencedL4

3.3. Cloud and Collaboration Capabilities

Roo Code Cloud extends some capabilities from local to cloud (third-party figure): automated GitHub PR review, Slack and Linear integrations, cloud agent tasks, and token usage analysis. In addition, a third-party source mentions a "review step"-type feature (Booster mode, appending a dedicated review after the output), which has not been confirmed by official documentation.


4. Platform Architecture

图 4-1|Roo Code 平台架构:用户可控本地栈中的 Harness 六层

Roo Code 平台架构(用户可控本地栈 × 六层能力) 信息截止 2026(第三方口径)· 示意:基于本文分析绘制 宿主层 · VS Code 扩展 Webview UI + 扩展宿主双向消息通信 · 不改造编辑器本体 状态机调度 L3 编排控制层 · 模式系统(本图重点) 五个内置模式:Code / Ask / Architect / Debug / Orchestrator · 自定义模式(.roomodes)可覆盖 Orchestrator 经 new_task 派发回旋镖子任务 · 隔离上下文仅摘要回传 · 编排拓扑随仓库版本化 工具调用 · 逐次审批 L2 工具与执行层 · 工具执行器 工具组 read / edit / command / mcp / browser · 逐次审批 + 分级自动批准 无 OS 级沙箱 · 护栏 = 人 + 检查点 + git 上下文注入 L1 上下文工程层 模式即上下文框架 · 模式专属规则(.roo/rules-*)· @ 上下文提及 无自动全仓索引 · 跨仓理解 = 读取文件 + MCP + 上下文提及 BYOK 直连 模型接入层 · ApiHandler 抽象层 25+ 推理服务商 · BYOK 无加价 · 含重试逻辑 · 本地执行代码不经中转 结构解读:Roo Code 将 Harness 六层能力全部放入用户可控的本地栈——L3 编排拓扑是仓库内版本化资产,L5/L6 组织级能力需团队自建。

数据来源:基于本文分析绘制的示意图。

DimensionDetails
Host formVS Code extension (Webview UI + bidirectional message communication with the extension host), without modifying the editor itself
Agent loopA state machine inside the extension orchestrating the conversation flow, tool execution, and user approvals; historically shares a common origin with Cline, belonging to the Cline-family state machine lineage
Tool executorAn independent tool execution module implementing file operations, command execution, and browser and MCP calls
Model integrationThe ApiHandler abstraction layer connects 25+ inference providers, including retry logic; BYOK, no model markup
Configuration surfaceMode definitions (`.roomodes` / `custom_modes.yaml`), rules (`.roo/rules-*` / `.roorules*`), MCP (`.roo/mcp.json`), and auto-approval and context-management settings
Cloud servicesRoo Code Cloud (third-party figure): usage analysis, cloud tasks, and GitHub / Slack / Linear integrations
Licensing and dataOpen source under Apache 2.0; the extension itself does not force telemetry; model calls happen directly between the user and the inference provider, and project code is not relayed through Roo Code servers (in local form)

The key engineering implication of this architecture is that Roo Code puts all of Harness's six layers of capability into a user-controllable local stack. Context is assembled locally, tools execute locally, models connect directly to the user's own keys, and configuration is versioned with the repository—at the cost that organization-level L5 / L6 capabilities (audit, policy distribution, centralized observation) are not handled by the platform and must be built by the team (see sections 5.5 and 5.6).


5. Harness Design

5.1. L1 Context Engineering Layer

Roo Code's L1 is composed of four mechanisms:

  1. Modes as a context framework. The system prompt injected with each request is determined by the current mode's role definition plus mode-specific instructions. Subtasks dispatched by the Orchestrator run in independent contexts and only return a summary—this is a structured context isolation: implementation details do not enter the parent session, and the parent session retains the task decomposition and acceptance status. This is more proactive than relying purely on compaction: context is not compressed away, but simply never enters the wrong window from the start.
  2. Rules files in the repository. The `.roo/rules-{mode-slug}/` directory and the `.roorules-{mode-slug}` single file let "conventions for architects" and "conventions for roles writing code" be maintained separately, with rules taking effect selectively per mode rather than being injected in full.
  3. Context mentions. The `@` system (files, folders, `@problems` diagnostics) provides an explicit context-selection entry point, handing part of the decision over "what the model sees" to the user.
  4. No automatic whole-repo indexing. Unlike Cursor and Windsurf, Roo Code does not include vector indexing or semantic retrieval built in; cross-repo understanding relies on a combination of reading files + MCP + context mentions. This is a lower-noise choice in small repositories, but a clear shortcoming in large ones.

5.2. L2 Tools and Execution Layer

The security model of tool execution centers on "per-step approval + tiered auto-approval":

  • By default, every file write, command execution, and browser operation requires user approval, and the approval UI shows the full diff and command content.
  • Auto-approval can be enabled separately by operation category (read, write, command, browser, MCP), granular to the category rather than to individual commands; the official FAQ directly warns to be "extremely cautious" about command auto-approval.
  • MCP connects external systems in a protocol-based way, and tool exposure is constrained by the current mode's `mcp` permission group.
  • No OS-level sandbox (compare Codex CLI's Seatbelt / Landlock, see 05-codex-cli.md). Roo Code's guardrails are a combination of "human + checkpoints + git," not process isolation.

Known weakness: mode permissions control what tools the agent "requests," but once a command is approved it executes with full authority in the user's terminal, and the command's internal behavior (destructive operations nested inside scripts) is not constrained by mode permissions. This is the shared boundary of all tools that rely on approval rather than sandboxing, which this group of documents has analyzed structurally in documents 02 and 05.

5.3. L3 Orchestration and Control Layer

This is the most recognizable layer of Roo Code across the platforms in this group:

  1. Single loop: within each mode is a standard agent loop of "request → tool call → observe result → iterate."
  2. Mode orchestration (Boomerang): the Orchestrator dispatches subtasks via `new_task`, subtask summaries are returned on completion, and the Orchestrator plans the next step accordingly; by default each subtask handoff requires human approval, and it can be configured to be automatic in exchange for higher autonomy. A typical chain: Architect produces a plan → Code implements → Debug troubleshoots → Code fixes → back to the Orchestrator for acceptance.
  3. User-configurable orchestration: unlike Cline's fixed two-stage Plan / Act, Roo Code's orchestration topology is defined by the user—adding a "tester" mode and writing the Orchestrator's dispatch rules into its instructions can change the workflow itself. This is equivalent to turning L3 from a product preset into a versioned asset inside the repository.

From an engineering standpoint, mode orchestration should be treated as a lightweight workflow engine: it lacks heavyweight semantics such as DAG, retries, and timeouts, but wins on zero infrastructure, distribution with the repository, and readability/auditability. It suits workflows with "stage outputs" as nodes (spec → implementation → review), but not long pipelines requiring programmatic guarantees—the latter should be handed to CI or terminal-type tools.

5.4. L4 Memory and State Layer

MechanismRolePersistence Scope
CheckpointsWorkspace snapshot before each tool call (shadow git), supports step-by-step rollbackWithin-session + task history
Task historySaves, restores, and references historical tasksLocal, across sessions
Modes and sticky modelMode selection and each mode's default model are remembered across sessionsLocal
In-repository rules and mode definitionsProject conventions and role definitions are versioned with the codeShared by the team
MCP Memory-type serversExternal memory storage can be connected via MCP (self-built)Self-built

There is no official automatic memory mechanism (compare Claude Code's auto memory, see 02-claude-code.md); cross-session project knowledge relies mainly on the discipline of "writing it into rules files."

5.5. L5 Evaluation and Observability Layer

  • Token usage tracking: the local session displays token consumption; Roo Code Cloud provides usage analysis (third-party figure).
  • Checkpoints + git diff: the rollback mechanism itself constitutes the most basic "mechanical criterion"—whether a change is good or bad is judged by tests and diff review, but this is the user's discipline, not the product's evaluation layer.
  • No built-in eval / regression suite / trace system: no official eval or trace capability was found, recorded as "no result." In its open-source form, teams typically build L5 on test frameworks and CI, and Roo Code is only responsible for bringing changes into a state that can be judged by those mechanisms.

5.6. L6 Governance and Security Layer

Roo Code's L6 is isomorphic to Cline's—a minimal realization of "human approval as governance":

Governance DimensionImplementation
Execution approvalPer-step approval / auto-approval by category; the full diff is visible
Permission boundaryMode-level tool groups + file-path regexes (a pre-execution constraint rather than an organizational policy)
Data boundaryLocal execution + BYOK: code and prompts do not pass through the vendor's servers (except cloud services)
AuditNo organization-level audit logs; can rely on git history for indirect traces
Organizational policyNo policy-distribution mechanism; teams realize "conventions as policy" by bringing `.roomodes` and rules files under version control
Compliance certificationThird-party sources state the project previously obtained SOC 2 Type 2 (); the continuity of compliance commitments after the original operating entity ceased operations is in doubt

Structural assessment: Roo Code hands the lower bound of L6 to the human gate of "default approval" and the upper bound to the auditability of open-source code. For high-trust small teams of 3–10 people, this minimal governance is sufficient; for organizations needing RBAC, audit export, and a responsible vendor entity, it is insufficient—a sharp contrast with the enterprise closed loop of GitHub Copilot in document 03.

5.7. Harness Differences from Cline

DimensionClineRoo Code
Orchestration philosophySingle agent + two fixed Plan / Act stagesOpen mode system: roles, permissions, and prompts are all definable
Task decompositionNo explicit subtask dispatch (advances within the same window)Boomerang subtasks isolate context and return summaries
Permission expressionMainly per-step approval, with coarser auto-approvalFine-grained declaration of mode × tool group × path regex
Team formLight (BYOK free, team-seat billing)Flat Team pricing + cloud tasks + Slack / Linear integrations (third-party figure)
Context strategyMostly in-session compactionMode isolation + per-mode rules, structurally reducing irrelevant context
Community scaleApproximately 58,000 stars (third-party figure)Approximately 24,000 stars (third-party figure)

In one sentence: Cline turns "think before acting" into a product process, while Roo Code turns "who does it and what they are allowed to do" into a user asset. The former is more convenient for individuals; the latter has stronger orchestration expressiveness for teams.

5.8. Summary of the Six Layers

LayerRatingOne-line Assessment
L1 Context Engineering★★Mode isolation and rules files are highlights; no whole-repo indexing, large repos rely on discipline
L2 Tools and Execution★★Complete tool surface and fine-grained approval; no OS-level sandbox
L3 Orchestration and Control★★★The only platform in this group that opens orchestration topology as a user-configurable asset
L4 Memory and State★★Strong checkpoint rollback; no automatic memory
L5 Evaluation and ObservabilityUsage is visible; evaluation depends on team self-building
L6 Governance and Security★★Human gate + auditable code; no organization-level governance

6. Real-World Use Cases

Note: this section truthfully describes data availability. No enterprise adoption cases with quantified metrics officially published by Roo Code were found, so this section cites no unverified quantitative effect figures.

Only two kinds of citable, solid information exist:

  1. Scale signals: VS Code Marketplace installs exceed 3 million, GitHub stars approximately 24,000, and 300+ contributors; multiple third-party sources state that developers at companies such as Apple, Microsoft, Amazon, and ByteDance have mentioned the tool in beta testing or usage surveys (all weak signals).
  2. Reproducible workflow patterns (based on capability combinations described in official documentation, not quantified cases):
  • Multi-stage feature development: the Orchestrator decomposes the requirements → Architect produces the design document (can only write Markdown, naturally preventing unauthorized code writing) → Code implements per the spec → Debug locates failing tests → the Orchestrator aggregates acceptance.
  • Standardizing team behavior: the project-root `.roomodes` defines team-specific roles that override built-in modes (e.g., a "migration assistant only allowed to change `src/legacy/`"), distributed with the repository, so new members get consistent agent behavior upon cloning.
  • Cost-tiered routing: Architect / Orchestrator are bound to high-capability models, Code is bound to a cost-effective model, using the sticky model to automatically shift gears when switching modes.

7. Summary

7.1. Strengths

  1. User sovereignty over L3 orchestration: the mode system turns roles, permissions, and prompts into versionable assets inside the repository, making it the design with the strongest expressiveness for "team-customized agent workflows" across this group of platforms.
  2. Boomerang's context isolation: independent subtask windows + summary return structurally alleviate long-task context rot, more proactively than relying purely on compaction.
  3. Truly open source + no model markup: Apache 2.0, BYOK, local execution, with the lowest vendor-lock-in risk.
  4. Fine-grained permission declaration: mode × tool group × path regex writes "what this role must not touch" into configuration rather than verbal convention.

7.2. Limitations

  1. No whole-repo indexing or sandbox: neither L1's retrieval depth nor L2's process isolation matches the leading terminal-type and IDE-type products.
  2. L5 / L6 must be self-built: with no evaluation system or organization-level governance, scaling teams need to add test gates and audit chains.
  3. Risk of the commercial entity ceasing operations: the original team ceased operations in April 2026 (third-party figure), so the continuity of cloud services and compliance commitments requires renewed due diligence; being open source keeps the code alive without doubt, but "someone is responsible" and "the code exists" are two different things.
  4. High token consumption: multi-mode and subtask chains naturally consume more tokens than a single loop, widely noted in third-party reviews ().

7.3. Applicability Boundary and Selection Advice

ScenarioApplicable?Reason
High-trust small-team in-VS-Code agent workflowsApplicableThe human gate + mode standardization are sufficient
Teams needing custom agent roles and permissionsStrongly applicableThe most open mode-orchestration system in this group
Regulated industries requiring audit and a vendor entityNot applicableGovernance layer is missing and the operating entity has ceased operations ()
Deep semantic retrieval over large repositoriesPartially applicableNo built-in index; needs MCP and self-built tooling to fill the gap
Budget-sensitive + model freedomApplicableBYOK with no markup, and local models are possible

Selection advice: evaluate Roo Code together with Cline, using "how much orchestration expressiveness the team needs" as the criterion—if only Plan / Act is needed, choose Cline (larger community, simpler mental model); if permissions and context need to be split by role, choose Roo Code. If the goal is spec-first engineered delivery, then both are only transitional, and you should look at the 12 Kiro documents.


Information Gap Declaration

  1. Current version number and release cadence: no verifiable version could be obtained from the official release page, recorded as [To be filled]; third-party figures indicate the v3.5x series.
  2. Original development team ceased operations in 2026-04, Roo Code Router closed in 2026-05, and Roomote launched: all from third-party sources, not confirmed by first-party official sources.
  3. Roo Code Cloud tier pricing and cloud agent hourly rates: third-party figures.
  4. SOC 2 Type 2 compliance statement: third-party figure.
  5. Booster mode (review step): not confirmed by official documentation.
  6. Enterprise quantified adoption cases: no first-party quantitative data officially published was found, and no marketing-figure numbers were adopted.
  7. Implementation details of Checkpoints (storage location and limits of shadow git): inferred from official feature descriptions; implementation details were not verified item by item.

8. References

  1. Roo Code official documentation · Using Modes — RooCodeInc, 2026. https://docs.roocode.com/basic-usage/using-modes
  2. Roo Code official documentation · FAQ — RooCodeInc, 2026. https://docs.roocode.com/faq
  3. Roo Code official documentation site — RooCodeInc, 2026. https://docs.roocode.com/
  4. Roo Code GitHub repository (Apache 2.0) — RooCodeInc, 2024–2026. https://github.com/RooCodeInc/Roo-Code
  5. Roo Code official website — RooCodeInc, 2026. https://roocode.com/
  6. Roo Code — VS Code Marketplace — RooVeterinaryInc, 2024–2026. https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline
  7. Roo Code topic entry — AI Wiki (third-party), 2026. https://aiwiki.ai/wiki/roo_code
  8. Roo Code vs Cline: AI Coding Extensions Battle — Serenities AI (third-party), 2026. https://serenitiesai.com/articles/roo-code-vs-cline-ai-coding-2026
  9. Roo Code Review 2026 — Vibe Coding (third-party), 2026. https://vibecoding.app/blog/roo-code-review
  10. Introducing the Model Context Protocol — Anthropic, 2024-11-25. https://www.anthropic.com/news/model-context-protocol
  11. Terminal-Bench official site (model + Harness system evaluation scope) — Stanford / Laude Institute, 2025–2026. https://www.tbench.ai/
  12. 2025 Stack Overflow Developer Survey — Stack Overflow, 2025-07-30. https://survey.stackoverflow.co/2025/