Cookbook
Each recipe solves one task with code you can copy. The tutorials build something from start to finish; the other recipes assume you already have an agent. For runnable programs, see the Examples Catalog.
Tutorials
Section titled “Tutorials”- Tool Calling and MCP: build an agent with a custom tool and an MCP server.
- Local Agent with Ollama: build and run an agent on a local model.
- Next.js Agent: add a streaming agent to a Next.js app (listed under Frontend & UI).
Agents and tools
Section titled “Agents and tools”- Builder Stacks: builder chains to copy for common setups.
- Advanced Custom Tools: raw tool definitions, side effects and risk levels.
- Custom Strategies: write and register your own reasoning strategy.
- Multi-Agent Patterns: specialization, coordination and remote agents.
- Workspace-Scoped Coding Agent: point an agent at one project directory and its skills.
- Composition Recipes: patterns for the Compose API.
- Judgment Recipes: worked uses of the judgment layer.
- Chat & Sessions: multi-turn conversations (listed under Build).
Run, test and ship
Section titled “Run, test and ship”- Streaming Responses: stream tokens, show progress and cancel a run.
- Status Display: a live terminal display of a run.
- Error Handling: typed errors, fallbacks, retries and timeouts.
- Observability & Metrics: read the metrics dashboard and export telemetry.
- Testing Agents: test agents with the test provider, with no model call.
- Production Deployment: settings for a production agent.
Install
Bun (recommended)bun add reactive-agentsNode 22.5+npm install reactive-agentsGet notified on new releases
Release notes, about once a month.