What problem does it solve?
This Skill reduces the complexity of building persistent, stateful AI agents on Cloudflare Workers by providing guidance for durable object state, scheduling, RPC, email routing, streaming chat, MCP integration, and Code Mode orchestration so developers can focus on agent logic instead of infra plumbing.
Core Features & Use Cases
- State persistence & typing: Typed state definitions with automatic SQLite-backed persistence and client broadcast for real-time sync.
- Scheduling, queues & SQL: First-class scheduling (date, delay, cron), serial task queues, and direct SQL access for complex queries and data stores.
- Streaming chat, RPC & MCP: Streaming chat with resumable streams, callable RPC (including streaming RPC), Code Mode for executable orchestration to reduce token use, and MCP server tool integration and email handling.
- Use Case: Build a customer support agent that persists conversation history, streams long responses, schedules follow-ups, and coordinates external MCP tools for data enrichment.
Quick Start
Install the agents package, add durable object bindings and SQLite migrations for your Agent class in wrangler, install optional ai and codemode packages for streaming and Code Mode, and deploy the Worker to begin running stateful agents.