agents-sdk

Build durable, stateful Cloudflare Agents with SQLite-backed state and RPC.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare developers often struggle to implement durable, stateful logic and scalable integrations for agents across workers. The Agents SDK provides a cohesive framework to manage state, workflows, RPC, and UI hooks.

Core Features & Use Cases

  • Persistent state management with SQLite-backed storage and client broadcasting
  • Callable RPC over WebSocket for real-time control
  • Durable Workflows and MCP integration for long-running tasks and multi-server orchestration
  • React hooks and client libraries for seamless UI integration across React apps
  • Use cases include real-time chat agents, scheduled tasks, and cross-server automation

Quick Start

Define a minimal Agent subclass with initial state and a single @callable method to validate basic flow.

Frequently Asked Questions about agents-sdk

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

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

You can build durable stateful Cloudflare Agents by subclassing the Agent class to define initial state and using SQLite-backed storage to persist data across worker invocations.

How does state management work for Cloudflare Agents?

State management for Cloudflare Agents utilizes SQLite-backed persistent storage and client broadcasting, allowing agents to maintain and synchronize state automatically across connected clients.

Can I use React hooks with Cloudflare Agents for real-time UI integration?

Yes, the SDK provides dedicated React hooks and client libraries that enable seamless real-time UI integration by connecting React applications directly to agent state over WebSocket.

How do I control Cloudflare Agents remotely over WebSocket?

You can control Cloudflare Agents remotely by defining @callable methods on an Agent subclass, which exposes RPC functionality over WebSocket for real-time execution and communication.

What's the best way to orchestrate long-running tasks with Cloudflare Agents?

The best way to orchestrate long-running tasks is using the SDK's Durable Workflows integration, which manages execution state and supports MCP server orchestration for multi-server automation.

Does the Agents SDK require external dependencies to manage workflows?

No, the Agents SDK has zero external dependencies and provides native Durable Workflows integration, allowing you to schedule tasks and manage state without installing additional libraries.