agents-sdk

Develop stateful AI agents with the Cloudflare Agents SDK for Workers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agents, @cloudflare/ai-chat, ai, @ai-sdk/react, @cloudflare/codemode, @modelcontextprotocol/sdk, zod, web-push, and includes references (resource) components.

What problem does it solve?

This Skill simplifies the development of complex, stateful AI agents by providing a unified framework for managing persistence, durable execution, and real-time communication on Cloudflare Workers.

Core Features & Use Cases

  • Durable State & Workflows: Manage persistent SQLite-backed state and multi-step background tasks that survive worker eviction.
  • Real-time Interaction: Enable WebSocket-based RPC, streaming chat, and voice capabilities for interactive applications.
  • Use Case: Build a customer support agent that maintains conversation history, executes multi-step workflows for order processing, and handles human-in-the-loop approvals.

Quick Start

Use the agents-sdk skill to initialize a new agent class with state management and callable RPC methods for your Cloudflare Workers project.

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?

To build stateful AI agents on Cloudflare Workers, you can use a framework that provides durable execution, SQLite-backed persistent state management, and real-time WebSocket communication. This simplifies managing complex workflows and conversation history.

Does the Cloudflare Agents SDK support real-time WebSocket communication for chat applications?

Yes, the Cloudflare Agents SDK supports real-time WebSocket communication, enabling WebSocket-based RPC, streaming chat, and voice capabilities for interactive applications on Cloudflare Workers.

How do I manage persistent state and multi-step workflows on Cloudflare Workers?

You can manage persistent state and multi-step workflows on Cloudflare Workers using durable execution frameworks. These tools maintain SQLite-backed state and background tasks that survive worker eviction.

Can I use Model Context Protocol servers with Cloudflare Workers?

Yes, you can integrate Model Context Protocol (MCP) servers with Cloudflare Workers. The framework supports connecting to MCP servers alongside Workers AI and React hooks to provide a comprehensive agentic application environment.

What is the best way to handle human-in-the-loop approvals for AI agents?

Handling human-in-the-loop approvals for AI agents is best achieved using a framework that supports durable state and callable RPC methods. This allows agents to pause multi-step workflows, request approval, and resume execution seamlessly.

Why do my AI agents lose conversation history after worker eviction?

AI agents lose conversation history after worker eviction if they lack persistent state management. Using a durable execution framework with SQLite-backed state ensures conversation history and application state survive worker restarts.