What problem does it solve?
This Skill helps you build reliable AI agent systems on Cloudflare Workers that can keep memory, run long-lived work, and expose agent actions safely.
Core Features & Use Cases
- Persistent agent state with validation: Store state in SQLite-backed persistence, sync to clients, and gate updates with validateStateChange.
- Callable RPC and streaming: Expose agent methods via @callable over WebSocket, including streaming responses with timeouts and error handling.
- Durable workflows, fibers, and queues: Run durable multi-step workflows (AgentWorkflow), survive Durable Object eviction (runFiber/stash), and process background jobs via a FIFO queue with retries.
- Real integrations: Route requests, connect to MCP servers (client or server), handle email routing, and trigger proactive turns with server-driven messages.
- Client support via React hooks: Use useAgent and useAgentChat (and streaming) to build chat and real-time UI around your agents.
Quick Start
Tell your AI to generate a Cloudflare Workers agent using the Agents SDK with persistent state, a @callable increment method, and React useAgentChat wiring for a streaming chat UI.