lauren-framework/lauren-ai/building-teams

Claude Code and agent skill by lauren-framework/lauren-ai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Builds multi-agent teams in lauren-ai using @team and TeamRunner for coordinator and collaborate modes. Use when implementing a @team() class with multiple workers, running TeamRunner.run() or run_stream(), handling TeamWorkerStarted/Finished/TeamFinalAnswer events, or streaming team progress over SSE in a web controller.

Install

npx vskill@latest install lauren-framework/lauren-ai/building-teams

SKILL.md

The same SKILL.md was published earlier as lauren-framework/lauren-ai/building-teams.

Use codemap find "SymbolName" to locate any symbol before reading — it gives
exact file + line range and is faster than grep across the whole repo.

Building Multi-Agent Teams

Quick start

Define a team and run it:

python
from __future__ import annotations
from lauren_ai import team, TeamRunner
from .agents import ResearchAgent, WriterAgent
@team(
name="content-team",
mode="collaborate",
model="claude-opus-4-6",
)
class ContentTeam:
def __init__(self, researcher: ResearchAgent, writer: WriterAgent) -> None:
self.researcher = researcher
self.writer = writer
# Run
runner = TeamRunner(
team_cls=ContentTeam,
llm=llm_service,
agent_runner=agent_runner,
)
result = await runner.run("Write a report on quantum computing.")
print(result.final_answer)

Rules:

  • @team() must use parentheses.
  • Worker parameters in __init__ must be type-annotated with their agent class.
  • TeamRunner discovers workers by reading __init__.__annotations__.

Modes

ModeBehaviourUse when
coordinatorLLM coordinator decides after each round: ROUTE: <worker> or DONE: <answer>. Runs up to max_rounds rounds.Tasks need dynamic routing between specialists
collaborateAll workers run sequentially in annotation order, then a synthesis call produces the final answer.Tasks need all workers to contribute in a fixed sequence

Streaming events

TeamRunner.run_stream() yields TeamEvent subclass instances:

Event classFieldsMeaning
TeamWorkerStartedworker_name, task, roundA worker is about to run
TeamWorkerFinishedworker_name, result_content, roundA worker completed
TeamCoordinatorDecisiondecision, roundCoordinator chose next step
TeamFinalAnswercontent, roundsTeam produced its final answer
python
from lauren_ai import (
TeamWorkerStarted,
TeamWorkerFinished,
TeamCoordinatorDecision,
TeamFinalAnswer,
)
async for event in runner.run_stream("Research quantum computing"):
if isinstance(event, TeamWorkerStarted):
print(f"[Round {event.round}] Starting: {event.worker_name}")
elif isinstance(event, TeamWorkerFinished):
print(f"[Round {event.round}] {event.worker_name} done")
elif isinstance(event, TeamCoordinatorDecision):
print(f"[Coordinator] {event.decision}")
elif isinstance(event, TeamFinalAnswer):
print(f"[Final] {event.content}")

TeamResult fields

FieldTypeDescription
final_answerstrSynthesised final output
worker_outputsdict[str, str]Per-worker outputs keyed by worker name
roundsintNumber of coordinator rounds taken
total_input_tokensintCumulative input tokens (if tracked)
total_output_tokensintCumulative output tokens (if tracked)

Reference

See teams.md for:

  • Full @team() parameter reference (coordinator_prompt, max_rounds)
  • Custom coordinator prompt with {worker_descriptions}, {task}, {prior_outputs} placeholders
  • SSE streaming in a web controller with EventStream and ServerSentEvent
  • collaborate vs coordinator mode detailed behaviour

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lauren-framework/lauren-ai/building-teams/badge)](https://verified-skill.com/skills/lauren-framework/lauren-ai/building-teams)

Something wrong with this skill or its page? Tell us.