agents-sdk

Build durable, stateful AI agents on Cloudflare Workers with RPC interfaces.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build durable, stateful AI agents on Cloudflare Workers that persist state, orchestrate workflows, and expose RPC interfaces for client apps.

Core Features & Use Cases

  • Persistent state management with SQLite-backed storage and real-time client synchronization.
  • Durable execution via fibers and workflows, including scheduling, retries, and queues.
  • Rich integration capabilities: RPC, event-driven triggers, email, MCP, and chat tooling.
  • Real-world use cases include building autonomous agents for data processing, automation, and interactive chat systems that survive restarts and scale.

Quick Start

Create a simple Cloudflare Worker, install the Agents SDK, and run a basic agent to verify state persistence and RPC.

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 that survive restarts?

You build stateful AI agents on Cloudflare Workers using the Agent class with SQLite-backed storage for persistent state management. This ensures your agents survive restarts by persisting state and orchestrating durable workflows across long-running tasks.

How do I expose RPC interfaces for client apps to communicate with Cloudflare agents?

You expose callable RPC interfaces from your Cloudflare agents to client apps using the SDK's built-in RPC capabilities. React hooks are also provided for seamless client integration, enabling real-time state synchronization between the agent and frontend components.

Can I use Cloudflare Workers for email routing and scheduled tasks with AI agents?

Yes, Cloudflare Workers support email routing, scheduled tasks, and event-driven triggers for AI agents through the SDK. You can apply these capabilities to build autonomous agents for data processing, automation, and interactive chat systems.

Do I need SQLite to manage state persistence for Cloudflare Workers agents?

SQLite-backed storage is used for persistent state management in Cloudflare Workers agents. It enables real-time client synchronization and ensures state durability, allowing your agents to maintain context across restarts and scale without losing execution state.