Cloudflare is stepping up its AI infrastructure game with the launch of Project Think, a significant evolution of its Agents SDK. This new initiative aims to provide the foundational tools necessary for building the next generation of AI agents, focusing on durability, scalability, and enhanced execution capabilities. According to Cloudflare, Project Think introduces a suite of primitives designed for long-running agents, including durable execution, sub-agents, sandboxed code execution, and persistent sessions.
The surge in powerful AI coding assistants like Pi and Claude Code has demonstrated a paradigm shift: granting LLMs the ability to read, write, execute code, and retain memory transforms them into sophisticated, general-purpose assistants. These agents are increasingly used for complex tasks ranging from calendar management to automating business workflows, operating on a pattern of read-reason-act-observe-iterate. Code has emerged as the universal medium for action in this agentic landscape.
The Agent Scaling Problem
However, current agent architectures face significant hurdles. They often run solely on local machines or expensive virtual private servers, limiting collaboration and device handoff. Furthermore, idle agents incur fixed monthly costs, a model that becomes unsustainable when scaled to teams or enterprises.
A deeper structural issue lies in the fundamental difference between traditional applications and AI agents. While applications typically serve many users from a single instance, agents are inherently one-to-one, each acting as a unique instance for a single user and task. This one-to-one model, akin to a personal chef preparing unique meals, drastically alters scaling mathematics. Supporting tens of millions of simultaneous agent sessions, even at modest concurrency, requires a new foundation beyond per-container costs.
Introducing Project Think Primitives
Project Think addresses these challenges with a set of new primitives for the Agents SDK:
- Durable execution with fibers: Ensures crash recovery, checkpointing, and automatic keepalive for long-running processes.
- Sub-agents: Enables isolated child agents with their own SQLite databases and typed RPC, managed via Durable Objects.
- Persistent sessions: Offers tree-structured messages for forking, compaction, and full-text search.
- Sandboxed code execution: Utilizes Dynamic Workers and codemode for secure, runtime execution of LLM-generated code.
These primitives can be used individually or combined with the new Think base class for rapid development.
