You need the Developer or Admin role in the organization; see Organizations and roles. Read Teams for how the board works. A team runs several agents at once, so it costs more than a single agent. This tutorial caps the team at four teammates.
Step 1: Create the research agent
The agent needs web search, which is on by default, and a team size. The team size ismax_concurrent_threads. No roster entries are needed, because teammates are copies of this agent.
- Console
- cURL
- In the sidebar, click Agents, then click Create agent and choose Blank.
- Enter a Name, choose a model, and paste the
systemvalue from the cURL tab into System prompt. Click Create agent. - On the Configuration tab, under Multiagent, set Work as a team to Always.
- Under Tools, confirm Web search is on.
- Click Save new version.
Step 2: Create an environment
Web search and web fetch run outside the sandbox, so they work even when the environment blocks internet access. The team only needs a sandbox for its notes and the deliverable, so the default closed environment is enough.- Console
- cURL
- In the sidebar, click Environments, then click Create environment.
- Enter a Name, such as
research, and leave Internet access at No access. - Click Create environment.
Step 3: Start the team session
Themessage is the brief the leader splits into tasks. It also carries the context every agent needs and names the deliverable, so the leader knows what to save.
A good brief names the independent pieces, where each one writes, the review you want, how the result is judged, and the deliverable. See Write a good team brief.
- Console
- cURL
- In the sidebar, click Sessions, then click Launch session.
- Choose the Research lead agent and the research environment.
- In Opening message, paste the
messagevalue from the cURL tab. - Under Team, confirm Work as a team is Always.
- Click Launch session.
Step 4: Watch the board
The leader posts the round, and teammates join to claim it. You’ll typically see three research tasks and three reviews that wait on them.- Console
- cURL
- In the sidebar, click Sessions, then open the session.
- Open the Work tab. The Board shows each task, its status, and its owner.
- Click a task to read its body, its result, and the reviewer’s notes.
done, the board holds the teammates’ recommendations and then the leader’s decision:
Step 5: Wait for the leader to finish
After the decision, the leader writesvector-db-recommendation.md and ends its turn. The deliverable is kept with the root session, and the session goes idle.
- Console
- cURL
- Stay on the session page. The transcript shows the leader’s final message when it ends its turn.
- Open the Files tab to see
vector-db-recommendation.mdunder Outputs.
What success means
- The root session’s
execution_stateisidleand itsstop_reasonisend_turn. vector-db-recommendation.mdis kept as a deliverable of the root session.- The board has a
decisionpost, and no task isopenorclaimed.
end_turn means the leader finished, not that the recommendation is right. Read it before you act on it, and send a follow-up message if something is missing.
Step 6: Read the recommendation
The brief asks the leader to end with the comparison table and recommendation, so the final message carries the result. Any files the team saved as deliverables are on the session’s Files tab; see Download session deliverables.
- In the console: the leader’s last message in the transcript holds the table and the recommendation.
- Through the API: page the root timeline with
listSessionEventsand read the lastmessageevent whoseroleisassistant. - In a later session: start a session that references this one. It can read
vector-db-recommendation.mdand, for example, turn it into a design doc or open a pull request with it.
costUsd on the root session, and record it once costState is final. See Usage and cost.
What can go wrong
Limits
- Team size is
max_concurrent_threads: default 8, maximum 25. This tutorial uses 4. - A deliverable can be at most 64 MiB. See Deliverables and artifacts.
- See Limits for every product limit.
Next steps
Teams
Team modes, the board, and writing briefs.
Multi-agent
Delegation, rosters, and the session tree.
Deliverables and artifacts
What gets kept, and how to get results out.
Referenced sessions
Let a later session read this one’s deliverables.