bandicot
Bandicot Docs
Chapter IIIWork · Verified core

Plans, subagents and the canvas

Follow and edit an agent's plan, add your own subagents, see what the agent's tools can do and where they stop, and use the shared canvas.

Verified core. Implemented and tested as a foundation; not necessarily a complete public journey.

On this page

The plan

The Plan pane shows the steps the agent is working through, and you can add, edit, reorder or drop steps yourself.

Switch between Workspace, the plan every agent in the workspace shares, and Agent, this agent's own plan, which outranks the workspace plan. Each tab shows how many steps it holds. When the agent's own plan has steps, Move to workspace plan makes it the plan every agent in the workspace shares.

Each step reads Done, Working on it, Waiting or Dropped. Click its mark to move it on: Waiting becomes Working on it, then Done, and a Done or Dropped step goes back to Waiting. The mark's tooltip names the move: Start this step, Mark this step done, Reopen this step or Restore this step. Point at a row to show the arrows and the remove mark. When another agent claimed a step, the row names it.

Click a step's text to edit it. The form has Step title and Description (optional); Enter saves and Esc cancels. Hold ⌘ to show every step's description, and ⌘-click a step to add a new step right after it, with a description if you like.

A step can carry a short list of tasks under it. A step cannot be marked Done while a task is open: its mark is dimmed and the tooltip says how many tasks are still open. A thin bar above the steps counts the finished ones, with live beside it while the agent is working.

/plan and /super-plan write plans for you; see the command list. With Continue down the plan chain on in AI Gateway under Agent, then Capabilities, the agent moves to the next step without stopping. Off, it stops and reports so you start the next step.

  1. Open the Plan pane from the View menu (Plan), or from the rail beside the agent.
  2. Type a step in Add a step… and choose Add.
  3. Click a step's mark to start it or mark it done.

If it goes wrong

Agent is greyed out, with the hint Open an agent to edit its own plan.
Open an agent first. An agent's own plan belongs to one agent.
It says Planning… the plan appears here as soon as the agent commits to steps.
The agent is still working it out. Wait, or write the steps yourself.
It says No plan yet. Write the steps yourself, or let the agent lay them out.
Nothing is planned. Add a step, or ask for a plan with /plan.
A step's mark is dimmed and will not move to Done.
The step still has open tasks. Finish them, or ask the agent to; the tooltip says how many are left.

Queue the next plan

Choose New plan under the current plan to line up more work; the agent sees a queued plan only once the plan above it is finished.

Queued plans sit in a Queued plans list under the current plan, each as a collapsed row with its step count. Open a row to edit its steps just like the current plan, or use the bin button on the row to delete that plan.

A queued plan stays out of the agent's view until the one above it is done, so you can write the next piece of work now without the agent starting it early.

  1. Open the Plan pane and choose New plan under the steps.
  2. Open the new row under Queued plans.
  3. Add its steps in Add a step….

Mission progress

Press ⌘K and choose Mission progress to see where the current run stands: its objective, state, progress and any blocked steps.

The window starts with the run's objective. State and Progress say where it is. Frontier lists the steps in play now, each with a mark and a short note, and Blocked lists steps that cannot move, with the reason. Refresh reads it again.

It reports what the plan and the agent say. It does not prove the work is correct; for that, run your checks.

If it goes wrong

It says No plan or graph frontier published yet.
The agent has not written a plan yet. Ask for one with /plan, or add steps in the Plan pane.
It says Mission state is not available.
There is nothing to report yet. Open an agent, give it some work, then open Mission progress again.

The Agents view

The Agents view, under View then Agents, shows the helpers a turn started, each with its task, its status and an Activity button for its live log.

These are short helpers inside one turn. For separate agents that report back and show in the sidebar, see subagents.

If it goes wrong

The view says No agent graph.
The run started no helpers, or reported none. Helpers a turn starts also show in the agent as tool calls.

Your own subagents

Save a markdown file in .bandicot/agents for one workspace, or in ~/.config/bandicot/agents for all of them, and the agent can hand a job to that helper by name.

A subagent is a helper the agent gives one job, in a session of its own. Only its final report comes back into your agent, so a long search or a side investigation does not fill your context. With no definition, the agent uses a general helper. If a workspace file and a personal file share a name, the workspace file wins.

The file starts with a short header between two lines of three dashes. name is optional; the file name without .md is used when it is missing. description says what the helper is for, and the agent reads it when choosing. tools is a comma-separated list of tool names the helper may use; leave it out to allow whatever the agent itself can use. model names a model Bandicot knows; a name it does not know is ignored. Everything below the header becomes the helper's instructions.

A helper runs on the model named in its file. With no model line it runs on the model you picked for subagents under Helper models in AI Gateway › Agent, and with no pick on the agent's own model. A helper can never use a tool its parent does not have, so a file cannot grant itself more. A helper does not ask you questions, and it does not start helpers of its own. Plugins can also bring subagents; yours replace a plugin's of the same name. For separate agents that report back, see subagents.

  1. Create .bandicot/agents in your workspace, or ~/.config/bandicot/agents.
  2. Save a .md file in it with a description and your instructions.
  3. Ask the agent to give the job to that helper by name.

If it goes wrong

The agent says unknown agent with a name.
No file defines that name. Check where the file is, that it ends in .md, and the name line in its header.
the requested subagent model is unavailable; no other model was used
The helper's file names a model that is not connected or not switched on. Bandicot does not swap in another one. Remove the model line, or name a model you have connected and enabled.
no provider credential for the subagent
The helper's model belongs to a provider you have not connected. See Connect a model.

The canvas

The Canvas is a board where you and the agent lay out cards, notes, tables and drawings; choose Enable editing to change it yourself.

Open it from View then Canvas. Once editing is on, use Draw freehand, add cards with + markdown, + text, + html, + database or + diagram, or pin a workspace file with Pin file…. Select two or more cards to Group them, and Ungroup splits a group again. The line at the right of the toolbar counts the cards and reminds you of the mouse moves.

Right-click empty space for a menu: Add markdown, Add text, Add HTML, Add database and Add diagram put a card where you clicked. With cards selected the menu adds Group (two or more), Ungroup and Delete.

Drag a card's corner to resize it. Everything else is in the table.

For the agent to add cards, the Canvas tool must be on for it; it is off by default to save prompt space. AI Gateway under Agent, then Capabilities, shows which tools the agent has.

Moving around the canvas
Do thisTo get this
Drag empty spacePan the board.
ScrollPan the board.
Hold Space and drag, or drag with the middle buttonPan, even when you start on a card.
⌘ and scrollZoom.
Hold Shift and drag across empty spaceDraw a box and select every card it touches.
⌘GGroup the selected cards (two or more, editing on).
⇧⌘GUngroup the selected cards (two or more, editing on).
Delete or BackspaceRemove the selected cards (editing on).
EscClear the selection and close the right-click menu.

What the agent can do: its tools

The agent works through a fixed set of tools, and AI Gateway under Agent, then Capabilities, lists which ones it has.

You see each call in the agent as a row, and shell runs also appear in the Terminal pane. A tool that returns a lot saves the full text to a file and gives the agent the start, so the agent reads on from there. Diagrams and Canvas start off.

Whether a call needs a check is a separate matter; see Approvals. A few switches change how the agent behaves: Reach outside the workspace, Continue down the plan chain, Start subagents without asking, Context lookup, Turn updates and Browser access.

The agent's tools, as Capabilities names them
In CapabilitiesWhat it does for the agent
Read filesReads a text file, or the text of a web page address, with numbered lines, in stretches. Directories and very large files are refused.
Write filesCreates a file or rewrites one in full, making directories as needed. It refuses when the file changed since the agent last read or wrote it, and when the text would save a masked key.
Edit filesReplaces exact text in an existing file, in one place or in several places in one go. See Several edits at once.
Run commandsRuns a shell command in the workspace, inside the sandbox. A command can run in the background; the agent gets a job, and the end arrives later as a message with the exit code and the tail of the output. A command that cannot be read as shell, or that would clearly wipe the wrong place, is refused before it runs; see shell checks.
Program (JS)Runs a short sandboxed script that calls other tools. See the program tool.
Search contents, Find files, List filesSearch text in files, match file names with patterns such as **/*.ts, and list one directory. Searches skip directories such as .git and node_modules and whatever the workspace's .gitignore leaves out, and say how many they skipped.
Helpers, SubagentsHand one job to a helper, or start whole subagents beside the agent and message them. See Your own subagents and subagents.
MemorySaves, recalls and forgets notes. See Memory.
Past conversationsSearches and reads earlier agents in this workspace, including earlier parts of an agent that continued in a new one. Read-only, and secrets are masked.
Web and browserSearches the web, reads a page's text, finds text in it and drives your own Chrome through the Bandicot extension. Safari, Preview and Quick Look have their own tools. Pages on this Mac or your local network open only when you typed the address yourself.
Computer use, Agent machineLooks at and controls Mac apps, on your Mac or on an agent machine of its own. See Terminal and computer use and Agent Macs.
Team channelsLists your team channels, reads recent messages and leaves a draft. It never posts; a draft is sent only if you post it. See Team channels.
Decisions tool, TypeSafe checksAsk the Decisions model a typed question about facts the agent supplies. See Decisions.
Image generation, Rack modelsDraw pictures, or run any model you set up in the Rack, such as speech or ranking. Provider models spend from your account and show in your usage.
Diagrams, CanvasDraw a diagram in the agent, or read and edit the board. Both are off by default because their guidance costs prompt space.
History status, History log, Compare versions, Read a versionRead this workspace's saved history in Versions.
Restore a file, Undo a restore, Describe the change, Use only VersionsRestore one file after a preview, undo a restore, describe the current change, or move a workspace's git history into Versions or back. Previews come first, and a history move happens only after you confirm in the app window.

If it goes wrong

old_string not found in a file.
The file is not what the agent expected. Nothing changed. It reads the file again and copies the lines exactly, and the message names the closest lines.
An edit fails again and the reply ends with retry from this text (fresh read; failure count reset): and the file's lines.
That is the second failed edit in a row on the file, so Bandicot attached a fresh numbered copy. The agent copies from it and tries again. You do nothing.
An edit of several places says old_string not found in original; nothing changed, is ambiguous in original; nothing changed or batch match intervals overlap; nothing changed.
The whole call was refused and the file is untouched. The agent fixes the named change, or splits it, and sends the call again. See Several edits at once.
A read returns file unchanged since the earlier read with a turn number and a fingerprint instead of the file.
The agent already has this exact text earlier in the agent. It can use that, or read again with force to get the lines a second time.
bash verifier (syntax), bash verifier (static) or bash verifier (model) and a reason.
Bandicot checked the command before running it and did not run it. See Checks before a shell command runs. The agent rewrites the command; nothing ran.
cannot write a file: it changed since you last read or wrote it.
Something changed the file after the agent looked at it. Ask it to read the file again, then write or edit.
This text holds a masked key.
Bandicot hides keys it finds in files from the agent, so rewriting that line would save the mask in place of your key. Ask the agent to edit around the line, or change the key yourself.
reaching outside the project is disabled and a settings path.
Turn on Reach outside the workspace in AI Gateway under Agent, then Capabilities, or copy what the agent needs into the workspace.
cannot write or cannot edit a file: claimed it; message it with the sessions tool instead.
Another agent of yours owns that file for now. Ask the agent to message that subagent instead of editing it.
the session search budget is used up.
An agent gets a limited number of web searches. Start a new agent, or give it the address of a page to open.
This page needs human verification.
The site wants a person. Open the page in your own Chrome or Safari, finish the check yourself, then ask the agent to carry on.
The agent cannot reach Chrome.
Open Chrome, check that the Bandicot extension is on, and look for Chrome connected in Settings › Computer. See Connect your own Chrome.

Several edits at once

The agent can change many places in one file with a single edit, and the call either applies every change or leaves the file untouched.

One edit call can carry a list of changes, each an exact old text and its replacement. Every change is matched against the file as it stood before the call, not against what the other changes produce, so the order of the list does not matter and one change cannot land inside text another one wrote.

The call is all or nothing. If any change finds no match, finds more than one match without being told to replace every match, or overlaps another change, Bandicot refuses the whole call and does not touch the file. Otherwise the file is saved in one step and the reply says how many places were replaced. The same checks as for a single edit apply: a file another agent claimed, a private place, or text that would save a masked key is refused.

After two failed edits in a row on the same file, the reply to the second one also carries a fresh numbered copy of the file, so the agent's next try starts from the real text. A read or an edit that works resets the count.

When the agent asks again for a whole file it already read and nothing changed since, the reply is a one-line note with the turn and a fingerprint instead of the text, which keeps the agent short. Reading a part of the file, a file that changed, or asking with force returns the lines.

What a batch of changes allows
RuleValue
Changes in one call1 to 128
Overlapping changesRefused; nothing changed
A change with no match, or several matchesRefused; nothing changed
Mixing the list with a single old and new text in one callRefused
Saved asOne write of the whole file

Places the agent never opens

The agent cannot read or write places that hold keys, sign-ins or browser profiles, and approving a card does not change that.

The list includes .ssh, .gnupg, .aws, .azure, .kube, the Google Cloud and GitHub command-line settings, .netrc, .npmrc, .pypirc, saved git credentials, shell and database history files, Bandicot's own secrets store, your Keychains and cookies, and the profiles of Safari, Chrome, Chromium, Firefox, Arc, Brave and Edge. The browser profile Bandicot makes for the agent is private too.

Shell commands run in the sandbox cannot read these places either. If the agent needs something from a private place, copy that file into the workspace yourself. For keys the agent needs to use, see Secrets.

If it goes wrong

this is a private place (keys, sign-ins or browser profiles); the agent never opens it
This is on purpose and a permission card cannot lift it. Copy the file you want it to use into your workspace.

Questions

What is the difference between the workspace plan and the agent's own plan?

The workspace plan is shared by every agent in the workspace. An agent's own plan belongs to one agent and wins where they differ.

Are the Agents view's helpers the same as subagents?

No. The helpers there live inside one turn. Subagents are separate agents with their own history that report back and show in the sidebar.

Can the agent read my SSH keys or saved passwords?

No. It refuses places that hold keys, sign-ins and browser profiles, and approving a card does not change that. See Places the agent never opens.

Why does a re-read show a short note instead of the file?

The agent already read that file in full earlier and it has not changed, so Bandicot sends a one-line note and saves context. The agent can ask again with force. See Several edits at once.

What happens when one of several edits in a call does not fit?

The whole call is refused and the file is left as it was. Nothing is half applied. See Several edits at once.

Which model does my own helper run on?

The one named in its file. With no model line it uses the model you picked for subagents under Helper models in AI Gateway › Agent, and with no pick the agent's own. See Your own subagents.

Can I add my own helper for the agent to call?

Yes. Save a markdown file in .bandicot/agents or ~/.config/bandicot/agents, and the agent can give jobs to it by name. See Your own subagents.