Agents and roles
Define agent roles, launch child agents from the Workflow pane, and inspect their runs.
Run /workflow, or choose Workflow in the Palette. Agent definitions appear above Runs in the same scrollable pane, including while children are active. Select a definition with the arrow keys and press Enter to edit its model, instructions, and execution settings.
Fresh installations provide three presets:
| Preset | What it is |
|---|---|
orchestrator | Applies to the main conversation. In Workflow, choose Same as this session for the model and Same as main for thinking to inherit your current selection. |
coder | A child preset with model: "same" and thinking: "same". Each launch or resume uses the main session’s selected model and reasoning effort. |
reviewer | A review-only child preset that also follows the main session’s model and thinking. |
Add agent and Duplicate as new agent support arbitrary role names. Behavior follows the definition’s fields, not its name. Save writes the definition; Esc discards the form. In the multiline editor, Enter inserts a newline and Esc returns the text to the form.
| Field | Meaning |
|---|---|
placement | main, child, or both. |
instructions | Inline instructions, up to 32,000 characters. |
tools | Built-in child tools: read, grep, find, ls, write, edit, bash, powershell. |
timeoutSeconds | Default 7,200 seconds (2 hours); the runtime accepts 10 to 2,147,483 seconds. |
maxTurns | Default 500 turns. |
A review-only definition (the judging field) runs as a child and restricts built-in tools to read, grep, find, and ls. Bundled extension tools are still available, so review-only is an assignment policy, not an operating-system security boundary.
Definitions are stored in agents.json in Jouzu’s configuration directory; jz doctor shows the directories. With JOUZU_HOME set, the file is $JOUZU_HOME/agents.json. Editing a definition affects future launches; existing runs keep the definition saved with them.
A definition with main or both placement offers two actions:
- Use in main session changes the idle main agent’s model and thinking setting and adds the role’s instructions to subsequent turns. The main session keeps its conversation and tools.
- Launch agent opens an assignment form and starts a separate child session after you submit it. The form’s Workspace row names the child’s directory and defaults to the parent session’s. Child tools and execution limits apply to child runs.
See Parallel work and Git worktrees for pointing a launch at another directory, such as a second worktree.
While subagents are enabled, the main model receives the subagent tool. Typical calls look like this:
{"op":"roles"}
{"op":"launch","role":"coder","task":"Implement the assigned parser change. Run its focused tests and report files, results, and remaining work."}
{"op":"list"}
{"op":"read","id":"<run-id>","offset":0}
{"op":"steer","id":"<run-id>","task":"Keep the existing public API."}
{"op":"stop","id":"<run-id>"}
{"op":"resume","id":"<run-id>","task":"Address the reported failure and rerun the check."}launch returns immediately with a run ID. Unread terminal summaries arrive in a batch after active work and queued messages finish; the batch covers completion, limit exhaustion, timeout, cancellation, and crashes. A notification reports completion, not acceptance of the work.
list returns up to 20 runs and a nextOffset to continue. read pages event output and returns a byte offset plus terminal status. Before delegating, the main agent calls roles to check live availability.
You can also delegate from a prompt. Ask for one objective with verified context, constraints, and a stopping point:
Launch a reviewer child for this repository. Requirements: no new dependencies, public API unchanged. Report findings with severity and file/line, and coverage you could not verify.Runs in the Workflow pane provides output reading, messaging, Stop, and Resume. Stop requests tool cancellation and then forces process cleanup after a grace period; files already written remain. Resume starts another run using the original role revision, workspace, and saved child conversation.
The dashboard sits above the Session Line and groups work under dividers, for example ── Agents · 1 running · !1 ──────. Row markers:
| Marker | Meaning |
|---|---|
⠋ | Running. |
○ | Queued. |
✔ | Done. |
✗ | Failed or cancelled. |
! | Needs attention. |
The !N count on the Session Line shows how many items need attention. A child’s result stays counted until it is delivered to the model or read in full; its row leaves the panel after 30 seconds, but the count remains.
/subagentsopens Workflow → Runs./subagents hidehides the dashboard for this session without stopping work./subagents showrestores the saved display mode.
Settings / Catalogs offers a Dashboard choice of compact (up to 12 lines), expanded (up to 24), or hidden.
The Subagents row in Workflow controls child execution for this session. The choice survives reload and session resume; new sessions default to On. Shortcuts:
/workflow on
/workflow off
/workflow toggleTurning subagents off blocks launch, resume, and steering, cancels queued work, and stops running children. The Palette asks for confirmation when children are active; the commands apply the change directly. Files already written remain, and turning subagents back on does not restart stopped work.
Definitions, run history, output reading, Stop, and completion acknowledgements remain available while subagents are off. Only you should re-enable them.
For writing assignments and steering messages, Jouzu bundles the jouzu-delegation skill; the default prompt routes the parent to it automatically. See also Skills.
- Parallel work and Git worktrees — run children side by side in separate Git worktrees.
- Background jobs — keep long shell commands out of the conversation.
- Commands — find
/workflowand session controls. - Session history — reopen a session and its branches.