cloudflare/agents
Build and deploy AI Agents on Cloudflare
https://skillcdn.ai/gh/cloudflare/agentsConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
bdb20e4 - License
MIT - Searchwords
Showing commit bdb20e4
The newest commit, 3f2091c, is being indexed. Until it is ready, this page and every agent are served the last indexed commit.
This repository is larger than the indexing limits, so some files are missing from the index.
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Documents
- ActionsActions are server-side tools with batteries included. Where a plain AI SDK tool() is just a description, a schema, and an execute function, an action() adds the things that are tedious and dangerous…docs/think/actions.md
- ChannelsA channel is a surface a Think agent talks over: the browser WebSocket, a messenger webhook (Telegram, Slack, and so on), voice, or your own custom transport. Channels generalize messengers into one…docs/think/channels.md
- Client ToolsThink supports tools that execute in the browser. The client sends tool schemas in the chat request body, Think merges them with server tools, and when the LLM calls a client tool, the call is routed…docs/think/client-tools.md
- ContextContext is how a Think agent arranges its system prompt and keeps data the model reads and writes across turns: who the agent is, what it has learned about the user, a knowledge base it can search. Y…docs/think/context.md
- Getting Started with ThinkBuild a chat agent with persistent memory, built-in file tools, and streaming — step by step.docs/think/getting-started.md
- Think (Experimental)@cloudflare/think is an opinionated chat agent base class for Cloudflare Workers. It handles the full chat lifecycle — agentic loop, message persistence, streaming, tool execution, client tools, stre…docs/think/index.md
- Lifecycle HooksThink owns the streamText call and provides hooks at each stage of the chat turn. Hooks fire on every turn regardless of entry path — WebSocket chat, sub-agent chat(), saveMessages(), durable submitM…docs/think/lifecycle-hooks.md
- Think MessengersUse messengers when a Think agent should receive and reply to Chat SDK webhooks directly. Think owns the webhook route, durable reply fiber, conversation routing, and streamed delivery back to the pr…docs/think/messengers.md
- Multi-chat ApplicationsA ChatGPT-style app gives each user a sidebar of conversations. With Think, you build this as a composition of Durable Objects rather than a mode inside one agent:docs/think/multi-chat.md
- Programmatic SubmissionsUse submitMessages() when a caller needs to start a Think turn, return quickly, retry safely, and inspect the result later.docs/think/programmatic-submissions.md
- Sub-agents and Programmatic TurnsThink works as both a top-level agent (WebSocket to browser) and a sub-agent (RPC from a parent agent). It also supports programmatic turns — injecting messages and triggering model turns without a W…docs/think/sub-agents.md
- ToolsThink provides built-in workspace file tools on every turn, plus integration points for custom tools, code execution, and dynamic extensions.docs/think/tools.md
- Think WorkflowsThinkWorkflow connects Think to Cloudflare Workflows when a durable job needs one model-driven reasoning step.docs/think/workflows.md
Skipped (10)
These manifests were not served. Fix them and push: the next commit is indexed again.
README.mdlink_missing57 links name no file of the repository (packages/agents, packages/ai-chat, packages/think, ...)docs/agents/index.mdlink_missing15 links name no file of the repository (./sms.md, ./sql.md, ./memory.md, ...)docs/agents/routing.mdlink_missinga link names no file of the repository (/securing-agents)design/rfc-chat-recovery-foundation.mdlink_missing3 links name no file of the repository (../packages/agents/src/chat/turn-queue.ts, ../packages/agents/src/chat/submit-concurrency.ts, ../packages/agents/src/chat/resumable-stream.ts)design/rfc-workers-ai-gateway-merge.mdlink_missinga link names no file of the repository (10866ae4-99d9-4ffe-a8d7-8ab0b183b494)design/rfc-think-multi-session.mdlink_missinga link names no file of the repository (./think-sessions.md)design/rfc-user-chat-durable-objects.mdlink_missing2 links name no file of the repository (../examples/next/routing, ../examples/assistant)design/rfc-helper-sub-agent-orchestration.mdlink_missinga link names no file of the repository (../examples/agents-as-tools)examples/next/harnesses/codex/README.mdlink_missinga link names no file of the repository (../../../design/rfc-codex-harness-capability.md)design/think.mdfragment_not_founda link names a section its file does not have (./chat-shared-layer.md#recovery-enginets): a fragment is the words a heading begins with, in lower case and joined by hyphens