All docs

Delegation

Let a session hand work to agents on other accounts and providers, and review what comes back.

A started session can switch to another account of the same provider, or move to another provider through a card (see Accounts, models and limits). Delegation is how work crosses providers while the session stays where it is: a session hands a task to a child agent on another account or provider on the same machine. A Claude session can ask Codex, Gemini on Antigravity, an OpenCode model, a Cursor model, a Command Code model, a GLM model on Z.ai, or a model on a second Claude account.

A child agent is a real BeyDock session. Its transcript, approvals and usage are visible. It doesn't appear in the sidebar. You open it from the parent's transcript. By default child agents can't start agents of their own. A switch under Settings › Agents allows one more level (see Choose accounts below).

Turn it on

Delegation is on by default. The switch is Settings › Agents › Let sessions start agents, and the same switch is under Home › Connections in the BeyDock row under Built into BeyDock. When it is off, sessions don't get the agent tools.

Ask for an agent

Tell the agent in plain words, for example "have Codex write the tests while you refactor". You can also type @ in the message box and pick a target from the Agents section, which lists provider, account, model and effort. BeyDock adds a note to your message with the choice. BeyDock doesn't choose models for the agent. The agent, your instructions or a skill you write yourself decide that.

To get a second opinion, ask for a comparison. The same read-only task runs on two to four targets and the answers come back side by side.

Before an agent starts, an approval card shows the whole task, the target, whether it can edit, and where it will work. Settings › Agents › Ask before starting an agent controls when this appears: Always, Only for Agents That Edit (the default) or Never. In a session set to Bypass permissions or Full access, starting and applying agents doesn't open a card.

Access: read-only or edit

  • Read-only is the default. The agent works in the session's folder and can't change anything. Several can run in parallel.
  • Edit runs the agent in its own git worktree. Its changes come back as a diff. They reach your folder only through Apply to the folder, which asks you to confirm, or when the parent agent applies them and you approve the "Apply agent changes" card. If there are conflicts, nothing is applied.

Choose accounts

An agent can name an account or ask for auto. Auto picks the account with the lowest five-hour usage that offers the model, and skips accounts above their ceiling. Naming an account always works.

Accounts that you added with an API key and that bill per use stay off for agents until you turn them on. Auto reaches them only after every subscription is full, and only if Use automatically when subscriptions are full is on for that account. An account over its monthly budget is skipped.

Under Settings › Agents you control:

  • Agents answer their agents' requests first: when on, a sub-agent's permission request goes to the agent that started it, which can allow it, deny it or ask you. When off, every request comes to you.
  • Agents can start their own agents: off by default. When on, a child agent can start read-only agents of its own. They count toward the same per-session limit, and there is no third level.
  • Accounts and Models: which accounts agents can use and which models each account may run, and Account order. When an agent names no account, the first signed-in account in this order is used (auto uses it only to break ties).
  • Limits: agents per session (3 by default) and per device (4 by default), and Usage ceilings: the five-hour (85 percent) and weekly (95 percent) defaults, with per-account overrides.
  • Tools in Sessions: turn the agent tools off for a provider or an account.
  • Delegation Skills: your own rules for when and how agents hand work over, shared with every provider. BeyDock's own guidance is built in and isn't a skill. Use New Delegation Skill… to write one.

Follow the work

Each agent shows as a row in the parent's transcript with its status. From the row you can open its session, stop it, or keep it in the sidebar. When it finishes, its report goes back to the parent agent. The parent treats that report as data from another model, not as instructions. An agent can also ask the parent a question while it works, and the parent answers it.

In the session panel, the Agents box lists the agents of that session.

If you archive or delete a session that has running agents, BeyDock asks whether to stop them first.

Provider notes

  • All seven providers can start agents and run as agents. See Providers.
  • Antigravity can't ask for approval mid-turn, so an Antigravity agent's permissions come from its mode. Stop on the agent's row interrupts it like any other agent.
  • Cursor on the Free plan only runs Auto, so ask for another model only on a paid plan.
  • Command Code's read-only agents run in its Plan mode. Its own sub-agents are plain tool calls in the transcript, not separate BeyDock sessions, so they have no page of their own.
  • OpenCode's free models are checked regularly. A model that stops responding is hidden from agents until a later check succeeds. See Settings › Agents › Free Model Health.
  • Agents run on the same machine as the parent. On an SSH host, that is the host.