cloudflare-agents
Build stateful AI agents on Cloudflare Workers with WebSockets, persistent state, scheduling, and multi-agent coordination.
- WebSocket-based real-time communication with automatic state synchronization across clients and devices; resumable streaming persists across disconnects and page refreshes
- Built-in SQLite storage (up to 1GB per agent), task scheduling with cron expressions, and Durable Objects for globally unique, persistent agent instances
- Multi-agent coordination via
routeAgentRequest(), workflow triggering, browser automation, and RAG support with Vectorize - Integrates with Vercel AI SDK for automatic streaming or Workers AI for cost-effective inference; prevents 23 documented configuration and runtime errors including idFromName() gotchas and WebSocket payload limits
Cloudflare Agents SDK
Status: Production Ready ✅ Last Updated: 2026-01-09 Dependencies: cloudflare-worker-base (recommended) Latest Versions: agents@0.3.3, @modelcontextprotocol/sdk@latest Production Tested: Cloudflare's own MCP servers (https://github.com/cloudflare/mcp-server-cloudflare)
Recent Updates (2025-2026):
- Jan 2026: Agents SDK v0.3.6 with callable methods fix, protocol version support updates
- Nov 2025: Agents SDK v0.2.24+ with resumable streaming (streams persist across disconnects, page refreshes, and sync across tabs/devices), MCP client improvements, schedule fixes
- Sept 2025: AI SDK v5 compatibility, automatic message migration
- Aug 2025: MCP Elicitation support, http-streamable transport, task queues, email integration
- April 2025: MCP support (MCPAgent class),
import { context }from agents - March 2025: Package rename (agents-sdk → agents)
Resumable Streaming (agents@0.2.24+)
AIChatAgent now supports resumable streaming, enabling clients to reconnect and continue receiving streamed responses without data loss. This solves critical real-world scenarios:
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Ktanstack-query
|
2.5Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9K