# 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](/en/docs/koi/install)), then let it add the skill to your agent:

```sh
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:

```text
/junji begin
/junji plan I want to solve [problem]. The change is ready when [expected outcome].
```

<figure class="harvest-figure">
<figcaption>From plan to delivery</figcaption>
<ol class="harvest-path">
<li><strong>Break down</strong><span><a href="/en/docs/junji/refine"><code>refine</code></a> splits the plan into phases, each with a result you can check.</span></li>
<li><strong>Implement</strong><span><a href="/en/docs/junji/next"><code>next</code></a> runs one phase, runs the checks and commits.</span></li>
<li><strong>Close</strong><span>Try the change. Add work with <a href="/en/docs/junji/iterate"><code>iterate</code></a>, or close the run with <a href="/en/docs/junji/consolidate"><code>consolidate</code></a>.</span></li>
</ol>
</figure>

## 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](/en/docs/junji/guide) lists every verb. [Work across sessions](/en/docs/architecture/sessions) explains the files. To run prepared phases unattended, add [Yokai](/en/docs/yokai).

## Cards to read next

- [![](/art/verbs/begin-card.webp) begin · Start in your repository](/en/docs/junji/begin)
- [![](/art/verbs/plan-card.webp) plan · Describe the change](/en/docs/junji/plan)
