agents-sdk

Build persistent AI agents on Cloudflare Workers with state, scheduling, and durable workflows.

Updated Mar 31, 2024
One-click install
npx skills add https://github.com/claughinghouse/dotfiles --skill agents-sdk-claughinghouse
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/claughinghouse/dotfiles/tree/main/dot_config/opencode/skills/agents-sdk
Command: npx skills add https://github.com/claughinghouse/dotfiles --skill agents-sdk-claughinghouse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build robust AI agents on Cloudflare Workers with integrated state, durable workflows, real-time communications, and React tooling to accelerate serverless AI apps.

Core Features & Use Cases

  • Agent class for creating persistent agents with state management and RPC
  • Workflows integration for durable background processing
  • Real-time WebSocket apps and scheduling tasks
  • React hooks for client apps and easy frontend integration
  • MCP and email/tool integrations for broader ecosystems

Quick Start

Create a simple Counter agent, route requests with routeAgentRequest, and deploy to a Cloudflare Worker to see persistent state and RPC in action.

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, use an Agent class that provides integrated state management, durable workflows, and RPC. This enables persistent serverless agents without external databases.

Can I use React hooks with Cloudflare Workers for real-time WebSocket apps?▼

Yes, you can use React hooks with Cloudflare Workers to build real-time WebSocket apps. The SDK provides frontend integration hooks to connect client applications directly to persistent backend agents.

How do I manage durable background processing for serverless workflows?▼

Manage durable background processing for serverless workflows using the integrated Workflows feature. This handles durable execution, scheduling tasks, and state recovery for long-running agent operations.

What's the best way to integrate MCP and email tools with serverless AI agents?▼

The best way to integrate MCP and email tools with serverless AI agents is through the Agent class's built-in tool integrations. This connects your workflows to broader ecosystems for extended functionality.

Does the Cloudflare Agents SDK support SQL-backed state for persistent agents?▼

Yes, the Cloudflare Agents SDK supports SQL-backed state for persistent agents. This allows developers to maintain complex state and schedule tasks reliably within serverless environments.

How do I route requests to a specific AI agent on Cloudflare Workers?▼

Route requests to a specific AI agent on Cloudflare Workers using the routeAgentRequest function. This directs incoming traffic to the correct persistent agent instance for RPC and state management.