# Migrate from the Koi CLI

The old project-setup koi command is gone; today's koi installs and checks tools. Use Junji for method work and yokai for project setup, and run yokai migrate once to move old settings.

Earlier versions shipped a `koi` executable that prepared projects. That command was removed, with no compatibility wrapper. Since 1.0 alpha there is a new `koi` executable with a different job: it installs the Junji skill and Yokai (`koi setup`), updates them (`koi update`), checks the installation (`koi doctor`) and moves board cards (`koi board`). It never prepares a project or writes Yokai settings; see [Install](/en/docs/koi/install).

## Command changes

| Old | New |
| --- | --- |
| `koi setup`, `koi init` (project preparation) | `yokai setup` (or bare `yokai`, which prepares what is missing). Today's `koi setup` installs skills and Yokai instead |
| `koi doctor` (project checks) | `yokai doctor`, with optional `--probe`. Today's `koi doctor` checks the installation and runs `yokai doctor` inside a project |
| Scaffolding the working folder | `/junji begin`, with no executable |

## Move old settings

From the repository root:

```bash
yokai migrate
```

Migration reads `.koi/run/config.yml` and `.koi/sandbox.yml`. Reusable values go to `.koi/yokai.yml`, with sandbox settings under its `sandbox:` key. Effort-only values go to `.koi/run/yokai.yml`. The originals stay, byte for byte, as `config.yml.legacy` and `sandbox.yml.legacy`.

Every supported field survives: timeouts, guides, tier cooldowns, custom sandbox fields. Unreadable files, malformed YAML and unknown settings are errors, never silently replaced with defaults.

If a legacy value conflicts with a value already in the new files, migration lists the field paths and changes nothing. Edit the files to reconcile them, or choose a side:

```bash
yokai migrate --prefer legacy
yokai migrate --prefer new
```

The choice only settles conflicting fields. You can rerun migration safely; it accepts an identical backup from an interrupted run but never overwrites a different one.

An old `.koi/gate-review.yml` receipt becomes compact fingerprints in `.koi/yokai.yml` only if it exactly matches the current verification bar and sensors. A stale receipt stays and is reported. Even a matching one cannot prove which environment it was tested in, so open `yokai setup` afterwards and run the smoke review once.

## What migration does not touch

Your plan, customized `METHOD.md` and `CONTEXT.md`, progress and sensors stay as they are. Migration does not invent phase assessments; approve them in the Phases step of `yokai setup`. Headless startup never migrates.

To adopt newer Junji templates in an active effort, merge the changes into your copies by hand and keep your custom sections. A new effort gets the current templates from `/junji begin`.

## Cards to read next

- [![](/art/verbs/begin-card.webp) begin · Set up Junji](/en/docs/junji/begin)
- [![](/art/verbs/yokai-card.webp) Yokai · Configure execution](/en/docs/yokai)
