Roles
When a task has several parts, the leader agent follows this flow before handing anything out:
- Plan. It writes it in
.tutti/roadmap.mdand, if it is big, in an OpenSpec change. - Review. It goes over it: is it complete, does each part have a definition of done, do any parts touch the same files?
- Roles. It derives them from the plan with
propose_roles. Each role carriesid,name,responsibility,deliverables,done(definition of done),files(the ones only that role edits),difficultyanddependsOn. Tutti rejects repeated ids, circular dependencies and files shared between roles, and returns warnings (no plan referenced, chained roles with no parallelism, roles with no free agent…). - Choosing agents. You pick, for each role, its agent and model in the panel (click the role). Until every role has an agent, the plan cannot be approved.
- Approval. The leader calls
confirm_rolesand the plan shows up in Explorer → Role plan (under the tree; it folds like the project root) with the Approve and start button. Until you press it, the leader cannot hand out other tasks. - Handing out. Tutti launches each role in the agent and model you chose when the roles it depends on finish. It notifies the leader as each role ends and when all are done, and the leader checks each deliverable against its definition of done.
One agent, one role at a time. If the agent you chose is busy or out of quota, the role waits. With "roles_assignment": "auto" in settings.json Tutti chooses for you according to difficulty, and if the ideal agent is busy, out of quota or does not offer the model, the role goes to another: a free one that is already open, a new instance of another installed agent or, if none reaches the level, the most capable (you are told). If none is left, the role waits in a queue until one frees up; the leader does not take it. If a role cannot be launched, it is retried after a minute.
The plan is saved in .tutti/roles.json (which roles there are, their status and which ones finished). With "roles_approval": false in settings.json the plan is handed out as soon as the leader confirms it, without waiting for your approval. The trash button discards the plan (not available while roles are running). If you close Tutti with an approved plan, it shows as “Approved, not started” when you come back and the Start handing out button resumes it (an open agent is needed, which acts as the leader). Roles that do not start show the reason below them (no free agent, the model is not available, it could not be opened…).
Edit and assign by hand. Click a role that has not started to change its name, responsibility, deliverables, definition of done, files, difficulty and dependencies (Tutti validates the whole plan again). There you also pick its agent (an open or an installed one) and, if the agent lets you set it on launch, its model. What you pick by hand is respected and reserves its agent before the automatic assignment; if that agent is busy, out of quota or gone, the role waits in the queue instead of going to another. With “Automatic” Tutti still chooses.