cloudflare

126 mods across 18 repositories, 70k stars between them.

cloudflare/agents

Agent

This guide covers the changes needed when upgrading from AI SDK v5 to v6 with @cloudflare/ai-chat.

5.5k 2d ago A 0 tokens original MIT

observability

50

cloudflare/agents

Agent

Agents emit structured events for every significant operation — RPC calls, state changes, schedule execution, workflow transitions, MCP connections, and more. These events are published to diagnostics channels and are silent by default (zero overhead when nobody is listening).

5.5k 2d ago A 0 tokens original MIT

push-notifications

51

cloudflare/agents

Agent

Send browser push notifications from your agent — even when the user has closed the tab. By combining the agent's persistent state (for storing push subscriptions), scheduling (for timed delivery), and the Web Push API, you can reach users who are completely offline.

5.5k 2d ago A 0 tokens original MIT

queue

52

cloudflare/agents

Agent

The Agents SDK provides a built-in queue system that allows you to schedule tasks for asynchronous execution. This is particularly useful for background processing, delayed operations, and managing workloads that don't need immediate execution.

5.5k 2d ago A 0 tokens original MIT

cloudflare/agents

Agent

Readonly connections restrict certain WebSocket clients from modifying agent state while still letting them receive state updates and call non-mutating RPC methods.

5.5k 2d ago A 0 tokens original MIT

resumable-streaming

54

cloudflare/agents

Agent

The AIChatAgent class provides automatic resumable streaming out of the box. When a client disconnects and reconnects during an active stream, the response automatically resumes from where it left off.

5.5k 2d ago A 0 tokens original MIT

retries

55

cloudflare/agents

Agent

Retry failed operations with exponential backoff and jitter. The Agents SDK provides built-in retry support for scheduled tasks, queued tasks, and a general-purpose this.retry() method for your own code.

5.5k 2d ago A 0 tokens original MIT

routing

56

cloudflare/agents

Agent

This guide explains how requests are routed to agents, how naming works, and patterns for organizing your agents.

5.5k 2d ago A 0 tokens original MIT

scheduling

57

cloudflare/agents

Agent

Schedule tasks to run in the future — whether that's seconds from now, at a specific date/time, or on a recurring cron schedule. Scheduled tasks survive agent restarts and are persisted to SQLite.

5.5k 2d ago A 0 tokens original MIT

cloudflare/agents

Agent

Model Context Protocol servers, like every other web application, need to be secured so they can be used by trusted users without abuse. The MCP spec uses the OAuth 2.1 standard for authentication between MCP clients and servers.

5.5k 2d ago A 0 tokens original MIT

cloudflare/agents

Agent

Send messages and trigger LLM responses from the server without a human action. Use this for scheduled follow-ups, queue processing, email-triggered responses, and autonomous agent workflows.

5.5k 2d ago B 0 tokens original MIT

sessions

60

cloudflare/agents

Agent

The Session API provides persistent conversation storage for agents, with tree-structured messages, context blocks, compaction, full-text search, and AI-controllable tools. By default it uses Durable Object SQLite; external Postgres storage is also available for apps that need shared database access, analytics, or…

5.5k 2d ago A 0 tokens original MIT

state

61

cloudflare/agents

Agent

Agents provide built-in state management with automatic persistence and real-time synchronization across all connected clients.

5.5k 2d ago A 0 tokens original MIT

sub-agents

62

cloudflare/agents

Agent

Sub-agents are child Durable Objects colocated under a parent agent. Each sub-agent has its own isolated SQLite storage and its own WebSocket connections, but shares the parent's machine and is spawned, listed, and torn down through the parent. Clients reach a sub-agent directly via a nested URL; inside an agent…

5.5k 2d ago A 0 tokens original MIT

webhooks

63

cloudflare/agents

Agent

Receive webhook events from external services and route them to dedicated agent instances. Each webhook source (repository, customer, device) can have its own agent with isolated state, persistent storage, and real-time client connections.

5.5k 2d ago A 0 tokens original MIT

workflows

64

cloudflare/agents

Agent

Integrate Cloudflare Workflows with Agents for durable, multi-step background processing while Agents handle real-time communication.

5.5k 2d ago B 0 tokens original MIT

debug-plan

65

cloudflare/agents

Skill Claude CodeCodex

Create a systematic debugging plan for a bug report. Use when the user asks how to investigate a failure, regression, or unexpected behavior.

5.5k 2d ago A 30 tokens original MIT

pirate-voice

66

cloudflare/agents

Skill Claude CodeCodex

Rewrite or answer in a playful pirate voice. Use when the user asks for pirate tone, nautical phrasing, or says to talk like a pirate.

5.5k 2d ago A 35 tokens original MIT

release-notes

67

cloudflare/agents

Skill Claude CodeCodex

Draft short release notes from a list of changes. Use when the user asks for changelogs, release notes, or a concise product update.

5.5k 2d ago A 33 tokens original MIT

test-plan

68

cloudflare/agents

Skill Claude CodeCodex

Produce a focused test plan for a change. Use when the user asks how to test a feature, what cases to cover, or for a QA checklist before shipping.

5.5k 2d ago A 36 tokens original MIT

workspace-digest

69

cloudflare/agents

Skill Claude CodeCodex

Summarize the files saved in this assistant's shared workspace. Use when the user asks what is in their workspace, for a file inventory, or a digest of saved work.

5.5k 2d ago A 40 tokens original MIT

AGENTS

70

cloudflare/agents

Agent

The core Agents SDK, published to npm as agents. This is the most complex package in the monorepo.

5.5k 2d ago A 0 tokens original MIT

vibesdk AGENTS.md

71

cloudflare/vibesdk

Instructions file CodexOpenCode

Instructions for cloudflare/vibesdk, covering agents.md, tooling, verification, frontend ui and frontend data fetching.

5.3k 12d ago A 1,600 tokens original MIT

vibesdk CLAUDE.md

72

cloudflare/vibesdk

Instructions file

Instructions for cloudflare/vibesdk, covering claude.md, communication style, project overview, key architectural patterns and common development tasks.

5.3k 12d ago A 1,448 tokens original MIT