koi
Documentation / junji

begin

Start an effort. Junji creates .koi/run/, copies its templates, and records what the repository already has, without deciding anything.

When to use it

Run begin first, once per effort, at the repository root. It is safe to run again: it never overwrites an active board, a customized METHOD.md or decisions already in CONTEXT.md. If the checkout already has a run, read nextAction in .koi/run/BOARD.json instead.

How it works

  1. It creates .koi/ and .koi/run/ if they are missing. No executable, settings or sensors are required.
  2. It copies METHOD.md, BOARD.json, NOTES.md and CONTEXT.md from the skill's templates, byte for byte, and creates phases/. An existing BACKLOG.md keeps the run in the older Markdown format.
  3. It surveys the repository and fills only what it can observe in CONTEXT.md: what the project is, candidate domain terms (marked as guesses), the file map, build, test and lint commands under Toolchain, where specs live, and the skills your repository asks agents to follow.
  4. It stops and reports Next action: /junji plan.

The verification bar, locked decisions and standing overrides stay empty. Those are decisions, and plan makes them.

Example

/junji begin

Then open .koi/run/CONTEXT.md. In a Node project you would expect Test: npm run test under Toolchain and, if your AGENTS.md says to follow a review skill, a row under Skills mapping it to judge.

What can go wrong

  • The survey lists a command that does not work. begin records what it sees, not what passes. plan decides which commands become the bar.
  • Files land at the repository root. Paths are always .koi/run/...; move them.
  • Both BOARD.json and BACKLOG.md exist. Junji reports the conflict instead of choosing. Keep one.