Skip to navigation

Start a session

Give a coding agent a task and let it work in its own sandbox
View as Markdown

A session is one piece of work by an agent. You describe the task, the agent works on it in a sandbox, and you follow along in the session’s chat.

You need the Owner, Admin or Engineer role to start a session.

Start a session

1

Open the composer

Choose New session in the sidebar (⌘⇧O).

2

Pick the code

Above the box, pick the repository, then use Start from to pick a branch or pull request. The session works on its own new branch.

3

Pick the agent and model

Under the box, choose the Agent chip, then the Model chip (⌘/).

4

Describe the task

Type in Describe the task…: the result you want and how the agent should check it. Add screenshots or files with Add photos and files, or paste them in.

5

Start

Press Enter or choose Start session.

New session page with the heading What should the agent work on?, repository, Start from and sandbox chips above the box, a task typed in, and Agent and Model chips beside the Start session button
The composer, ready to start

Loop until the checks pass

The agent can keep trying until your repository’s QA checks pass, then open a draft pull request.

1

Open the settings

Choose Session settings (the sliders button under the box).

2

Pick the start mode

Under Start, choose Loop until checks pass. Or choose Plan first, then wait for approval to have the product manager write a Spec that someone approves first.

3

Set the tries

Under Max tries, pick 1 to 5 (default 3). If the last try still fails, the session stops without a pull request.

Session settings menu headed This session, with rows for Permissions, Start, Visible to and AI account, and the Start submenu showing Start now, Loop until checks pass and Plan first, then wait for approval
Session settings

Good to know

  • Session settings starts from the agent’s setup and changes this session only: Permissions, Start, Visible to, AI account, limits and Plan mode (⇧Tab).
  • Visible to is Project by default: everyone in the project can see and drive it. Selected and Private narrow it to you, organization admins and teammates you pick.
  • The sandbox chip picks a New sandbox (default) or one of the project’s sandboxes.
  • Attachments: up to 10 per message, 50 MiB in total. Images up to 10 MiB, PDFs 20 MiB, text and code 2 MiB.
  • Your plan caps how many sessions run at once in a project. The composer shows the slots left. See Billing.
Working on more than one repository in a session (up to 10) needs the Starter, Team or Enterprise plan. Open the repository chip and choose Add next to each one.