agents-sdk

Build Cloudflare AI agents with stateful persistence and durable workflows.

582|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/shobcoder/shob --skill agents-sdk-shobcoder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/shobcoder/shob/tree/main/packages/server/test/fixture/skills/agents-sdk
Command: npx skills add https://github.com/shobcoder/shob --skill agents-sdk-shobcoder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare-based AI agents require robust tooling for persistent state, durable workflows, and seamless client communication at the edge. Building these capabilities from scratch is complex and error-prone, slowing development and increasing risk.

Core Features & Use Cases

  • Persistent state management with SQLite-backed storage that syncs with clients
  • Callable RPC, durable workflows via AgentWorkflow, and real-time WebSocket support
  • MCP integration and React hooks for client apps

Quick Start

Create a simple Counter agent on Cloudflare Workers and expose a callable method to increment state.

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 Cloudflare AI agents by extending the provided Agent class skeleton to leverage SQLite-backed persistent state that automatically syncs with connected clients via real-time WebSocket connections.

Can I expose RPC methods on Cloudflare edge agents?

Yes, use the @callable RPC decorator on methods within your Agent class to expose remote procedure calls, allowing client applications to directly invoke server-side functions across the Cloudflare edge.

What's the best way to manage durable workflows for AI agents?

Manage durable AI agent workflows by defining an AgentWorkflow, which orchestrates complex routing, scheduling, and email tasks reliably across Cloudflare Workers without losing execution state.

Does this work with React hooks for real-time client communication?

Yes, integrate client-side React hooks to establish real-time WebSocket connections with your agents, ensuring automatic state synchronization and seamless data streaming to your user interface.

How do I connect Cloudflare agents to an MCP integration?

Connect Cloudflare agents to MCP integration by utilizing the built-in protocol support within the Agent class, enabling your workflows to interact with external tools and data sources via standardized messaging.