koi
Documentation / junji

Junji

Junji is a skill for your coding agent. It plans a change with you, splits it into phases, and runs one phase at a time until its checks pass and it is committed. The plan and progress live in your repository.

What it is

Junji is the method part of Koi: a skill made of twelve verbs that your agent loads when you type /junji. It needs no program and no settings. Everything it knows about your project it writes to .koi/run/, so every phase can start fresh, in a new session or with a different agent. That is what lets the phases run on their own.

Use it for work that will not fit in one chat: a migration, a port, a large refactor, a new app.

Try it

Install the koi CLI (Install), then let it add the skill to your agent:

koi setup

npx skills add getkoi/koi --skill junji also works. In Claude Code you can install it as a plugin instead: /plugin marketplace add getkoi/koi, then /plugin install junji@getkoi. The skill's board commands are koi board status and koi board move, from the koi CLI that koi setup comes with; when koi is missing, the agent asks you to install it and edits the board by hand only if you decline.

Open your agent at the repository root and start:

/junji begin
/junji plan I want to solve [problem]. The change is ready when [expected outcome].
From plan to delivery
  1. Break downrefine splits the plan into phases, each with a result you can check.
  2. Implementnext runs one phase, runs the checks and commits.
  3. CloseTry the change. Add work with iterate, or close the run with consolidate.

The rules it keeps

  • One phase per next. It never starts the following phase.
  • Every command in the verification bar must pass. The bar is never weakened to get a pass.
  • Gated phases wait for your explicit approval.
  • Standing overrides in CONTEXT.md, such as "commit locally, never push", are followed word for word.
  • consolidate is never run without a human asking for it.

Junji verbs lists every verb. Work across sessions explains the files. To run prepared phases unattended, add Yokai.