Resonate documentation

Resonate is the durable execution engine that agents build with, deploy on, and operate. It is the implementation of a distributed async/await programming model: a formal, language- and transport-agnostic protocol for writing functions that survive process restarts, run for hours or months, and coordinate across many machines.
Resonate is built on three pillars:
- Agent-native — The SDK, docs, tool definitions, and operational surface are designed for agent consumption, not just human developers. CLIs over dashboards. Skill files over screenshots. Agents are the new developers, and Resonate is the platform they reach for.
- Generated & optimized — Open-source pluggable components plus stack-specific generated servers. AI constrained by formal specs and protocols — not slop, but highly optimized software. Exactly what your stack needs, nothing more.
- Absurdly cheap — Serverless-native architecture means you pay only for active execution. Workloads that cost ~$80K/year on hosted alternatives can run for under $100/year on Resonate. Orders of magnitude, not percentages.
Build agents, workflows, pipelines, and services without thinking about retries or recovery. Write functions that scale across dozens or hundreds of machines and run for hours, days, weeks, or months — in just a few lines of code.
// An AI agent that recursively spawns subagents
function* agent(context: Context, prompt: string) {
const messages = [{ role: "user", content: prompt }];
// The agent loop
while (true) {
const response = yield* context.run(think, messages);
messages.push(response);
if (response.subprompts) {
// Spawn concurrent subagents
const futures = [];
for (const subprompt of response.subprompts) {
futures.push(yield* context.beginRpc(agent, subprompt));
}
// Collect results
for (const future of futures) {
messages.push({ role: "tool", content: yield* future });
}
} else {
return response.content;
}
}
}
Evaluate Resonate
If you are considering using Resonate, this section may help you better understand its capabilities and how you can benefit, especially if you are coming from another Durable Execution platform.
Get started
If you are ready to start using Resonate, this section will guide you through the initial steps, whether you are starting from scratch or migrating from another platform.
Examples
Clone and explore example projects that demonstrate common use cases and patterns like durable sleep, human-in-the-loop, and AI agents.
Tutorials
Step-by-step tutorials to deepen your understanding of Resonate concepts, best practices, and how things work.
Developer reference
If you are building applications with Resonate, this section provides quick-reference information on the most commonly used features and APIs.
Operational guidance
If you are ready to deploy a Resonate application to production, this section will help you understand how to operate your system, including monitoring, scaling, and troubleshooting.