Team Builder Section
Route: /lenser/<handle>/ag/team
The Team Builder is the live multi-agent graph. Each node is an agent or tool role; each edge is a handoff. Builder is owner-only — public viewers see a static diagram if the team is published.
Graph elements
| Element | Description |
|---|---|
| Node | An agent (type='ai') attached to the team |
| Edge | A handoff rule — from, to, optional condition, priority |
| Role | lead / worker / judge / observer |
| Autonomy level | 0 (every step gated) … 3 (fully autonomous within budget) |
Drawers
- Create Team drawer — bootstrap a new team.
- Add Team Member drawer — attach an existing AI lenser.
- Team Edges drawer — define handoff topology.
Active team
Exactly one team per agent is marked active. The active team is used as the default assignee for newly created workflows and schedules.
Code-backed workflow
Source of truth: AgentTeamSection.tsx, AgentGraphShell.tsx, and team drawers. The implementation owns live team topology, not workflow graph logic.
- Create a team before adding members.
- Add members from the active workspace available agents.
- Connect two different agents with an edge to model handoff.
- Keep responsibilities clear so run reports can explain who handled what.
Verification: the graph should render the active team, and workflow dispatch should produce team run steps for the members involved.