agents-sdk

Develop AI agents on Cloudflare Workers with state, RPC, and WebSockets.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dwhoban/chanfana-vite-kumo --skill agents-sdk-dwhoban
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/dwhoban/chanfana-vite-kumo/tree/main/.agents/skills/agents-sdk
Command: npx skills add https://github.com/dwhoban/chanfana-vite-kumo --skill agents-sdk-dwhoban

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agents, and includes references (resource) components.

What problem does it solve?

This Skill provides a robust framework for building sophisticated AI agents that can manage state, handle real-time communication, and execute complex workflows on Cloudflare Workers.

Core Features & Use Cases

  • Stateful Agents: Build agents with persistent, client-synced state.
  • Real-time Communication: Develop chat applications, RPC services, and WebSocket apps.
  • Durable Workflows: Orchestrate long-running, fault-tolerant background tasks.
  • Use Case: Create a customer support agent that maintains conversation history, can be called via RPC for specific actions, and can trigger background workflows for ticket resolution.

Quick Start

Install the agents package by running npm install agents.

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 this SDK to implement persistent, client-synced state alongside real-time WebSocket communication and callable RPC methods.

What is the best way to manage real-time WebSocket communication for AI agents?

The best way to manage real-time WebSocket communication for AI agents is using a framework that supports durable workflows and client-synced state, allowing resilient long-running background tasks and live chat applications.

Can I run durable workflows and background tasks on Cloudflare Workers?

Yes, you can run durable workflows and fault-tolerant background tasks on Cloudflare Workers by using this SDK to orchestrate long-running processes like ticket resolution or scheduled agent actions.

Does the agents package support RPC methods for Cloudflare Workers?

Yes, the agents package supports callable RPC methods on Cloudflare Workers, enabling you to expose specific agent actions and trigger background workflows programmatically.

How do I schedule long-running tasks for AI agents using WebSockets?

You can schedule long-running tasks for AI agents using WebSockets by leveraging this SDK's scheduling and durable workflow features, which orchestrate fault-tolerant background processes on Cloudflare's infrastructure.