Migrate Roo Code to Cline, Kilo Code or Zoo Code (Rules, Modes, MCP)
Roo Code shut down on May 15, 2026. If your repos still have a .roo/ folder, you have three places to go: Cline (the project Roo was forked from), Kilo Code (a Roo fork, now rebuilt on OpenCode) or Zoo Code (the community fork that keeps Roo's file layout). This page shows where each Roo file goes in each tool, and the traps the popular guides skip.
We checked every mapping on 2026-11-21 against Cline's rules docs, Kilo's Roo-to-Kilo migration guide and Zoo Code's custom instructions docs.
Download free-roo-migrate.zip (MIT: roo-migrate.py prints a plan, only copies, never overwrites, and ships with a 41-test test.sh)
python3 roo-migrate.py . --to cline # dry run
python3 roo-migrate.py . --to cline --apply # copy the files
Which one should you pick?
| If you... | Pick | Why |
|---|---|---|
| want zero file changes | Zoo Code | It reads .roo/rules/, .roo/rules-{mode}/, .roorules and .roomodes as-is |
| used custom modes (Architect, a reviewer mode) | Zoo Code or Kilo Code | Cline has only Plan and Act, no custom modes |
| want the biggest, actively developed upstream | Cline | Plain Markdown rules in .clinerules/, path-scoped with paths: frontmatter |
| want parallel agents and per-agent permissions | Kilo Code | Modes become agents; tool groups become allow/ask/deny rules |
The mapping table
| Roo Code | Cline | Kilo Code | Zoo Code |
|---|---|---|---|
.roo/rules/* |
.clinerules/*.md |
.kilo/rules/*.md, listed in kilo.jsonc instructions |
same path |
.roorules |
a file in .clinerules/ |
AGENTS.md |
same path |
.roo/rules-{mode}/ |
no modes: a .clinerules/ file you scope with paths: |
the Markdown body of that agent's file | same path |
.roomodes |
no equivalent | .kilocodemodes, converted by Kilo's wizard |
same path |
.roo/mcp.json |
re-add servers in Cline's MCP settings | .kilocode/mcp.json |
same path |
.rooignore |
.clineignore |
.kilocodeignore |
same path |
AGENTS.md |
read automatically | read automatically | read automatically |
| API keys | re-enter | re-enter | Roo Settings > Export, then Zoo > Import Settings |
The most portable move: put rules every tool should follow in AGENTS.md. Cline, Kilo and Roo all read it, so it survives the next tool switch too.
Move to Cline
Cline reads every file in .clinerules/ (or .cline/rules/) and combines them. Files with no frontmatter are always on. To scope a file, add:
---
paths:
- "src/components/**"
---
What the guides get wrong:
- Mode rules aren't "just rename". Architect-mode rules like "never edit code" would apply to every Act request if you dump them in
.clinerules/as-is.roo-migrate.pywrites each mode to.clinerules/mode-{mode}.mdwithpaths: [], which Cline's docs say means "never activates". Read each one, then turn it on with globs or by deleting the frontmatter. .roorulesmay never have been loaded. Roo only read.rooruleswhen.roo/rules/was empty. If both exist, copying.roorulesbrings back rules you weren't actually using. The script skips it and warns..roomodesdoesn't come along. ItsroleDefinitiontext and tool groups have nowhere to go in Cline.
Move to Kilo Code
Kilo's own guide is the best starting point, but run it carefully:
mv .roorules AGENTS.mdreplaces an existing AGENTS.md. The short version at the top of Kilo's guide runs that line without a check. The script writesAGENTS.from-roo.mdinstead when AGENTS.md exists.agentoragents? The guide's text says per-agent files live in.kilo/agent/{slug}.md, but its own append script writes to.kilo/agents/$slug.md. Check which folder Kilo's wizard actually created before you paste. The script puts each mode's rules in.kilo/PASTE-INTO-AGENT-{mode}.mdso you can paste them into the right file.- Only
*.mdgets picked up. The guide's append loop and its example"instructions": [".kilo/rules/*.md"]both match.mdfiles in one folder. Roo also loaded.txtfiles and subfolders. The script flattenssub/02-test.txtintosub-02-test.mdso the glob finds it. .kilo/rules/needs akilo.jsoncline. Copying files isn't enough. Add"instructions": [".kilo/rules/*.md"]tokilo.jsoncor.kilo/kilo.jsonc(the guide says the second one wins).- Tool groups become permissions. Roo's read/edit/browser/command/mcp groups don't exist in Kilo. Rewrite them as
permissionallow/ask/deny rules.
Move to Zoo Code
There's nothing to move. Zoo Code's docs list the same .roo/ locations and the same fallback, so keep your files where they are. Three checks:
- Don't rename
.roo/to.zoo/. Zoo's docs don't list a.zoo/rules/folder. - An empty file still counts. A blank file in
.roo/rules/stops the.roorulesfallback, same as in Roo. Our Roo Code rules guide covers this and the other loading traps we found by running Roo's loader. - The settings export can hold API keys. Zoo's own migration page warns about this. Don't commit it.
Run python3 roo-migrate.py . --to zoo to check for all three. It doesn't change any files.
What the script does and doesn't do
It handles one project folder. It doesn't touch ~/.roo/ global rules, VS Code settings, keybindings (Kilo's guide says to replace roo-cline. with kilo-code.; Zoo uses zoo-code.) or API keys. Exit code 0 means clean, 1 means there was no Roo config, and 2 means it finished with warnings to read.
FAQ
Is there an official Roo Code migration tool? We didn't find one from Roo. Kilo has a migration wizard that converts .kilocodemodes and .kilocode/mcp.json after you rename the Roo files. Zoo imports Roo's exported settings file.
Does Cline read .roo/rules? Not according to its docs. Cline lists .clinerules/, .cline/rules/, .cursorrules, .windsurfrules and AGENTS.md.
Will my Roo extension keep working? The final release still runs with your own API keys, but it won't get fixes. Plan the move.
Can I use two tools at once? Yes. Keep the shared rules in AGENTS.md and tool-specific extras in .clinerules/ or .roo/rules/. Each tool ignores the other's folder.
Get matching files for every tool
The free AGENTS.md generator builds AGENTS.md plus Cursor, Copilot, CLAUDE.md, GEMINI.md and Kiro files from your package.json or pyproject.toml. The AI Coding Agent Config Kit adds 12 stack templates and prompts that audit them. More: Cline rules examples, Roo Code rules examples and AGENTS.md examples.
AgentKit Co is not affiliated with Roo Code, Inc., Cline, Kilo Code or the Zoo Code project.
AI Coding Agent Config Kit
Instruction-file templates for 12 stacks and 12 prompts that write and audit them. 34-page PDF, $14.
Not ready to buy? Start with the free PDF.
Get 10 of our most-used prompts as a free PDF from Gumroad. You will be asked for your email so Gumroad can deliver it.