Goals and iteration

Set a goal Jouzu works toward with a completion audit, or run measured improvement loops you approve first.

Set a goal with /goal

/goal followed by an objective starts a quick goal immediately: no setup interview, no metric, no verify command. Jouzu confirms the objective, derives a short lane name from its first words, and reminds you of /goal pause and /goal stop.

Jouzu
/goal Document every exported function in src/utils with a one-line summary, and make npm run build pass.

The agent works toward the objective across turns. It reads the goal with the get_goal tool and marks it complete with update_goal — but only after a completion audit: every requirement in the objective mapped to concrete evidence, inspected, with uncertainty treated as not achieved. Passing tests or substantial effort alone do not count.

Goal state is kept in a .multiloop/ directory in the project, so goals are listable and resumable like loops.

Pause, resume, and stop

CommandEffect
/goalList running and paused goals with command hints, and show cost so far.
/goal pause [lane/run-tag]Pause a goal.
/goal stop [lane/run-tag]Stop a goal.
/goal resume [lane/run-tag]Resume a goal; the agent is prompted immediately when idle, or the request is queued while it works.

Without a target, pause and stop act on the attached goal, or the only matching one. The Session Line shows running, paused, stopped, and completed counts for goals and loops in the session. Pausing, resuming, and stopping are yours to control; the agent will not pause or stop its own goal.

Measured improvement loops

When the work has a number attached — a benchmark, a score, a count — use /multiloop instead. A measured loop keeps or reverts each change against a metric. Launching one takes exactly one approval:

  1. Run /multiloop and describe the improvement you want.
  2. Jouzu scans the repository, then proposes one configuration: goal, mode, lane, scope, metric and direction, verify and guard commands, acceptance rule, and rollback safety.
  3. Correct any value in one reply, or approve as-is. The loop starts with the confirmed configuration.
ModeUse
optimizePerformance work: edit, measure, keep or revert.
punchlistWork through a checklist file, marking items done.
researchSweeps and comparisons: log every result without keeping changes.
devGeneral development until the checks pass.

Working with an active loop

Each iteration makes a change, runs the verify and guard commands, records the measurement through the loop tools, and decides: keep the change, revert it, or log the result in research mode. Iterations continue automatically until a stop condition — your pause or stop, a configured cap, or a safety blocker. You can ask a status question at any time; the agent answers briefly and continues.

  • /multiloop or /multiloop status — detailed status of active loops.
  • /multiloop ls — list all registered loops.
  • /multiloop pause [lane], /multiloop stop [lane] — intervene.
  • /multiloop resume lane/run-tag — resume a paused or stopped loop.
  • /multiloop archive [lane/run-tag] — archive completed loops.

A run records elapsed time, turns, tool calls, and token totals for you; they appear in status views and the summary card when a run completes, stops, or pauses. They are not a reason for the agent to wrap up unfinished work, and compaction during a long run is normal.

Goal or loop?

Your workUse
One objective, no number to improve, nothing to measure/goal. Converges on a completion audit.
Improve a metric and keep only changes that help/multiloop in optimize mode, with a verify command.
Finish every item in a checklist file/multiloop in punchlist mode.
Run a sweep and compare results without changing the tree/multiloop in research mode.

What next?