Setup problems
Fix installation, agent login and first-run problems. For failures during a Yokai run, see Run troubleshooting.
Start with the doctors at the repository root. They change nothing.
koi doctor # versions, skills per agent, PATH; runs yokai doctor in a Junji project
yokai doctor --probe # also contacts the agent to confirm it is signed in
For gate, sandbox, Build and recovery failures during a run, see Run troubleshooting.
Junji
| Symptom | Cause | Fix |
|---|---|---|
The agent does not recognize /junji |
The skill is not installed for this agent, or the agent was not restarted | Run koi setup (or npx skills add getkoi/koi --skill junji; in Claude Code, /plugin marketplace add getkoi/koi then /plugin install junji@getkoi), then restart or reload skills |
/junji with no verb runs begin on a project you already started |
No BOARD.json or BACKLOG.md in .koi/run/ |
Check the branch and the directory. A consolidated run has no board |
| Junji refuses to write: both board formats exist | BOARD.json and BACKLOG.md are both in .koi/run/ |
Keep the file the run uses and delete the other |
next stops: two phases in flight |
Two cards have planning, building or sealing |
Set the one that is not really in progress back to todo |
Files appear at the repository root (PLAN.md, phases/) |
The agent ignored the path rule | Move them under .koi/run/ and remind the agent |
| The agent stops and asks you to install koi | Junji's board commands are koi board status and koi board move, and koi is not on PATH |
Run the koi-installer.sh command the agent shows (see Install), then koi setup. Decline only if you want the agent to edit BOARD.json by hand |
koi doctor: skill version differs from koi |
The skill was copied by an older koi, or by npx skills add from another commit |
koi update, or koi setup --sync to re-copy the skills at the current version |
A leftover BOARD.json.move.lock |
Left by the old Node board script | Delete it; koi board locks the board folder instead |
Yokai installation and preflight
| Symptom | Cause | Fix |
|---|---|---|
koi: command not found or yokai: command not found |
The install directory is not on PATH |
Add ~/.cargo/bin (where the shell installer puts both) to PATH, or re-run the installer. koi doctor also flags an older copy earlier on PATH |
koi doctor: yokai differs from koi |
The two binaries come from different releases | koi update installs the same release of both |
Doctor: junji skill not installed |
The doctor did not find the skill in the agent's skill folders | Run koi setup. The yokai helper skill is optional |
spawning claude adapter… or a codex-acp error |
Node.js or the agent is missing | Install the agent, and Node.js for Claude Code and Codex. Run the doctor again |
spawning cursor-agent… |
Cursor CLI is not installed | Install Cursor's CLI; Yokai runs cursor-agent acp |
| Halts at once with an agent error | The agent is not signed in | Sign in through the agent (claude auth login, OpenCode /connect), then yokai doctor --probe |
| Doctor: working folder ✗ | No .koi/run/, or you are not at the repository root |
Run /junji begin, plan and refine first |
not a git repo |
The directory is not inside Git | git init and make a first commit |
| Unsupported agent in config | agent is not claude, cursor, opencode or codex |
Pick an agent in yokai setup |
| Legacy configuration found | Old config.yml or sandbox.yml from the Koi CLI |
Run yokai migrate and resolve any conflicts it lists |
tiers.medium must list at least one candidate |
A tier band is an empty list | Add a candidate, or rerun yokai setup |