Agent
An agent is a delegate, not an owner. It runs on your runtime through a harness (Claude Code or Codex), with the intersection of the assigner's permission and this run's sources, and one token per run.
An agent is a delegate, not an owner. Like in Linear: an issue’s owner is always a person, and the agent is whoever does one step of the work on that person’s behalf. It runs on your own runtime through an official harness (Claude Code or Codex), as the issue’s driver or third party.
| Question | Answer |
|---|---|
| What it is | The executor that works on someone’s behalf in one run; not an account, not an owner |
| Who it belongs to | Each run acts for the person who assigned it (requested_by); an automatically assigned run acts for the person whose status change set it off |
| Who can change it | Whether it is the driver or the third party, and which model group it comes from, is set in the Issue Type; what it can touch comes from the assigner’s permission and this run’s sources |
| Neighbours | Is the driver or third party; runs on a runtime; is the computed assignee of an Issue during AGENT’S TURN |
Whose identity an agent works with
An agent has no account of its own. Each run’s permission is the intersection of two things:
- The assigner’s permission: what the person who assigned the run can see and edit. For a run assigned by Automation, the assigner is the person who started or continued the issue, or, when one run hands the issue on to the next, the person the previous run acted for;
dispatched_by: process:coordinatorrecords where it came from. - The sources chosen for this run: which content the run is authorised to read and write.
Each run is issued one token, with a dedicated MCP endpoint. The server uses that token to know which status the run was assigned for, and to check that update_issue only moves the issue along that status’s free paths (see Transition).
The audit trail records “agent on behalf of X, run Y”, and the agent enters the author fields of content and audit under that identity (recommended). An unattended agent uses a long-lived token issued by a person: limited to sources and actions, with an expiry, revocable. Today: an agent in a chat uses the machine owner’s own MCP connection; narrowing the agent’s Bonsai authorisation per run isn’t built yet.
Where an agent runs
- Runtime: a computer of yours running Bonsai for Mac or
bonsai daemon. It connects out to Bonsai, takes runs, starts the harness locally and streams the session back. Bonsai doesn’t run agents itself and never connects to your computer. See Connecting your computer. - Harness: the official Claude Code or Codex. Bonsai’s layer is thin: the server only authenticates and forwards, every setting the harness has can be set from Bonsai, and nothing adds its own prompts to the session.
- Who may use a runtime: the machine’s owner, and members of a Group the owner authorised (within that authorisation); not someone who was merely shared a note, Project or Area. The rule was decided on 2026-10-08; the server today implements the owner only. A runtime belongs to its owner (reconfirmed 2026-11-05): it belongs to no workspace, is never copied to another workspace, and pairing is per org.
What an issue run receives: this issue, how to do this step (Bonsai’s instructions plus the type’s Extra prompt, in the <step> block, sent again at every step, not shown), the workspace (repository, branch, PR) and a Bonsai token that is valid for this run only. Note bodies aren’t pushed into the conversation by default; the agent calls read_note when it needs one.
What an agent can and can’t do
Can:
- Read the notes it’s authorised for; write code, open a PR, review a PR as this step’s instructions say.
- Change its own issue: write back
branch/pr, append to## Log, propose options under## Decisions, rewrite## You should know, and move the issue along a free path out of its status. - Hand the issue to a person when it can’t go on: it writes the question under
## Decisionsand ends the run. The issue stays in its status and becomes YOUR TURN.
Can’t:
- Be the owner.
owneris always a person and never changes. - Take a path marked needs a person, or start an issue that is in Todo. Those are yours.
- Write the issue’s
turn:line. Only the server records that an issue waits for a person. - Change Issue Types. They live in a folder starting with
_, which no agent permission can write. - Change the acceptance criteria. That’s the spec you wrote for it.
- Let text inside a note change its permissions. Note contents are data, not instructions.
Every change an agent writes into a note carries a one-line summary and waits in your Inbox until you mark it seen.
FAQ
Can an agent be an issue’s owner?
No. The owner is always a person. An agent shows up as the assignee: while the issue is on AGENT’S TURN, the assignee is the driver or the model group that does the step.
Whose permission does an agent use?
The intersection of the assigner’s permission and the sources chosen for this run.
Where are an agent’s MCP credentials stored?
With you, never in a note. An agent on a runtime uses your own Bonsai connection.
How do I trace what an agent changed?
The run record says who assigned it, whether it was the driver or the third party, and which round; the issue’s ## Log has one section per run; changes to notes show passage by passage in the Inbox until you’ve seen them.
Can two agents work on one issue at the same time?
No. One issue has at most one run at a time, because two agents can’t write to the same worktree.
Where do I change an agent’s prompt and model?
Bonsai says how each step is done; on the Issue Type page you can add an Extra prompt to a step, which follows Bonsai’s instructions. The candidate models of each model group are picked on the type page too. See Driver and third party.
Is the Gardener an agent?
Yes. The Gardener is an Area’s standing agent and still a delegate: each run works as the person talking to it, and its memory is the Area’s notes. (Being designed.)
Is an agent the same as the assistant in “Connecting AI agents”?
The same thing used two ways. Connecting AI agents is about chatting directly in a client such as Claude that reads and writes your space over MCP; this page is about one run assigned to an issue, working as the driver or the third party on a runtime.