agents-sdk

Build stateful AI agents on Cloudflare Workers with durable workflows.

3|Updated Jul 5, 2021
One-click install
npx skills add https://github.com/iAziz786/dotfiles --skill agents-sdk-iaziz786
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/iAziz786/dotfiles/tree/main/.agents/skills/agents-sdk
Command: npx skills add https://github.com/iAziz786/dotfiles --skill agents-sdk-iaziz786

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Agents SDK provides a comprehensive framework to build stateful, durable AI agents that run on Cloudflare Workers, removing boilerplate and enabling reliable background tasks.

Core Features & Use Cases

  • Persistent state: SQLite-backed, auto-synced to clients.
  • Durable execution and workflows: run fibers, workflows, retries, and queues.
  • Real-time integrations: RPC/ WebSocket, scheduling, MCP, streaming chat, and React hooks.

Quick Start

Install the Agents SDK, define an Agent class, and route requests to your agent.

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 by defining an Agent class and routing requests to it. The framework provides SQLite-backed persistent state that auto-syncs to clients.

What is durable execution for AI workflows and how does it work?

Durable execution allows AI workflows to run fibers, handle retries, and manage queues reliably. This mechanism ensures background tasks persist without losing state during execution.

Does the Agents SDK support real-time WebSocket and RPC integrations?

Yes, the Agents SDK supports real-time integrations including WebSocket, RPC, streaming chat, and React hooks. These features enable live communication between agents and clients.

How do I schedule tasks and manage queues for Cloudflare AI agents?

You can schedule tasks and manage queues by leveraging the framework's durable execution capabilities. This allows your Cloudflare AI agents to run reliable background workflows and retries.

Can I use this framework for scalable agent apps requiring persistent state?

Yes, this framework is specifically designed for building scalable agent apps requiring persistent state. It removes boilerplate by providing SQLite-backed state and durable execution on Cloudflare Workers.

What are the limitations of building stateful agents directly on serverless platforms?

Standard serverless platforms lack built-in persistent state and durable execution. This framework overcomes these limitations by providing SQLite-backed state, scheduling, and queue management for Cloudflare Workers.