koi
Documentation / Getting started

Get started with Koi

Pick a problem in your project. In the chat, you plan the change with the agent and watch the first phase. Then you let the rest run on its own and step in only when Koi calls you. Start with a Git project, your coding agent, and its test suite.

Install

Run this in a terminal to install koi. koi setup installs Junji: select the agent you use, then open it at the root of your project.

Terminal
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/getkoi/koi/releases/download/v1.0.0-alpha.6/koi-installer.sh | sh
koi setup
Install koi, then koi setup and koi doctor

A fresh terminal. The koi installer downloads koi. koi setup --yes installs the junji skill and the yokai helper skill for each detected agent (Claude Code, Codex, Cursor and OpenCode) and installs yokai. koi doctor then lists every version with a check mark.

Without koi, use npx skills add getkoi/koi --skill junji (Junji will ask for koi for its board commands). In Claude Code you can install it as a plugin instead: /plugin marketplace add getkoi/koi, then /plugin install junji@getkoi.

First chat

Open your agent in the same directory. Copy the message below and replace the bracketed text with your problem and the outcome you want.

Starter prompt
Use Junji in this repository. I want to solve [problem]. The outcome I want is [what should change].

Check .koi/run/ for work in progress. If you find any, show me where it stands and wait. For new work, prepare a plan in phases, with the checks that prove each phase works.

Wait for my approval. Then run the first phase, run the agreed checks, and commit. Stop there so I can check the result before the rest runs on its own.

Check the result

After approving the phase, check the diff, test output, and commit. Open the board in .koi/run/BOARD.json and look for nextAction.

Let it run

If the first phase looks right, let the remaining phases run on their own. In the same chat, send:

In chat
/junji goal

The agent runs each phase in a fresh subagent and checks it before moving on. It stops when a check fails, at a phase you marked as gated, or when no phase is left, and shows you why. Then it’s your turn: try the change, add work with /junji iterate, or close the run with /junji consolidate.

goal needs an agent with long-running goals and subagents. To run in a terminal, on a server, or in CI, with a judge, recovery, and a cost ceiling, use Yokai.

Run on its own