agents-sdk

Build durable, stateful AI agents on Cloudflare Workers with React hooks.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/jaypatrick/skills --skill agents-sdk-jaypatrick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/jaypatrick/skills/tree/main/agents-sdk
Command: npx skills add https://github.com/jaypatrick/skills --skill agents-sdk-jaypatrick

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build durable, stateful AI agents on Cloudflare Workers with integrated workflows, real-time communication, and React client support, reducing boilerplate and keeping data synchronized across clients.

Core Features & Use Cases

  • Persistent state management with SQLite-backed storage and client broadcasts.
  • Callable RPC over WebSocket, including streaming capabilities.
  • Durable workflows and MCP integration for multi-server orchestration.
  • HTTP/WebSocket lifecycle hooks and client-side React hooks for easy app integration.
  • Use cases include chat assistants, automation bots, and data processing pipelines.

Quick Start

Create a simple agent class extending Agent, implement a @callable method, and wire it into a Cloudflare Worker to start a basic stateful agent.

Frequently Asked Questions about agents-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build stateful AI agents on Cloudflare Workers?

Build stateful AI agents on Cloudflare Workers by creating an Agent class, managing state with SQLite-backed storage, and exposing RPC via @callable methods to enable durable workflows and real-time client broadcasts.

How do I manage persistent state in a Cloudflare Workers AI agent?

Manage persistent state in a Cloudflare Workers AI agent using SQLite-backed storage integrated into the Agent class, which automatically broadcasts state changes to connected clients over WebSocket connections.

Can I use React hooks with Cloudflare Workers AI agents?

Use React hooks with Cloudflare Workers AI agents for end-to-end app integration. The SDK provides client-facing React hooks that synchronize data across clients and handle HTTP and WebSocket lifecycle events.

What is the best way to enable real-time communication for AI agents on Cloudflare Workers?

Enable real-time communication for AI agents on Cloudflare Workers using callable RPC over WebSocket, which supports streaming capabilities and automated client broadcasts for synchronized state updates.

Does the Cloudflare Agents SDK support MCP integration for multi-server orchestration?

The Cloudflare Agents SDK supports MCP integration for multi-server orchestration, allowing durable workflows to coordinate multiple servers and handle complex automation bots or data processing pipelines.

When should I use durable workflows for AI agents on Cloudflare Workers?

Use durable workflows for AI agents on Cloudflare Workers when building chat assistants, automation bots, or data processing pipelines that require persistent state management and reliable multi-server orchestration.