Tutorials
Four steps, one program: a support agent that grows from a single model call into a team.
The guides explain one feature at a time. These four tutorials build one program instead. You start with a support agent that answers from its instructions, and finish with the same agent running a team of two. Each step adds one idea and leaves you with a file you can run.
Every program here runs offline on the scripted model, so you need no API key and no network to follow along, and the output in each page is what it printed when it was written. Both languages are in every step.
Before you start, set up threads from a clone: Installation.
The path
1. Your first agent
An agent, a run, and the five ways a run can end.
2. Tools and approvals
Give it a function to call, and decide what it may do without asking.
3. Delegate to a subagent
Hand one job to a second agent that works in its own thread.
4. Run a team
Two members working in parallel, and a lead that waits for both.