# iterate

Trying the finished change sometimes shows one more thing worth doing. iterate adds it to the same run as new, fully planned phases.

## When to use it

Use it after every phase is done and before `consolidate`. If phases are still pending, use `refine` instead. You must say what you want changed.

## How it works

1. Junji reads the plan, the board, the notes, research and `DESIGN.md`, and skims the code the request touches.
2. It forms a position and grills you on the delta, including how to slice it into phases.
3. It records new terms and decisions in `CONTEXT.md` and `PLAN.md`, and visual decisions in `DESIGN.md`.
4. It appends cards from the next free ID (`P5` after `P4`) and writes a full phase plan for each, so `next` or Yokai can run them directly.
5. It sets `nextAction` from `/junji consolidate` back to `/junji next`.

Earlier outcomes stay as they are. It writes no product code.

## Example

```text
/junji iterate Exports should include the customer's email. Done when the CSV has an email column filled for every order.
```

If you use Yokai, open `yokai setup` afterwards so the new phases get a reviewed tier, and so a changed bar gets reviewed.

## What can go wrong

- A phase is still `todo` or in flight. Finish it, or use `refine`.
- You did not name a request. Junji asks for one and stops.

## Cards to read next

- [![](/art/verbs/next-card.webp) next · Run one phase](/en/docs/junji/next)
- [![](/art/verbs/review-card.webp) review · Review the branch](/en/docs/junji/review)
