This is preview documentation. The official release is not yet available.
Check readiness
Members can use different execution types. Before configuring Runtime policy or member overrides, check capabilities, runtime targets and security constraints. Additional candidates do not imply seamless session migration.
Create a review team
The examples use Bash,curl, and jq. Set SERVICE_URL to your Service address, TOKEN to a user Bearer token, and TENANT / NAMESPACE to your authorized scope; see API authentication. Define this request helper:
LEADER_AGENT_ID to a material-organizing Agent and REVIEWER_AGENT_ID to a reviewer. The Leader is not repeated in members; member Agent IDs and roles must each be unique.
instructions explain coordination, member instructions define responsibilities, and policy bounds concurrency, delegation, and review. The overview shows configuration and activity. Creation does not prove that every runtime is online: verify member availability and execute a small task. See Team configuration for policy options.
Submit team work and read results
Once the Team is ready, create a Session targeting it. This walkthrough continues with your platform identity. For a business backend, use an application credential granting this Team as explained in the API guide.Change membership and coordination
ReadGET /api/v1/teams/{teamId} before editing. Add a member with POST /api/v1/teams/{teamId}/members, providing agentId, a unique role, and optional instructions. Use the returned member.id for later updates or removal.
Update Team configuration with PATCH /api/v1/teams/{teamId} and the current expectedVersion, preserving the name, leader, policy, and instructions you want to retain. Member updates use expectedTeamVersion. New Sessions select the updated configuration; existing Sessions retain their frozen Team definition. Removing a member does not cancel existing work.
Expose the Team to applications
To call a Team, create a Session withtarget:{"type":"team","id":"TEAM_ID"} and submit work to /turns. Each Turn becomes an independent team task; the Session provides progress, actions, and artifacts. Issue credentials under an Application with an explicit grant for that Team. Callers do not need Agent or Team management rights. See the API guide.
Agent API therefore also serves Teams: the external invocation contract is shared, while internal delegation follows the Team’s collaboration mechanism. Team execution is not a Managed Agent resumable session. Managed-specific checkpoint and file APIs do not automatically apply to every member runtime.
Use Workflow APIs when business logic fixes the steps, dependencies, and approval order. For UI operations, see Console: Teams and orchestration; for collaboration behavior, see the Team reference.
Design useful roles
For technical research, a Lead frames the question and combines the report, a Researcher supplies sourced facts, and a Reviewer checks evidence and omissions. Give each role a verifiable output and avoid unrestricted concurrent edits to the same files. Members can mix Managed, Hosted and External execution when they support the required dispatch and collaboration capabilities. Chat availability does not prove coordinator capability. Verify members individually first.Collaboration APIs for applications
Use a user Bearer token and authorization to the relevant work. These endpoints operate durable business records without requiring the caller to know each member’s runtime.
Set
mentions[].type to agent, team, or human, with the corresponding identifier in ref. Names in prose are not structured routing. Inspect the returned routes for queued, merged, or blocked delivery; saving a comment alone does not prove new work started. Use type:"progress" without mentions for an informational record without implicit dispatch.
Communicate durably
Use Comments and mentions for updates, questions and follow-ups, Artifacts for files and child Issues for independently tracked objectives. Do not keep the sole collaboration record inside a member’s process. Track handled inputs so retries do not answer the same request twice. Runtime Host injects scoped credentials and context into tasks. Shell-capable providers can use:Handoff template for independent review
When the code repair service needs a multi-role Team, the Developer can use this structure with the PR and actual test records:Runtime reporting identity and fields
Execution adapters use task credentials issued by Service for protocol operations under/api/v1/agent-tasks/{taskId}. A user token does not represent the executing task. GET .../context returns current work context; POST .../progress accepts content, optional parentId, and mentions; POST .../complete can report expectedVersion, summary, result, usage, and processed input IDs. POST .../fail accepts expectedVersion, code, and message.
Hosted providers usually access these operations through injected CLI / MCP tools. External adapters follow the task integration protocol. Coordinator node completion and failure require coordinator authority; reporting a member result does not grant Leader permissions.
For UI flows, see Console: Teams and orchestration and task feedback.