What problem does it solve? Building AI agents that persist state, schedule tasks, handle streaming chat, and orchestrate tools requires significant boilerplate on serverless platforms. This Skill provides the patterns and APIs of the Cloudflare Agents SDK so you can implement durable, stateful agents without rediscovering configuration details. ## Core Features & Use Cases - Stateful Agents: Use the Agent base class with automatic SQLite state persistence, scheduling, queues, and WebSocket RPC via the @callable decorator. - Streaming Chat: Use AIChatAgent for chat with automatic message persistence and resumable streams, plus React hooks for the client. - MCP & Code Mode: Connect to MCP servers, build your own MCP server with McpAgent, and use Code Mode to generate executable code instead of individual tool calls to reduce token usage. - Use Case: Create a chat agent that remembers conversation history across sessions, schedules a daily summary task via cron, and orchestrates multiple MCP tools in a single generated code execution. ## Quick Start Create a Cloudflare Worker agent class extending Agent with typed state, register it in wrangler.jsonc durable object bindings and migrations, and route requests with routeAgentRequest.