Deputy
Deputy supervises your sequence runs while you are away, inside limits you set, and asks you about everything else. One instance is open per machine, for one project. It holds a goal, optional instructions (at most 4,000 characters) and a charter: the decisions it may take on its own. Instructions can only narrow the charter, never widen it.
When to use it#
Use it for long unattended stretches of code-task runs, such as overnight or a
day of meetings, where most gates are routine: approving a plan that stays
within your instructions, merging a reviewed pull request, sending work back for
another pass. It is not a replacement for reviewing risky work. Anything the
charter does not grant comes back to you as a question.
What it needs#
- An activated install. There is no plan restriction in 1.4.0: any working license runs Deputy, the same license check every toryo service is held to.
- The background services. Foreman runs the
deputyservice with the rest of the stack, so there is nothing to install. - An enabled harness for its decisions. Each decision runs as a short
dispatch job on the harness and model named by
--decision-llm PROVIDER:MODEL, Claude by default. The chat on Board's Deputy screen always runs on Claude. Those jobs cost usage like any other job, and the instance shows what its decisions have spent.
Starting an instance issues it its own credential automatically, and
toryo deputy token rotate replaces it. You never paste it anywhere.
Starting it#
From Board's Deputy screen, pick the project, write the goal and any instructions, choose a preset, then adjust individual fields. Production deploys are granted only through their own checkbox. From a terminal:
toryo deputy start --project <project> --goal "<goal>"
toryo deputy status
The two presets are check-with-me, the default, and fully-autonomous. On a
machine with more than one license, an instance runs under your personal license
unless you choose a team, with Board's picker or --context. Moving it to
another license means ending it and starting a new one. A second start while
one is open exits 68.
You can pause, resume, edit and end an instance at any time. Flags and exit codes are in the CLI reference.
What it decides on its own#
| Charter field | Values | What a grant lets Deputy do |
|---|---|---|
| Plans | ask, approve-within-policy, approve | Approve a plan at its approval gate. approve-within-policy approves only a plan your instructions cover. |
| Merges | ask, merge | Merge a pull request at the merge gate, or bring its branch up to date. |
| Send-backs | ask, auto | Send a plan or pull request back for rework. |
| Send-back limit | a whole number, at least 1 | How many times one run may be sent back, by Deputy or by you, before Deputy asks you about the next send-back. Both presets set 3. |
| Retries | ask, auto | Retry a failed run its diagnosis recommends retrying, press Recheck on a Readiness withheld park CI may have cleared, or press Re-verify at the new head when GitHub moved the pull request to a new head. Re-verify re-runs review and can spend an implement attempt. |
| New runs | none, toward-goal | File new runs toward the goal. |
| Deploy | none, local, local+prod | Deploy the project locally after merges. |
| Budget | spend ceiling, max open runs, deadline | Bound everything above. Each limit can be left off. Both presets cap open runs at 3. |
| Notify | escalations, digest, every-decision | Choose which notices reach you. |
ask means Deputy reads the gate and recommends an action, and you decide.
Under either approving Plans value, Deputy approves a plan only when every question the plan asks is answered by a quote from the run's task brief, your instructions or the goal, and the plan keeps the brief's scope. The planner's own recommendation never answers a question; anything left open comes to you.
When a run fails, or sits unmoved for 2 hours, Deputy diagnoses it with a read-only job. It acts on the diagnosis only as far as the charter allows; anything else comes to you with the diagnosis attached.
New runs are filed only while open runs stay below the budget's max open runs, so a charter with no max open runs files no new runs. Each run it files still passes its own plan approval, decided under Plans. When Deputy judges the goal met, it stops filing runs, reports what it filed, and keeps finishing the runs already open.
Deploys run the project's own deploy command in your checkout,
and only when that checkout is up to date with the merge or can fast-forward to
it; otherwise Deputy asks you. local+prod deploys locally and then asks you,
because toryo has no production deploy yet. Neither preset grants it.
What it never decides#
Some limits are fixed, and no charter turns them off. Deputy always asks you about:
- a change that touches a sensitive path, from the project's list or toryo's defaults
- any permission or credential question
- a send-back once the run has already been sent back as many times as the charter's send-back limit allows (3 by default)
- any gate that arrives while an enabled harness is above 90% of its usage window, or its usage cannot be read
It also asks about any gate the charter does not grant, and any concern its own review raised. A merge additionally needs an approved review with no blocking finding, a grade above D, passing checks (or none) at the current head, and an open, mergeable pull request.
How it reaches you#
A question from Deputy arrives in your Messaging inbox, behind
the bell in Board, and as the status strip's Deputy: n waiting chip. Clicking
either one opens the Deputy screen on it. Answer the question in place, or
answer the gate itself; either way Deputy records your answer.
Notify controls the extra notices: every-decision sends one for each decision
Deputy makes, and digest sends one every 6 hours. Every decision, with its
reasoning, and every answer you gave are in the ledger:
toryo deputy ledger
A run Deputy acted on says so in Board, as Decided by Deputy: followed by the
verdict and its reasoning.
In Board#
The Deputy screen sits under Orchestration. With no instance open, it is the start form. With one open, it shows:
- the goal, with Pause, Resume, End and Edit
- a status strip of state, project, live gates and decision spend
- the ledger, newest first, with open questions pinned at the top; a question Deputy advised on carries its recommendation and summary
- the live gates, each linking to its run on the Sequence screen, and, while Deputy is deciding one, to that decision's transcript on the Dispatch screen
- a chat that acts for you on what you type
In the chat, /pause, /resume, /end and /goal <text> run without a model
turn. A standing change, such as a new charter field, is previewed and needs
your confirmation. The chat history is rebuilt from the ledger each time it
opens.
The pill in the screen header shows whether the deputy service is running.
Full command surface: CLI & contract reference.