agents-sdk

Build stateful AI agents on Cloudflare Workers with the Agents SDK.

1|Updated May 27, 2026
One-click install
npx skills add https://github.com/mi179/claude-skills --skill agents-sdk-mi179
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/mi179/claude-skills/tree/main/user/agents-sdk
Command: npx skills add https://github.com/mi179/claude-skills --skill agents-sdk-mi179

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Agents SDK enables developers to build and deploy stateful AI agents on Cloudflare Workers with robust state management, durable execution, and simplified integration with WebSocket-based RPC, scheduling, and workflows.

Core Features & Use Cases

  • Persistent state with SQLite-backed storage and automatic broadcasting to connected clients.
  • Callable RPC, durable workflows, queues, retries, and observability for end-to-end agent lifecycles.
  • Use cases include chat agents, real-time applications, workflows, and browser automation.

Quick Start

Clone the repository, install dependencies, and run the sample agent to bootstrap a working development environment.

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?

You can build stateful AI agents on Cloudflare Workers using the Agents SDK, which provides persistent SQLite-backed state storage, durable execution, and automatic state broadcasting to connected clients.

What is the best way to manage durable workflows and scheduling for AI agents?

The Agents SDK handles durable workflows and scheduling for AI agents through built-in callable RPC, queues, retries, and agent lifecycle management, ensuring reliable end-to-end execution and observability.

Can I use the Agents SDK for real-time chat applications and browser automation?

Yes, the Agents SDK supports real-time chat applications and browser automation by leveraging WebSocket-based RPC, real-time interactivity, and MCP integration across your TypeScript projects.

Does the Agents SDK support React hooks for real-time client interactivity?

Yes, the Agents SDK includes React hooks to simplify real-time client interactivity, automatically broadcasting persistent state updates from the Cloudflare Workers backend to connected frontend clients.

How do I get started building an AI agent with the Agents SDK?

To get started building an AI agent, clone the repository, install dependencies, and run the sample agent to bootstrap a working local development environment for your Cloudflare Workers project.

When should I not use a serverless approach for stateful agent execution?

You should reconsider serverless stateful agent execution if your project requires avoiding SQLite-backed persistent state, automatic client broadcasting, or durable execution queues provided by the Agents SDK.