← Back to Core Concepts
Core Concepts

Agents & Subagents

Spawn isolated subagents with their own context, terminal, and lifecycle.

Delegate work

from iris import agent

result = agent.spawn(
    name="researcher",
    task="find the top 5 papers on retrieval-augmented agents from 2024",
    tools=["web_search", "browser"],
).wait()

print(result.summary)

Parallel pipelines

agents = [
    agent.spawn(name=f"worker-{i}", task=f"process batch {i}")
    for i in range(8)
]
results = agent.gather(agents)