When a run stops
A run stops when it needs you, when you stop it, or when the machine does. The state is on disk, so it continues from the last verified phase in any session or agent.
A run is meant to keep going on its own. It stops for one of three reasons: it needs a person (a gated phase, a halt, or the end of the board), you stopped it, or the process died with the chat, the terminal or the machine. In every case the state is in .koi/run/, committed with your code. That is what lets the next launch continue from the last verified phase, in any session and with any agent.
Read why it stopped
Koi sends no notifications. The reason is where the run was:
/junji goalreports it in your agent's chat: a red check, a gated phase, a failed child, or no runnable phase left.- The Yokai cockpit shows
HALTwith the reason, orSTOPPEDafter you pressedxor the agent disconnected. - Headless
yokaiprints⚠ halt — <reason>and exits with code2.
To see where the board stands, paste this into any chat in the repository:
Read .koi/run/BOARD.json and .koi/run/NOTES.md. What has been verified? What comes next? Wait before changing any code.
A good answer names the last finished phase and its outcome, the commit it produced, and the next card. For example: "P1 is done: add, complete and delete work, 14 tests pass, commit 3c9e1f2. Next is P2, persistence. nextAction is /junji next."
If the answer does not match the code, ask the agent to run the commands in CONTEXT.md › Verification bar and inspect the last commit before going further.
Let it run again
Fix what the reason points at, then start the run again the same way:
- In your agent, send
/junji goalto run the remaining phases on their own, or/junji nextto run one while you watch. - With Yokai, press
rin the cockpit after a stop, or runyokaiagain after a halt or a restart. A gated phase runs only when you launch with--allow-gated.
If a phase was interrupted halfway, its card shows planning, building or sealing. Both tools continue from that point and reuse the phase plan that already exists. There is no --resume flag: launching again is how a run continues.
If you switch to a different agent, install the Junji skill there first with npx skills add getkoi/koi --skill junji. Yokai does not need the skill.
When every phase is done
nextAction is /junji consolidate. This stop is the one that always needs you. Try the change yourself first. Use /junji brief for a summary you can share, or /junji consolidate to close the run. If something is missing, /junji iterate adds phases, and they run like the rest.
What can go wrong
- There is no board. Check the branch and that you are at the repository root. A finished run may have been consolidated; look for the document it wrote, usually under
specs/. - The agent says it cannot see
/junji. The skill is not installed for this agent, or the agent needs a restart. - Two cards are in progress.
nextstops and asks you to keep only one. Decide which phase is really in flight and set the other back totodo. - The run uses
BACKLOG.mdinstead ofBOARD.json. It is an older run. Ask the agent to readBACKLOG.mdinstead; Junji still supports it.
Run on its own compares the two ways to run. Work across sessions explains what each file holds.