Personas and custom Squads
This is the advanced page. You do not need it for your first run. The five built-in Squads work as they are. Come here when you want to change a Persona, build your own Squad, tune how a Squad launches, or write a plan by hand.
New to Squads? Start with Start using Squads. To pick a built-in Squad, see Choose a Squad. For the ways to start one, see Ways to start a Squad. To write a plan, see Squad plans. For the board, Squad details, and the Inbox, see Watching a Squad.
The Personas page#
Open Settings → Agents & Automation → Personas.
A Persona is one reusable agent profile. A Squad slot points at a Persona.
The page has:
- A search box and a source filter: All, Builtin, User, Project, and Extension.
- New persona to create your own.
- Reveal personas dir to open the folder where your Personas are saved.
- A right-click menu on each row with View (or Edit for your own Personas), Reveal folder, Duplicate and, for your own Personas, Delete.
Your own Personas are saved in ~/.zcc/personas.
Edit override and Duplicate to user#
Open a Persona to see its detail. The button at the bottom depends on where the Persona comes from:
| Source | Button | What it does |
|---|---|---|
| Builtin | Edit override | Opens the editor titled "Override |
| User | Edit | Edits your Persona in place. |
| Project or Extension | Duplicate to user | Makes a personal copy. The original is not changed. |
A built-in shows this note: "Built-in — editing saves a personal override you can reset anytime." In the editor, Reset removes your override and brings back the built-in. A Persona you created has Delete in the same place.
Persona fields#
| Field | Default | When to change it |
|---|---|---|
| Name | empty (required) | Always set one. |
| Icon | none | To tell Personas apart at a glance. |
| Description | empty | One line shown in the catalogue and pickers. |
| Harness profile | Use launch harness (neutral) | Leave it neutral so the Persona follows whichever harness you launch with. Pick a harness only if this Persona must always use it. |
| Model level | Use harness default (unset) | Shown while the harness profile is neutral. Choose Low (speed/cost sensitive), Medium (balanced normal), High (frontier reasoning), or Extra-high (deep reasoning) to set the tier. |
| Execution state | Use harness default (unset) | Shown while the harness profile is neutral. Choose Plan (planning only), Interactive (human-in-loop), Accept Edits (auto-approve edits), or Autonomous (fully auto). |
| System prompt (appended) | empty | To give the Persona standing instructions. |
| Opening prompt | empty | Text written to the session after it starts. |
| Restrict skills | off (no limit) | To load only the skills you list, plus zcc-inbox. |
| Restrict MCP servers | off (no limit) | To load only the MCP servers you list, plus zcc-inbox. See Restrict MCP servers. |
Persona settings apply after Global and Project defaults and before the choices made for a single Agent: Global, then Project, then Persona, then Agent.
When you pick a harness profile, the page shows that harness's own fields instead (such as Model, Provider, and Execution state). Blank values use the Project and Global settings.
A Persona that cannot write files cannot write a plan. This matters for the Orchestrator. See Infer plan from goal.
Restrict MCP servers#
Restrict MCP servers is an exclusive allowlist, not a list of extras. It limits which MCP servers load, to cut startup context and cost. It is a context filter, not a security boundary.
| Setting | What loads |
|---|---|
| Off (the default) | Every server the harness would normally load. |
| On, with no entries | Only zcc-inbox, which is always allowed. |
| On, with entries | Exactly the servers you list, plus zcc-inbox. |
- Enter a server name. Use
plugin:<id>:<name>orext:<id>:<name>to pin one source. Wildcards and tool names are not accepted. Tool control stays in the Persona's allowed and denied tools. You can list up to 63 servers. - Plugin servers that are always on are not exempt. A plugin server you do not list is dropped.
- A server that is listed but not installed, or whose credentials are stripped, is flagged. You can still save; launches warn until it is available. Authentication stays with the harness.
- Claude, Codex and OpenCode launch with only the listed servers. Modern threads limit only the plugin servers Zana injects, because the agent's own configured servers cannot be excluded; a launch notice says so. Harnesses without MCP support, and SSH sessions that cannot deliver MCP, ignore the list.
- Restrict skills is a separate control. It does not add or remove servers.
- Behaviour change: a stored list used to add servers to the defaults. It now narrows to exactly those servers. A Persona that already stores a list posts a one-time notice at launch. Turn Restrict MCP servers off to allow all.
The Squad editor shows the effective MCP servers for each member. A launch fails when a step's Requires names an MCP server that no worker's Persona allows.
The Squads page#
Open Settings → Agents & Automation → Squads.
The page has:
- New squad, Import bundle, and Reveal.
- A search box and the same source filter as Personas.
- A row for each Squad, with an Export button and a Launch button. Launch here opens the Squad's agents as tabs. It does not start a planned run with a Job. To start a run, use the composer. See Ways to start a Squad.
- A right-click menu on each row: View (or Edit for your own Squads), Reveal folder, Duplicate, Set as default (or Clear default), and Delete for your own Squads.
Your own Squads are saved in ~/.zcc/teams.
Edit override and Duplicate to user#
Open a Squad to see its detail. It lists the slots, the opening prompt, and the Squad's launch mode. The bottom button depends on the source:
| Source | Button | What it does |
|---|---|---|
| Builtin | Edit override | Opens the editor titled "Override |
| User | Edit | Edits your Squad in place. Delete removes it. |
| Project | Duplicate to user | Makes a new personal Squad from it. The Project file is not changed. |
| Extension | Duplicate to user | Same. Extension Squads are defined by the extension, so you edit a copy. |
A built-in Squad's detail also shows its Squad routing value.
To keep the original and also make your own, use Duplicate in the row menu, or New squad to start from scratch. Edit override instead writes your own Squad with the same id as the built-in. Use Duplicate for a first custom Squad. A Squad needs a Name and at least one slot before Save is enabled.
Every option in the Squad editor#
The editor fields appear in this order. "Default" is what a new Squad starts with.
Name, Icon, Description#
Name is required. Icon and Description (one line shown in the catalogue) are optional.
Squad launch mode#
- Choices: Use default, Follow caller, CLI Agent or Modern.
- CLI Agent runs each agent as a command-line agent session. Modern uses the same session type as the Modern launch mode in New Chat and New agent.
- Follow caller matches the session that launches the Squad. Use default follows the All Squads launch mode in Settings > Squads > Defaults: Follow caller (the default), Follow Default launch mode, CLI Agent or Modern.
- Default: Use default. A Squad with no saved choice means Use default.
- Help text: "One launch mode applies to every worker and orchestrator."
Zana picks the mode once per launch, in this order. The first match wins:
- The Squad's own CLI Agent or Modern choice.
- The Squad launch mode picker in the New agent Squad composer.
- The session that launches the Squad, when an agent starts it through MCP.
- Follow caller on the Squad, or Use default resolved through the All Squads launch mode.
- Your Default launch mode.
- CLI Agent.
The run keeps that mode. Resume and recovery do not pick again. Modern needs a local Project. If the mode was inherited and the Project is remote, the Squad runs as CLI Agent and a notice says so. If you pinned Modern, or picked it at launch, a remote Project refuses the launch. Every Squad picker shows the mode as a small chip. The mode also decides how an Orchestrator hands over an inferred plan. See Infer plan from goal.
Slots#
A slot is one Persona in the Squad.
- Add slot adds a row. Each row has a Persona picker, an optional label (Label (optional)), and a tab count (1 to 16). The tab count is how many workers that slot starts.
- Use the arrows to reorder rows and the x to remove one.
- The header shows the total, for example "Slots · 4 tabs".
Crown (Mark as orchestrator). The crown button on a row marks that Persona as the Orchestrator. The tooltip says: "Orchestrator — launched first, carries the opening prompt." A Squad run needs an Orchestrator, so crown one slot. The Orchestrator is launched first and always gets its own tab. Removing the crowned row clears the Orchestrator.
A Squad can hold up to 64 slot rows, but one run starts at most 32 tabs, including the Orchestrator. If the rows add up to more, Zana starts the Orchestrator and the first 31 workers in row order, and drops the rest without a warning.
Opening prompt#
- Default: empty.
- Placeholder text: "Handed to the orchestrator's tab after it starts"
Use it for standing instructions that apply to every run of this Squad, such as how to report results. Put the goal itself in the composer, not here.
Default project#
- Choices: None — choose at launch, or any of your Projects.
- Default: None — choose at launch.
When you pick this Squad in the composer and have not chosen a Project, the composer uses the Squad's default project. Set it when a Squad always works on the same Project.
Launch settings#
Use structured Customize launch controls for launch overrides. Goal and schedule forms offer:
- Checkout: Inherit checkout, Generated new worktree, Project checkout, Selected checkout, or one existing worktree from the selected Project.
- On complete: Use default, Keep checkout and branch, Merge then remove, or Delete checkout and branch.
- Push: Use default, Allow push, or Do not push.
- Named checks: Use default, No checks, or Named checks. When named checks are selected, enter comma-separated check names.
- Reset launch settings removes every explicit launch override. The launch then inherits from the plan, then the Squad, then the default. For the default rung for worktree isolation, a Project setting takes precedence over its global setting.
Goal and schedule forms show Launch preview automatically. It lists execution location plus every effective value and its source. Preview is advisory; each run revalidates its plan, Squad, and checkout. In the new Squad composer, Customize launch and Review settings are separate, mutually exclusive disclosures below the composer buttons. Review settings shows effective values and sources; Customize launch contains Worktree isolation, On complete, Push, and Named checks overrides plus title and summary. The composer chooses its checkout separately. Use default removes an explicit override so the plan, Squad, and defaults decide its effective value.
Worktree isolation#
- Choices: Use default, On, Off.
- Default: Use default.
- Help text: "Creates one shared branch and checkout for durable squad runs. Use default follows the effective project-or-global setting; On forces a shared squad worktree; Off disables it."
Zana resolves shared launch settings once when it claims a run: explicit launch,
then plan ## Launch, then Squad, then default. For worktree isolation, the
default rung uses the Project/global setting: Settings → Project → Worktree
isolation (Use global default, Always use worktrees, Never use
worktrees) and Git worktrees → Prefer a new git worktree by default. The
run stores both effective value and source, so later setting edits do not change
an active run.
Change this on a Squad when its runs should always (or never) get their own checkout, whatever the Project says. See Worktrees, push, and cleanup.
When a run finishes#
- Choices: Keep worktree (default), Merge everything into base branch, then remove, Delete worktree and branch.
- Default: Keep worktree (default).
- Applies only when the run used a shared Squad worktree. See Worktrees, push, and cleanup.
A failed or stopped run always keeps its worktree, whatever you choose. A Squad pointed at a worktree you made yourself never merges or deletes it. The claim-time snapshot, not live Squad settings, controls final disposition.
Squad routing#
- Choices: Use default, On, Off.
- Default: Use default.
- Help text: "Use default follows the global setting; On tier-routes work when supported; Off falls back. Manual assignments are not checked."
Routing matches each step to a worker of a suitable model tier. Leave it on
Use default unless you have a reason. The built-in Debug Squad and Delivery
Squad set it to On. If routing is on and no worker can take a step, that step
fails with NO_QUALIFIED_ROUTE. Routing is only enforced when Zana knows the
model level of every worker. See
Choose a Squad.
Keep orchestrator running after completion#
- A checkbox. Default: off.
- Help text: "Keeps the orchestrator open after a successful run. Workers still close; stopping or failing the run closes all agents."
Turn it on if you want to talk to the Orchestrator after the run finishes.
Default planning#
- Choices: Use the global default, Infer plan from goal, Plan provided in goal.
- Default: Use the global default.
- Help text: "Sets the planning mode when this Squad is picked in the composer or proposed by an agent."
The global default is Default plan mode in Settings → Agents & Automation → Agents. It starts as Infer plan from goal. Setting a value on the Squad makes the composer start with that mode when you pick the Squad. You can still change Squad planning in the composer. Pick Plan provided in goal here for a Squad that you always launch with a written plan.
Launch approval#
- Choices: Use the Project setting, Agents can launch directly if the Project allows, Review before launch.
- Default: Use the Project setting.
- Help text: "Review before launch stops an agent from starting this Squad on its own. It proposes the run and you press Launch from the Inbox. A Project set to Review before launch applies to this Squad whatever is chosen here. Launching from the composer, schedules and triggers is not affected."
The Project setting is Settings → Project → Squad launch approval, with Agents can launch directly (the default) and Review before launch. Review wins: if either the Squad or the Project says review, an agent has to propose and you press Launch. Choose Review before launch on a Squad you want to see before it starts.
Default Squad#
The editor has no Default Squad field. Use the row menu on the Squads page: Set as default, or Clear default to remove it.
- The row then shows a Default pill. Its tooltip reads "Preselected in New Agent".
- The composer preselects the default Squad. With no default, it preselects the first Squad alphabetically.
- Setting another Squad as default clears the previous one.
- On a built-in or Project Squad, Set as default saves a user copy and marks that copy, and the toast says so.
Writing a plan#
With Plan provided in goal, you give the Squad the steps. The format, every field, how workers are chosen, a cheat sheet for the built-in Squads, and the messages Zana shows when it rejects a plan are on Squad plans.
Outputs, handoff, and named checks#
A step with an output declaration can return structured output. Dependents and failure retries receive that structured value as untrusted data; it is not trimmed into legacy 2,048-character prose handoff. A retry stops at its declared bounds or when repeated structured output shows no progress.
Named checks are owner-managed commands, not plan text. Configure them in
Settings → Named checks at global scope or Settings → Project → Named
checks. Both scopes use a compact inline list with Name, Command,
Scope, and Actions. Use Add check, Edit, and Save checks.
Project definitions override global definitions with the same name; other global
checks show as Inherited. Use Override to create a Project copy, or
Remove override then Save checks to inherit the global command again.
Agents can discover names only; they cannot read or write commands. Reference a
check as check:<name> in a plan. Unknown names reject launch admission, and a
required check failure fails the step or run according to its On failure
edge.
Check output is untrusted and captured with bounded size, timeout, cleanup, and queue limits. The runner permits two active checks and 32 waiting checks by default. Its 60-second default timeout begins when the child process starts, not while it waits in the bounded queue; caller cancellation removes a queued check or stops a running one. The default 1 MiB capture cap covers only combined standard output and standard error, not files a check writes in the Project. Checks do not inherit environment variables whose names indicate credentials, sessions, or tokens. Named checks currently require POSIX process-group support. On Windows, a launch that references a check is rejected before workers spawn with a platform diagnostic. This capability is not all-platform support and does not defer failure until completion.
Infer plan from goal: a second step#
Infer plan from goal lets the Orchestrator write the plan from your goal. Try it after you have finished a run with Plan provided in goal. The Orchestrator needs to be able to hand its plan to Zana, and how it does that depends on the Squad's launch mode.
- CLI Agent. The Orchestrator writes the plan as a file in a
.zanafolder. Zana reads that file when the Orchestrator goes idle, checks it with the same rules as above, and starts the run. The file is namedexecution-plan-<run id>.md. - Modern. The Orchestrator registers the plan with one
execution.plan.registercall. No file is written.
For this to work the Orchestrator must be allowed to do that. On CLI Agent, its
Persona must be able to write files. A Persona is treated as unable to if it
denies Write or Edit, or if its permission mode or Execution state is
plan, or its Codex sandbox is read-only. On Modern, it must not deny the
plan-register tool.
If it cannot, Zana refuses the launch with ORCHESTRATOR_CANNOT_PLAN:
"ORCHESTRATOR_CANNOT_PLAN too, and it defaults to Plan provided in
goal when its Orchestrator cannot plan. The fix is to use Plan provided in
goal, or to give the Orchestrator a Persona that can write.
If the plan does not arrive#
On CLI Agent, if the plan file is missing or invalid, Zana sends the
Orchestrator a short reminder. It names the full (absolute) path to write to,
for example "no plan file found at <path>". The path is absolute because the
Orchestrator can be working in a different folder from the one Zana reads. The
first instruction at the start of the run also names this absolute path.
Reminders are limited in number. If the plan still does not arrive, the run
fails instead of waiting forever.
The plan file is kept across retries. If a run has no registered plan and can still be relaunched or resumed, Zana leaves the plan the Orchestrator wrote in place when the Orchestrator exits. The next attempt reads the same file. If a resumed Orchestrator remembers writing a plan but none was registered, it is told that no plan was registered and to follow the kickoff again.
Recovery buttons are in Squad details. See Watching a Squad.
Project Squads#
A Squad can live inside a Project, so it travels with the Project's files.
Put a JSON file in the Project at .zcc/teams/<id>.json. Name the file after the Squad's
id. Zana reads every .json file in the folder and uses the id inside it.
It watches the folder, so new files appear on the Squads page with the
Project source.
{
"id": "feature-squad",
"name": "Feature Squad",
"orchestratorPersonaId": "builtin:orchestrator",
"slots": [
{ "personaId": "builtin:software-engineer", "quantity": 2, "label": "Engineer" },
{ "personaId": "builtin:reviewer", "quantity": 1, "label": "Reviewer" }
],
"defaultProjectId": "real-project-id",
"initialPrompt": "Break goal into tasks and integrate results."
}id,name, and a list ofslotsare required. Each slot needs apersonaId.quantityis clamped to 1 to 16.- The other editor options are saved as
transport(CLI,MODERNorCALLER; leave it out for Use default),worktreeIsolationandroutingEnforced(trueorfalse),worktreeOnComplete("leave","merge"or"delete"),retainOrchestrator,defaultPlanning(inferorprovided),launchApproval(directorreview), andisDefault. - A file that is not valid JSON, or is missing a required field, is skipped without a message.
- Whether a Persona exists is checked when you launch, not when the file is saved.
- When ids match, a Project file wins over a user Squad, and a user Squad wins
over a built-in. A Project file with the same
idas a built-in (such asbuiltin:research-squad) replaces it. - A Project file cannot lift a Review before launch set on a user Squad of the same id. Review always wins.
You cannot edit a Project Squad in the app. Open it and use Duplicate to user for a personal copy, or edit the file.
Worktrees, push, and cleanup#
A worktree is a separate checkout of your Project on its own branch. A Squad
run that uses one works there instead of in your working folder. Turn it on
with Worktree isolation (see above). Squad worktrees are created inside
the Project, under .worktrees/, each on its own branch whose name starts with
zcc/. Squad details shows the path and branch under Retained worktree
when a run keeps one.
Worktrees need a local Git Project. If the Project is remote, a quick-agent Project, or not a Git repository, the run works in the Project folder instead. The Inbox shows Squad ran in the project folder: "Worktrees need a local Git project, so this squad worked in the project folder. Its changes are in your working copy." If Zana tries to create the worktree and fails, the Inbox shows Squad worktree unavailable and the run uses the Project folder.
What happens to the worktree when a run completes is set per Squad under When a run finishes (see above):
- Keep worktree leaves everything in place: commits, uncommitted changes and untracked files. This is the default.
- Merge everything into base branch, then remove works only on a completed
run. Zana commits any uncommitted and untracked changes in the worktree, merges
the branch into the base branch, removes the worktree, and deletes the merged
branch. Your base checkout must be clean and on the recorded base branch.
New files Zana itself writes under
.zcc/(its own activity records) do not count as changes..zana/holds Zana plan handoff files and is never committed. If the checkout is not clean, or the merge conflicts or fails, Zana keeps the worktree and deletes nothing. The automatic commit may stay on the Squad's branch. If the merge succeeds but Zana then cannot remove the worktree or delete the branch, your changes are already in the base branch and the leftover worktree or branch stays in place. Zana's own.zana/plan files are never committed. Everything else in the worktree is committed, including local notes, so choose Keep worktree if it may hold files you do not want in your Project's history. If a commit hook rejects the automatic commit, Zana keeps the worktree. - Delete worktree and branch is destructive and works only on a completed run. Zana removes the worktree and deletes its branch even if they hold uncommitted changes, untracked files or commits that were never merged. This cannot be undone. Use it only for Squads whose results you read from Squad details and do not need as files.
Failed and stopped runs keep their worktree whatever you choose. Zana does not delete the base branch or your Project's current branch.
When Zana keeps a worktree, the Inbox shows Squad
worktree retained: "Execution <path>. Open Squad details to inspect recovery options and manage the
retained worktree."
In Squad details, a Retained worktree section shows the path and branch. It has four buttons:
- Instruct an agent starts a follow-up agent in the worktree. Write the instruction in the box first. You can pick a Follow-up persona from the Squad's roster. The default is "Squad coordinator (default)".
- Leave worktree keeps the checkout and ends the pending choice. The section then says "Worktree left by user. No further lifecycle action is pending."
- Delete worktree removes it, after a confirmation that says it cannot be undone. Zana refuses to delete a worktree with uncommitted changes. If it has commits that are not merged, you are told to use the next button.
- Force delete unmerged work removes the worktree even if it has unmerged commits or uncommitted changes. Both are lost, and this cannot be undone. The confirmation dialog says so. Do not choose this unless you are sure nothing in the worktree is needed.
Zana does not delete a worktree you created yourself and pointed the run at.
Nothing is removed unless a completed run's When a run finishes setting is Merge or Delete, or you click a delete button. If you are not sure, keep Keep worktree (the default) and choose Leave worktree.
Pushing and pull requests#
A generated managed worktree blocks git push while its run is active unless
the effective push capability is enabled in launch options or plan ## Launch.
The guard is default-deny and no environment token bypasses it. After the run
ends, its retained zcc/<slug> branch can be pushed normally.
Zana core does not open pull requests and has no delivery phase. A plan can run its own Git and provider tooling after push is explicitly enabled; provider integration remains an extension or agent capability, not a core PR feature.