What problem does it solve? Building stateful, real-time AI agents requires managing WebSocket connections, persistent state, scheduling, and durable execution — infrastructure that is complex to wire together manually. This Skill provides retrieval-first guidance and code patterns for the Cloudflare Agents SDK so agents are built against current documentation rather than outdated training knowledge. ## Core Features & Use Cases - Stateful Agents with RPC: Create Agent classes with SQLite-backed state, @callable RPC methods, and automatic client state sync via React hooks like useAgent. - Chat, Workflows & Background Processing: Build streaming chat agents with AIChatAgent, durable multi-step Workflows, built-in FIFO queues, retries with backoff, and cron/interval scheduling. - Integrations: Connect to or build MCP servers, handle email routing, webhooks, push notifications, and experimental voice, browser automation, and Codemode capabilities. - Use Case: You need a chat application where each user session is a persistent agent that streams LLM responses, survives disconnects with resumable streaming, and runs scheduled follow-up tasks — this Skill walks through the Wrangler config, agent class, and React client setup. ## Quick Start Ask the agent to scaffold a Cloudflare Workers agent with a Counter class, Wrangler Durable Object bindings, and a React client using useAgent.