# 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](https://docs.cline.bot/customization/cline-rules), Kilo's [Roo-to-Kilo migration guide](https://kilo.ai/articles/roo-to-kilo-migration-guide) and [Zoo Code's custom instructions docs](https://docs.zoocode.dev/features/custom-instructions).

**[Download free-roo-migrate.zip](https://agentkitco.com/downloads/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.py` writes each mode to `.clinerules/mode-{mode}.md` with `paths: []`, which [Cline's docs](https://docs.cline.bot/customization/cline-rules) say means "never activates". Read each one, then turn it on with globs or by deleting the frontmatter.
* **`.roorules` may never have been loaded.** Roo only read `.roorules` when `.roo/rules/` was empty. If both exist, copying `.roorules` brings back rules you weren't actually using. The script skips it and warns.
* **`.roomodes` doesn't come along.** Its `roleDefinition` text 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.md` replaces an existing AGENTS.md.** The short version at the top of Kilo's guide runs that line without a check. The script writes `AGENTS.from-roo.md` instead when AGENTS.md exists.
* **`agent` or `agents`?** 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}.md` so you can paste them into the right file.
* **Only `*.md` gets picked up.** The guide's append loop and its example `"instructions": [".kilo/rules/*.md"]` both match `.md` files in one folder. Roo also loaded `.txt` files and subfolders. The script flattens `sub/02-test.txt` into `sub-02-test.md` so the glob finds it.
* **`.kilo/rules/` needs a `kilo.jsonc` line.** Copying files isn't enough. Add `"instructions": [".kilo/rules/*.md"]` to `kilo.jsonc` or `.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 `permission` allow/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:

1. **Don't rename `.roo/` to `.zoo/`.** Zoo's docs don't list a `.zoo/rules/` folder.
2. **An empty file still counts.** A blank file in `.roo/rules/` stops the `.roorules` fallback, same as in Roo. Our [Roo Code rules guide](https://agentkitco.com/blog/roo-code-rules-examples/) covers this and the other loading traps we found by running Roo's loader.
3. **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](https://agentkitco.com/tools/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](https://agentkitco.com/products/agent-config-kit/) adds 12 stack templates and prompts that audit them. More: [Cline rules examples](https://agentkitco.com/blog/cline-rules-examples/), [Roo Code rules examples](https://agentkitco.com/blog/roo-code-rules-examples/) and [AGENTS.md examples](https://agentkitco.com/blog/agents-md-examples/).

*AgentKit Co is not affiliated with Roo Code, Inc., Cline, Kilo Code or the Zoo Code project.*

**Want ready-made files?** The [AI Coding Agent Config Kit](https://burmunster.gumroad.com/l/agent-config-kit) has instruction-file templates for 12 stacks plus 12 prompts that write and audit them (34-page PDF, $14). Or grab [10 free prompts](https://burmunster.gumroad.com/l/free-prompts).

---

*Originally published at [agentkitco.com](https://agentkitco.com/blog/migrate-roo-code-to-cline-kilo-zoo/).*

