What problem does it solve? Building stateful, real-time AI agents requires managing WebSocket connections, persistent state, scheduling, and durable execution, which is complex to implement from scratch. This Skill provides guidance for the Cloudflare Agents SDK, prioritizing retrieval from official Cloudflare docs over potentially outdated pre-trained knowledge. ## Core Features & Use Cases - Stateful Agents: Create Agent classes with SQLite-backed persistent state, @callable RPC methods, and automatic client state sync via React hooks like useAgent. - Chat & Streaming: Build streaming chat agents with AIChatAgent, resumable streams, tool calling, and human-in-the-loop approval flows. - Background Processing: Run durable Workflows, scheduled tasks (cron, intervals, delays), FIFO queues, and retries with exponential backoff. - Integrations: Connect to or build MCP servers, handle email routing, webhooks, push notifications, and experimental voice and browser automation. - Use Case: Build a chat application where each user session is a Durable Object instance with persisted message history, scheduled reminder tasks, and MCP tool access, all deployed on Cloudflare Workers. ## Quick Start Ask the agent to create a Cloudflare Workers agent class with persistent state and a callable RPC method using the Agents SDK.