Commands and status
1. Commands
Use /delegate in Pi's TUI to open the keyboard-first editor; Alt+G opens the same editor when available. The editor requires TUI mode, while these arguments also work in other modes:
| Command | Effect |
|---|---|
/delegate | Open the keyboard-first selector. |
/delegate off | Disable execution-delegation guidance; an enabled Advisor stays active. |
/delegate normal | Enable balanced delegation guidance. |
/delegate aggressive | Enable delegation-first guidance. |
/delegate orchestrator | Delegate all transferable execution while the main agent keeps ownership. |
/delegate status | Show the effective session state. |
/delegate reset | Turn delegation and Advisor off for the branch. |
/delegate advisor off | Silence consultation and keep its model. |
/delegate advisor on | Enable consultation even with delegation off. |
/delegate advisor with-delegation | Keep the default coupling to active delegation. |
/delegate advisor level off|standard|strict|guard|default | Set the branch Advisor nudge level; default clears it. |
/delegate advisor level global off|standard|strict|guard|default | Set the global Advisor nudge level; default clears it. |
/delegate advisor level model off|standard|strict|guard|default | Set the level for the current main model; default clears it. |
/delegate advisor context composed|manual|default | Set who writes the consultation context for this branch. |
/delegate advisor context global composed|manual|default | Set it in the shared file every session reads. |
/delegate context off | Stop ContextShunt work for this branch. |
/delegate context observe | Record what enforcement would block without changing calls. |
/delegate context enforce | Enforce recognized budgets and bounded recovery. |
/delegate context status | Show the effective ContextShunt state. |
/delegate context allow TOKEN MAX_LINES MAX_BYTES | Approve the next matching blocked read once. |
/delegate vision [2|3] PROVIDER/MODEL | Set a Vision entry; remove clears it. |
/delegate visual-design 2|3 PROVIDER/MODEL | Set Visual Design entry 2 or 3; remove clears it. |
/delegate writing [2|3] PROVIDER/MODEL | Set a Writing entry; remove clears it. |
Optional-role entries fill in order too, and the first Visual Design entry is edited in the panel because it shares the legacy uiDesign key in the delegation document.
The panel offers a row per entry too: Visual Design 2, Visual Design 3, Vision, Vision 2 and Vision 3. Each row appears only once the entry before it is configured, resolves its model with the same searchable selector, and offers Remove entry (global) as its first choice, which closes the gap so the entry behind it moves up. These rows are global, not session settings, because the entry lists live in delegation-policy.roles.json; entry thinking is still edited in that file. Choosing a model the host reports as unable to read images still saves, and the panel says so at the moment of choosing. A slot number is only 2 or 3, so vision 1 … and visual-design 1 … are rejected: entry 1 is written without a number, and for Visual Design it is the panel's row. While the branch owns a family's first slot (session.uiDesign or session.vision), every entry command for that family is refused rather than saved: the command writes the shared file, and a branch value would otherwise be persisted as the global default. remove clears the named entry and closes the gap, so the next entry moves up into that slot with its own thinking policy.
Advisor configuration also works without the panel:
text
/delegate advisor launch role|tool
/delegate advisor level off|standard|strict|guard|default
/delegate advisor level global off|standard|strict|guard|default
/delegate advisor level model off|standard|strict|guard|default
/delegate advisor context composed|manual|default
/delegate advisor context global composed|manual|default
/delegate advisor 1|2|3 model PROVIDER/MODEL
/delegate advisor 1|2|3 model remove
/delegate advisor 1|2|3 model inheritEntries fill in order: configure entry 1 before entry 2, and entry 2 before entry 3. Removing entry 1 removes all; removing a later entry moves the next one up with its profile. model inherit returns the whole list to global inheritance; an explicit list replaces every entry. Advisor thinking has no command: /delegate advisor N thinking only reports that it is automatic.
/delegate advisor level without a scope sets the branch, global writes delegation-policy.advisor-level.json for every session, and model writes that file's entry for the current main model, refused when the main model cannot be named. default clears the value at the scope. /delegate advisor context chooses composed, where the extension writes the consultation context, or manual, where the main agent writes the question and the brief; see what a consultation sends.
The context mode has the same two scopes as the level: the bare form appends an entry to this branch, and global writes delegation-policy.advisor-level.json for every session. default clears the value at that scope. global is not a mode value, so the two forms cannot be confused. A branch that records its own mode keeps it, and a file write the branch overrides says so when it is reported.
There is no separate off shortcut: run /delegate off or choose off in the editor. Quick commands write the session branch directly. Reset to off only changes the draft until Apply.
2. Edit the panel
The settings are grouped in six sections, shown one at a time so the panel stays short: Delegation (intensity, preference and the three ordinary roles), Extras (Visual Design, Vision and Writing), Context, Thinking, Advisors and Guard. The line under the title names every section and brackets the current one. Under it, one line summarizes the effective intensity, the preference behavior and which ordinary roles are enabled. Each setting occupies one row with its effective value, the four actions sit on one bar under the list, and a single hint block explains the focused row or action and reports its built-in, global, and session sources.
Move with Up and Down, which cross from one section into the next; Left and Right jump to the previous or next section, and move along the action bar when the focus is on it. Press Enter or Space to edit. Every model field — Small, Medium, Large, Visual Design, Advisor — starts with two pinned keyboard-selectable rows: Use global default, described as an exact reference, disabled, or not configured, and Disable for this session. A configured Advisor's selector adds a third pinned row, Content filter: none or cyber, on (softens security briefs), which toggles that slot's filter flag and leaves the selector open. The selector shows the model ID first and [provider] last, fuzzy-searches provider, model ID, and display name, and shows at most 10 rows; Page Up and Page Down move through longer results. When Pi supplies public model metadata, the selected row can show name, API, reasoning support, context window, and maximum output; that metadata is transient and never saved.
The thinking rows — Small thinking, Medium thinking, Large thinking and Visual Design thinking — show the effective policy as unset, a level such as high, or an inclusive range such as low..high. Editing one offers Use global default, Unset for this session (no policy), Fixed level…, and Range (min–max)…; a range asks for the minimum and then for the maximum, and the maximum list never goes below the chosen minimum. Both level lists contain only the levels the role's configured model supports. When the role is disabled or not configured, or its model is not selectable, the panel states the reason and offers only the unset actions. Fixed and range are distinguishable from their text, not only from colour.
The Advisor rows are Advisor mode (inheritance, off, on, with-delegation), Advisor launch (role or tool), Advisor nudge (standard, strict, guard or off) and Advisor 1. Advisor nudge reads for example Advisor nudge standard, Advisor nudge strict · session when this conversation set it, or Invalid · standard when its file cannot be read, because the level then falls back to standard and stays active. Advisor 2 appears once Advisor 1 exists and Advisor 3 once Advisor 2 exists. Choosing an anthropic model in one of them asks for its profile, Standard or Anthropic auth, and the row shows · Anthropic auth when the opt-in is set. A model whose provider an extension supplies asks for its provider extension instead, and the row shows · <package> <version> once admitted. Advisor thinking has no row: role launch lets the main agent choose it per run, and tool launch picks it automatically.
Three guard rows follow them: Guard consult first (on or off, user scope only), Guard reviewer model (the optional second opinion, None until you choose one) and Guard reviewer mode (observe or enforce, and it refuses to leave observe before a model is chosen). The Advisor nudge configuration lists what each row says and when a mode can act.
The panel keeps one explicit draft:
- Apply to this conversation or
Achanges this conversation only: it appends entries to the current branch and never writes a shared file, whatever row changed. A row this conversation sets ends in· session. An Apply with nothing to write says No changes to apply. - Save as defaults or
Sis the only action that writes the shared files. It states what it would promote from this conversation and which files it would write, and writes nothing untilY; any other key answers that nothing was written yet, andEscapekeeps editing. After it saves, this branch inherits the new defaults. - Admitting a provider extension is stored for every session where you choose it, after its own confirmation, and is never part of Apply.
- Reset to off makes an off draft with ordinary roles inherited until Apply.
Escapereturns from a field editor. Closing a modified draft asks whether to Keep editing or Discard changes.
If a global save cannot be completed, the panel says so and never claims that nothing changed when a file did change: Could not save global defaults. Nothing was changed on disk., Partially saved: the delegation file and the Advisor companion may disagree., or, when the outcome could not be confirmed at all, a prompt to check /delegate status before retrying. See compatible saves.
3. Keep the terminal large enough
The editor blocks editing below 26 columns or 9 rows and displays:
text
Terminal too small.
Resize to continue editing.At or above that size, the action bar and at least one row remain visible. The panel never falls back silently to an unbounded or alternate editor.
4. Apply changes
The policy block is rebuilt before each LLM request, so a change made during a turn applies to that turn's next request. A request already in progress keeps the state it started with, and subagents already launched in role mode remain host-owned; tool groups cancel on detected authorization changes; turning everything off removes the block when the extension next applies its policy.
The next user turn also carries a request-only notice of changed role assignments and settings. Changes made before that turn are grouped; cancelling, saving identical values or reverting to the previous configuration produces no notice. A change during a running turn waits for the next user turn's notice, while the policy itself still updates before the next request. Turning both axes off reports that shutdown once and then injects nothing. The notice is not saved in the conversation, does not start a turn, and does not prove that the model followed it. See the configuration notice and its consumption limits.
Before every delegated launch, use the selected exact provider/model base and that role's thinking policy. With no policy, choose the level for that task from demand, difficulty, quantity, risk, review cost, and the selected model's capabilities. With a fixed policy, use exactly that level. With a range policy, use a level inside its inclusive bounds. A bound policy is never inherited by another role or by the main agent.
5. Read the footer and status output
The footer revalidates after all session-start handlers finish, using Pi's public post-start discovery event. This clears an earlier D:ERR when another extension makes the configured model available later in startup, without waiting for a message or menu action. A model that is still missing or unusable keeps D:ERR. The event order was checked in Pi 0.87.1 and 1.1.0; later availability changes still refresh on the next request or menu action.
| Label | Meaning | What to do |
|---|---|---|
D:OFF | Delegation is disabled. Incomplete defaults remain inactive. | Choose an active intensity only when the roles are ready. |
D:NORM | A valid normal configuration is active. | Delegate only with a clear expected benefit. |
D:AGG | A valid aggressive configuration is active. | Delegate suitable substantial work unless coupling or overhead dominates. |
D:ORCH | A valid orchestrator configuration is active. | Delegate all transferable execution first and retain final acceptance. |
D:ERR | Execution-delegation settings are invalid; a valid Advisor can remain. | Inspect /delegate status and correct the role or thinking policy. |
A:OFF | No Advisor guidance is injected. | Enable the mode or configure a model if consultation is wanted. |
A:ON | All configured advisors are valid. | Consultation sends a host-composed context or your own brief, never the conversation, with cost. |
A:PART | Some advisors are valid; consult only those entries. | Correct or remove the other entries. |
A:ERR | Advisor is enabled but unusable, so only consultation is unavailable. | Read the diagnostic and correct the Advisor model. |
/delegate status keeps stable tokens and reports exact effective references and sources, for example:
text
D:AGG intensity=aggressive (session) | preference=standard (default) | small=provider/example-small (global)
medium=provider/example-medium (global) | large=provider/example-large (global) | ui-design=provider/example-visual (global)
advisor-mode=with-delegation (global); A:ON | advisor=provider/example-advisor (global) | advisor-launch=tool (default)
advisor-level=standard (default) | advisor-context=composed | guard-consult=off (default) | guard-reviewer=off (none) | main-model=provider/example-main
advisor-1=provider/example-advisor; profile=pi-delegation-policy.advisor; reading=off; filter=off (global)
thinking-small=fixed:high (global) | thinking-medium=range:low..high (session) | thinking-large=unset (default) | thinking-ui-design=unset (default)
context=off (default) | context-reader-enabled=false (default) | context-reader-role=small (default)
context-reader-answer-max-bytes=8192 (default); executor checked only on invocation
launches=41 (Small 12, Medium 0, Large 4, Visual Design 0, Advisor 25)The source is default, global, or session. The optional role tokens ui-design= and advisor= keep their order. advisor= repeats the first configured entry while advisor-N= reports each entry once with its profile and whether that profile reads, so a stored reading flag the slot cannot use is reported as reading=off instead of claiming a read that never happens, and thinking-ui-design= closes the thinking group. advisor-level= carries its own source, and it can be session, model, global, reminder or default. advisor-context= reports composed or manual. guard-consult= reports the user's own guard switch as on (global), off (default) or off (invalid). guard-reviewer= reports the reviewer's stored mode and model as off (none), observe (<provider/id>), enforce (<provider/id>) or off (invalid) when the same companion cannot be read. The token says nothing about whether the model can act here: the guard rows in /delegate report that. main-model= names the exact provider/id key the per-model level is looked up by, or unknown when the host cannot name it. Each thinking policy is reported as unset, fixed:<level>, or range:<min>..<max>: the token says what the policy allows, not which level a launch used, and that per-run choice is never stored. unset (session) means the branch keeps no policy even when global defaults set one.
A:ERR means an enabled Advisor cannot be used; it does not affect valid delegation or an authorized ContextShunt reader, and D:ERR does not suppress a valid enabled Advisor. With Advisor off, an unusable companion is reported as a diagnostic in details= and the footer keeps A:OFF. Read errors by axis for the exact cases.
launches= closes the line with the one field that does report launches: the guard's own records, counted by role, for the current log and its rotated predecessor. It prints launches=<allowed calls> (<role> <count>, …) with every configured role, so a role that never ran stays visible at zero next to the ones that did; a refusal is counted apart as ; refused=<n>, and a log without any launch event reads launches=none recorded. Two naming rules keep the line readable: an Advisor row at zero needs an entry configured and its mode active, so advisor-mode=with-delegation with delegation off leaves it out unless the log already records an Advisor launch, and unattributed counts a child the guard could not match to an enabled role: no child object, no model, or a model no enabled role uses.
The count is best-effort evidence: it says which role a launch was attributed to, not which model ran, whether the child finished, or how well it followed the brief. The D: and A: labels are configuration only and prove nothing about a launch.
A sanitized restoration warning can accompany D:OFF when the latest stored session state is invalid or from a future schema, including a malformed thinking entry; it neither enables injection nor reveals session content.
Consult Advisor tool
consult_advisor({ question?, brief?, evidence? }) is always registered but unavailable outside tool launch mode or without an enabled valid advisor. It needs no arguments: question, brief and evidence are all optional. In the default composed context the extension assembles what the Advisors receive, and in manual context the main agent writes the question, plus the brief for a first consultation. It never receives the conversation. A later call in the same task continues each thread and carries only what changed. What a consultation sends lists the sections, the caps and the exclusions, and limits and privacy states the concurrency limit, the cancellation rules, and the retention.
Status adds advisor-launch=, advisor-level=, advisor-context=, main-model= and one advisor-N= token per entry, with its profile, whether that profile reads, its filter=cyber|off flag and its source. In tool mode policy text asks for this tool, not the generic subagent launcher, whatever the session uses. See privacy for the local metadata log.
6. Use ContextShunt safely
Choose Context protection in the panel or use /delegate context observe before /delegate context enforce. off performs no ContextShunt work, observe changes neither the tool call nor its result, and enforce blocks only a recognized declared excess. When a known successful text result is too large, enforcement preserves the original in a private temporary artifact and returns a short recovery instruction; if preservation fails, the original result stays unchanged.
/delegate status reports the reader settings as context-reader-enabled=, context-reader-role=, and context-reader-answer-max-bytes=, each with its source, and notes that the executor is checked only on invocation. /delegate context status reports the same settings as context-reader=enabled:<on|off>, role:<small|medium|large>, and answer-max-bytes:<bytes>, then adds context-limits=, context-coverage=, and context-events=, without paths or preserved text. Nothing starts the reader from a hook.
ContextShunt registers two normal tools. context_shunt_delegate takes an artifact ID, one question of at most 2048 UTF-8 bytes, and the thinking level for that call. context_shunt_recover reads a receipt back as one bounded line or byte range. The reader contract states the answer shape, the citation limit, the caps, and the failure codes. Both tools are always registered, and each call decides its own availability: with the reader disabled, with delegation off, with an effective mode other than enforce, with an invalid configuration, or with the reader role's model unavailable, context_shunt_delegate returns output-unavailable and no answer. The executor needs stable pi-subagents SemVer >=0.76.1, with no upper bound, and the strict launch contract; prereleases and invalid versions are rejected. An absent or incompatible executor fails closed with reader-unavailable.
A blocked call can be narrowed, or a real user can approve its matching next call once through the token shown in the block message. The exception is tied to that tool call and input snapshot, requested line range, real-result byte maximum, and a one-minute expiry; model text cannot grant it.
7. Diagnose D:ERR
- Run
/delegate statusand read the reported role and detail. - Check that every ordinary role has an exact current-scope model or is explicitly disabled, and check Visual Design if it is configured. Diagnose Advisor separately under
A:ERR. - Confirm each enabled model is authenticated, available, and in scope; the extension has no model fallback.
- Read the
thinking-<role>token of the role in the detail. A policy that names a level the role's model does not support produces this error; change the policy or the model. - Apply the corrected draft, then check
/delegate statusagain after the next LLM request.
A malformed thinking entry is not part of that list: it invalidates its document, so a main delegation document fails closed while an Advisor companion disables consultation only, and the sanitized warning in section 5 applies instead.
See configuration for inheritance and policy meanings, and limits and privacy for the fail-closed boundary.