rl client from Client setup.
Before you begin
- 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
- TypeScript
- cURL
- In the sidebar, click Agents, then click Create agent and choose Blank.
- Enter a Name, choose a model, and paste the system prompt from the TypeScript 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
- TypeScript
- 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
The outcome’s description is the brief the leader splits into tasks, and the grader measures against it. Themessage carries context the agents need but the grader doesn’t score. The rubric names the deliverable, so grading checks that it exists and is complete.
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
- TypeScript
- cURL
- In the sidebar, click Sessions, then click Launch session.
- Choose the Research lead agent and the research environment.
- Under Task, select Grade this session against a rubric, and paste the rubric from the TypeScript tab into Rubric.
- In Opening message, paste the brief and then the context from the TypeScript 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
- TypeScript
- 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, outcome, and the reviewer’s notes.
done, the board holds the teammates’ recommendations and then the leader’s decision:
Step 5: Wait for the grade
After the decision, the leader writesvector-db-recommendation.md and ends its turn. The deliverable is kept, and then the grader checks it against the rubric. If a criterion fails, the grader’s feedback goes back to the leader, which revises and tries again, up to max_iterations.
- Console
- TypeScript
- cURL
- Stay on the session page. The grader’s verdicts appear as each attempt is graded.
- The session completes when every criterion passes.
What success means
- The outcome’s
terminal_resultissatisfied, the root session’sexecution_stateiscompleted, and itsstop_reasonisoutcome_satisfied. vector-db-recommendation.mdis kept as a deliverable of the root session, and it met every criterion.- The board has a
decisionpost, and no task isopenorclaimed.
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.
listSessionModelCostNodes and scope=tree. 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.
Outcomes
Rubrics, grading, and revision limits.
Deliverables and artifacts
What gets kept, and how to get results out.
Referenced sessions
Let a later session read this one’s deliverables.