Prepare a project
yokai setup opens one wizard: choose an agent and model, check the environment, review the sensor scripts and the phase tiers, then start the run or save and exit.
When you need it
Yokai will not run a phase until a human has reviewed what it is about to do. Setup is where that happens. You open it once per project, and again when the checks, the environment or the phase list change.
Three ways open the same wizard:
yokai setup # always opens the wizard
yokai setup --once # same, and Start run runs at most one phase
yokai # opens it only if something needs attention; otherwise runs
In the cockpit, Setup (p) opens it while the run is stopped. During a phase it waits for the phase to finish.
Setup needs an interactive terminal on the host and a Git repository. In a new repository with no Junji plan yet, it can save your agent and model choices, then shows the Junji commands to run next. Checks, phase tiers and execution wait until the plan exists.
The five steps
A vertical timeline on the left shows each step and its state. Click a step, or press 1 to 5, to revisit it. Looking at a step does not restart its work.
- Configuration. First choose One model (one agent and model for everything) or Use tiers (a choice per band: Low, Medium, High, Ultra). Then pick the agent (
a), model (m) and environment (e). The model menu is searched live from the agent over ACP, without sending a prompt. It also offers the agent's default, a custom ID, and F5 to retry. Details, then More settings, holds permissions, limits and fallback candidates. - Environment. Yokai checks the host or the sandbox. If a sandbox needs an image, it proposes
.koi/Dockerfile.sandbox. Approve and build saves the file, builds the image and replaces the named sandbox. Nothing builds without that approval. - Checks. Missing sensors are proposed automatically from your verification bar, CI and package scripts. Existing sensors open for review without an agent turn. Select each row to see the script, the command it wraps, what it covers and what it needs. Approve and test runs temporary copies in the selected environment and saves the whole gate only if every check passes. Request changes asks for a new proposal.
- Phases. Missing tiers are proposed automatically, each with a reason. Select a row to read it; edit in Details. Approve and continue saves new or edited choices on the board cards. Choices you approved before need no second approval.
- Review and start. Readiness checks run. The summary links back to each step. Choose Start run, Back, or Save and exit. Every visit to setup ends here, even one that bare
yokaiopened.
Moving around
Up and down move between fields and buttons. Left and right change simple choices. Enter opens a picker or presses a button. Tab, the mouse and the letter shortcuts also work. Escape closes Details, leaves a tier editor, cancels running work, or exits from an idle screen.
Long jobs show an animated Kitsune, the elapsed time and what is running. YOKAI_REDUCED_MOTION=1 keeps the Kitsune still. Raw output is under Details.
Approved steps survive if you exit. Unapproved drafts belong to the current visit.
Prepare from chat instead
The optional /yokai helper skill does the same reviews from your agent:
npx skills add getkoi/koi --skill yokai
| In chat | What you review |
|---|---|
/yokai sensors |
The sensor scripts |
/yokai assess |
The model tier and reason for each unfinished phase |
/yokai sandbox |
The image and its prerequisites |
The helper and the wizard write the same records, so an approval in one counts in the other. yokai guidance sensors, assess or sandbox prints the helper's rules in a terminal.
What can go wrong
- A required check does not exist, for example the project has no test command. Setup reports a gap and will not save a complete gate. Add the real check as separate work, often a bootstrap phase run with
/junji next, and come back. - A check fails during smoke. If the script is wrong (a typo, the wrong directory, a missing tool), fix it and test again. If the product is genuinely failing, the check stays as it is. You can record the review, but readiness stays red and no phase can complete.
- The model picker is empty. The agent is not signed in. Sign in, then press F5.
- A proposal fails. Yokai retries once, read-only, then shows the error and what to do.
- Approving setup does not approve gated phases. Use
--allow-gatedat launch for that.