Mar 19, 2025 · 35m · latent-space

npm install Agents — with Sunil Pai and Rita Kozlov (VP AI) of Cloudflare

Sunil Pai · 12m spoken Rita Kozlov · 10m spoken Shawn Wang · 9m spoken
0:00 / 0:00
▶ Watch on YouTube →

gold bands on the timeline = statements, start to end. Hover to read, click to jump. CC turns on captions

Cloudflare's Rita Kozlov and Sunil Pai join Sean Wang to introduce Cloudflare Agents, exploring how Durable Objects provide a persistent, actor-model foundation for running stateful, autonomous AI workflows at the edge.

How this conversation actually went

Every chapter scored 0–10 on four independent dynamics. Hover any point for the reasoning behind the score. How this is scored →

The hosts as informed peer 5.0 Guest teaching 3.1 Guest disagreement 1.5 The hosts pushing back 2.4
05100:0010:0020:0030:001:51–4:19 · The hosts as informed peer 4/10 Durable Objects as the Infrastructure Primitive for Agents Sean kicks off by noting Cloudflare's edge model positioning before asking how Durable Objects map to an agents SDK. Sunil and Rita explain how Durable Objects bring the actor model to distributed infrastructure to handle state and background execution.4:19–6:58 · The hosts as informed peer 3/10 Origin Story and Philosophy of the Cloudflare Agents SDK The conversation is collaborative as Sunil shares the playful origin story of vibe coding a quick prototype and Rita stepping in to make it production ready. Rita explains their deliberate approach to avoid cluttering the ecosystem with heavy-handed frameworks.6:59–12:51 · The hosts as informed peer 4/10 Code Walkthrough: Cloudflare Agents Starter and Live Demo Sunil screenshares the starter code, demonstrating persistence, human-in-the-loop triggers, and cron scheduling in Durable Objects. Sean observes and catches a small UI quirk when a scheduled task injects into the chat as a user message.12:51–16:07 · The hosts as informed peer 5/10 Agent Hello Worlds, Trust Horizons, and the Actor Model Rita raises the philosophical question of why agents lack a canonical hello world due to trust and authority barriers. Sean demonstrates familiarity with actor-model design patterns, agreeing that delegating credentials requires new infrastructure primitives.16:08–20:08 · The hosts as informed peer 6/10 Durable Objects versus the Local-First Paradigm Sean invokes the Ink & Switch local-first paradigm and questions whether Cloudflare's edge persistence obviates local-first architecture. Sunil politely reframes the premise, arguing that a Durable Object functions as a resilient cloud-side local-first client syncing continuously.20:08–24:10 · The hosts as informed peer 4/10 Observability, Mainstream Adoption, and Model Context Protocol Rita highlights agent fleet observability and MCP integration as critical frontiers, while Sunil focuses on practical adoption for everyday business workflows. Sean concurs, suggesting government services like DMV scheduling as high-value testbeds.24:11–28:25 · The hosts as informed peer 7/10 Defining Agents, Ambient Workflows, and Multi-Agent Orchestration When Rita asks if Sean has built an agent, Sean outlines a taxonomy differentiating read-only research agents from side-effect actions. He also pushes on the architectural divide between lightweight serverless primitives and heavy orchestration workloads requiring Kubernetes.28:25–35:22 · The hosts as informed peer 7/10 Cloudflare Developer Week and Browser Rendering API Launch Rita pre-announces the Browser Rendering REST API, prompting Sean to offer a contrarian hot take that bot detection and user-agent spoofing cannot be solved at the HTTP layer. Rita takes it as a challenge and teases Cloudflare's upcoming Durable Object-backed container platform.1:51–4:19 · Guest teaching 3/10 Durable Objects as the Infrastructure Primitive for Agents Sean kicks off by noting Cloudflare's edge model positioning before asking how Durable Objects map to an agents SDK. Sunil and Rita explain how Durable Objects bring the actor model to distributed infrastructure to handle state and background execution.4:19–6:58 · Guest teaching 2/10 Origin Story and Philosophy of the Cloudflare Agents SDK The conversation is collaborative as Sunil shares the playful origin story of vibe coding a quick prototype and Rita stepping in to make it production ready. Rita explains their deliberate approach to avoid cluttering the ecosystem with heavy-handed frameworks.6:59–12:51 · Guest teaching 3/10 Code Walkthrough: Cloudflare Agents Starter and Live Demo Sunil screenshares the starter code, demonstrating persistence, human-in-the-loop triggers, and cron scheduling in Durable Objects. Sean observes and catches a small UI quirk when a scheduled task injects into the chat as a user message.12:51–16:07 · Guest teaching 2/10 Agent Hello Worlds, Trust Horizons, and the Actor Model Rita raises the philosophical question of why agents lack a canonical hello world due to trust and authority barriers. Sean demonstrates familiarity with actor-model design patterns, agreeing that delegating credentials requires new infrastructure primitives.16:08–20:08 · Guest teaching 5/10 Durable Objects versus the Local-First Paradigm Sean invokes the Ink & Switch local-first paradigm and questions whether Cloudflare's edge persistence obviates local-first architecture. Sunil politely reframes the premise, arguing that a Durable Object functions as a resilient cloud-side local-first client syncing continuously.20:08–24:10 · Guest teaching 3/10 Observability, Mainstream Adoption, and Model Context Protocol Rita highlights agent fleet observability and MCP integration as critical frontiers, while Sunil focuses on practical adoption for everyday business workflows. Sean concurs, suggesting government services like DMV scheduling as high-value testbeds.24:11–28:25 · Guest teaching 3/10 Defining Agents, Ambient Workflows, and Multi-Agent Orchestration When Rita asks if Sean has built an agent, Sean outlines a taxonomy differentiating read-only research agents from side-effect actions. He also pushes on the architectural divide between lightweight serverless primitives and heavy orchestration workloads requiring Kubernetes.28:25–35:22 · Guest teaching 4/10 Cloudflare Developer Week and Browser Rendering API Launch Rita pre-announces the Browser Rendering REST API, prompting Sean to offer a contrarian hot take that bot detection and user-agent spoofing cannot be solved at the HTTP layer. Rita takes it as a challenge and teases Cloudflare's upcoming Durable Object-backed container platform.1:51–4:19 · Guest disagreement 1/10 Durable Objects as the Infrastructure Primitive for Agents Sean kicks off by noting Cloudflare's edge model positioning before asking how Durable Objects map to an agents SDK. Sunil and Rita explain how Durable Objects bring the actor model to distributed infrastructure to handle state and background execution.4:19–6:58 · Guest disagreement 1/10 Origin Story and Philosophy of the Cloudflare Agents SDK The conversation is collaborative as Sunil shares the playful origin story of vibe coding a quick prototype and Rita stepping in to make it production ready. Rita explains their deliberate approach to avoid cluttering the ecosystem with heavy-handed frameworks.6:59–12:51 · Guest disagreement 1/10 Code Walkthrough: Cloudflare Agents Starter and Live Demo Sunil screenshares the starter code, demonstrating persistence, human-in-the-loop triggers, and cron scheduling in Durable Objects. Sean observes and catches a small UI quirk when a scheduled task injects into the chat as a user message.12:51–16:07 · Guest disagreement 1/10 Agent Hello Worlds, Trust Horizons, and the Actor Model Rita raises the philosophical question of why agents lack a canonical hello world due to trust and authority barriers. Sean demonstrates familiarity with actor-model design patterns, agreeing that delegating credentials requires new infrastructure primitives.16:08–20:08 · Guest disagreement 2/10 Durable Objects versus the Local-First Paradigm Sean invokes the Ink & Switch local-first paradigm and questions whether Cloudflare's edge persistence obviates local-first architecture. Sunil politely reframes the premise, arguing that a Durable Object functions as a resilient cloud-side local-first client syncing continuously.20:08–24:10 · Guest disagreement 1/10 Observability, Mainstream Adoption, and Model Context Protocol Rita highlights agent fleet observability and MCP integration as critical frontiers, while Sunil focuses on practical adoption for everyday business workflows. Sean concurs, suggesting government services like DMV scheduling as high-value testbeds.24:11–28:25 · Guest disagreement 2/10 Defining Agents, Ambient Workflows, and Multi-Agent Orchestration When Rita asks if Sean has built an agent, Sean outlines a taxonomy differentiating read-only research agents from side-effect actions. He also pushes on the architectural divide between lightweight serverless primitives and heavy orchestration workloads requiring Kubernetes.28:25–35:22 · Guest disagreement 3/10 Cloudflare Developer Week and Browser Rendering API Launch Rita pre-announces the Browser Rendering REST API, prompting Sean to offer a contrarian hot take that bot detection and user-agent spoofing cannot be solved at the HTTP layer. Rita takes it as a challenge and teases Cloudflare's upcoming Durable Object-backed container platform.1:51–4:19 · The hosts pushing back 1/10 Durable Objects as the Infrastructure Primitive for Agents Sean kicks off by noting Cloudflare's edge model positioning before asking how Durable Objects map to an agents SDK. Sunil and Rita explain how Durable Objects bring the actor model to distributed infrastructure to handle state and background execution.4:19–6:58 · The hosts pushing back 1/10 Origin Story and Philosophy of the Cloudflare Agents SDK The conversation is collaborative as Sunil shares the playful origin story of vibe coding a quick prototype and Rita stepping in to make it production ready. Rita explains their deliberate approach to avoid cluttering the ecosystem with heavy-handed frameworks.6:59–12:51 · The hosts pushing back 2/10 Code Walkthrough: Cloudflare Agents Starter and Live Demo Sunil screenshares the starter code, demonstrating persistence, human-in-the-loop triggers, and cron scheduling in Durable Objects. Sean observes and catches a small UI quirk when a scheduled task injects into the chat as a user message.12:51–16:07 · The hosts pushing back 1/10 Agent Hello Worlds, Trust Horizons, and the Actor Model Rita raises the philosophical question of why agents lack a canonical hello world due to trust and authority barriers. Sean demonstrates familiarity with actor-model design patterns, agreeing that delegating credentials requires new infrastructure primitives.16:08–20:08 · The hosts pushing back 3/10 Durable Objects versus the Local-First Paradigm Sean invokes the Ink & Switch local-first paradigm and questions whether Cloudflare's edge persistence obviates local-first architecture. Sunil politely reframes the premise, arguing that a Durable Object functions as a resilient cloud-side local-first client syncing continuously.20:08–24:10 · The hosts pushing back 1/10 Observability, Mainstream Adoption, and Model Context Protocol Rita highlights agent fleet observability and MCP integration as critical frontiers, while Sunil focuses on practical adoption for everyday business workflows. Sean concurs, suggesting government services like DMV scheduling as high-value testbeds.24:11–28:25 · The hosts pushing back 4/10 Defining Agents, Ambient Workflows, and Multi-Agent Orchestration When Rita asks if Sean has built an agent, Sean outlines a taxonomy differentiating read-only research agents from side-effect actions. He also pushes on the architectural divide between lightweight serverless primitives and heavy orchestration workloads requiring Kubernetes.28:25–35:22 · The hosts pushing back 6/10 Cloudflare Developer Week and Browser Rendering API Launch Rita pre-announces the Browser Rendering REST API, prompting Sean to offer a contrarian hot take that bot detection and user-agent spoofing cannot be solved at the HTTP layer. Rita takes it as a challenge and teases Cloudflare's upcoming Durable Object-backed container platform.

speaking balance: gold is the hosts, purple is the guest (3 minute bins)

0:00 · the hosts 0% · guest 100%0:00 · the hosts 0% · guest 100%3:00 · the hosts 0% · guest 100%3:00 · the hosts 0% · guest 100%6:00 · the hosts 0% · guest 100%6:00 · the hosts 0% · guest 100%9:00 · the hosts 0% · guest 100%9:00 · the hosts 0% · guest 100%12:00 · the hosts 0% · guest 100%12:00 · the hosts 0% · guest 100%15:00 · the hosts 0% · guest 100%15:00 · the hosts 0% · guest 100%18:00 · the hosts 0% · guest 100%18:00 · the hosts 0% · guest 100%21:00 · the hosts 0% · guest 100%21:00 · the hosts 0% · guest 100%24:00 · the hosts 0% · guest 100%24:00 · the hosts 0% · guest 100%27:00 · the hosts 0% · guest 100%27:00 · the hosts 0% · guest 100%30:00 · the hosts 0% · guest 100%30:00 · the hosts 0% · guest 100%33:00 · the hosts 0% · guest 100%33:00 · the hosts 0% · guest 100%
Sharpest disagreement ▶ 33:01 Rita rejects Sean's claim on bot identity

Rita directly pushes back on Sean's assertion that bot spoofing is insoluble, stating agent verification must be solved for the ecosystem to advance and declaring challenge accepted.

Hardest push from the hosts ▶ 32:05 Sean's hot take on bot detection and API keys

Sean firmly challenges Cloudflare's premise of solving browser anti-bot verification at the rendering layer, arguing the genie is out of the bottle and advocating for agent shadow API keys instead.

Biggest teaching moment ▶ 17:14 Sunil reframing Durable Objects and local-first

Sunil educates Sean on how Durable Objects do not eliminate local-first but instead serve as always-on local-first cloud clients syncing data even when user devices are offline.

The host holds their own ▶ 24:16 Sean's agent taxonomy and workflow critique

Sean demonstrates deep technical domain knowledge by articulating the spectrum of agent-ness and pointing out specific gaps in Cloudflare's serverless workflow primitives compared to heavy Kubernetes workloads.

the scores for every segment, with the reasoning behind each
ChapterTopicThe hosts as informed peerGuest teachingGuest disagreementThe hosts pushing backWhy
Durable Objects as the Infrastructure Primitive for Agents 4311 Sean kicks off by noting Cloudflare's edge model positioning before asking how Durable Objects map to an agents SDK. Sunil and Rita explain how Durable Objects bring the actor model to distributed infrastructure to handle state and background execution.
Origin Story and Philosophy of the Cloudflare Agents SDK 3211 The conversation is collaborative as Sunil shares the playful origin story of vibe coding a quick prototype and Rita stepping in to make it production ready. Rita explains their deliberate approach to avoid cluttering the ecosystem with heavy-handed frameworks.
Code Walkthrough: Cloudflare Agents Starter and Live Demo 4312 Sunil screenshares the starter code, demonstrating persistence, human-in-the-loop triggers, and cron scheduling in Durable Objects. Sean observes and catches a small UI quirk when a scheduled task injects into the chat as a user message.
Agent Hello Worlds, Trust Horizons, and the Actor Model 5211 Rita raises the philosophical question of why agents lack a canonical hello world due to trust and authority barriers. Sean demonstrates familiarity with actor-model design patterns, agreeing that delegating credentials requires new infrastructure primitives.
Durable Objects versus the Local-First Paradigm 6523 Sean invokes the Ink & Switch local-first paradigm and questions whether Cloudflare's edge persistence obviates local-first architecture. Sunil politely reframes the premise, arguing that a Durable Object functions as a resilient cloud-side local-first client syncing continuously.
Observability, Mainstream Adoption, and Model Context Protocol 4311 Rita highlights agent fleet observability and MCP integration as critical frontiers, while Sunil focuses on practical adoption for everyday business workflows. Sean concurs, suggesting government services like DMV scheduling as high-value testbeds.
Defining Agents, Ambient Workflows, and Multi-Agent Orchestration 7324 When Rita asks if Sean has built an agent, Sean outlines a taxonomy differentiating read-only research agents from side-effect actions. He also pushes on the architectural divide between lightweight serverless primitives and heavy orchestration workloads requiring Kubernetes.
Cloudflare Developer Week and Browser Rendering API Launch 7436 Rita pre-announces the Browser Rendering REST API, prompting Sean to offer a contrarian hot take that bot detection and user-agent spoofing cannot be solved at the HTTP layer. Rita takes it as a challenge and teases Cloudflare's upcoming Durable Object-backed container platform.

Statements from this episode (18)

Assertion Contradicted
Pai: Durable Objects are the first infrastructure-level JS actor model
“Durable objects have been around in Cloudflare for about four years now, and I think they are the world's first implementation of the actor model in infrastructure, the thing that Erlang Elixir made, like, super popular. Cloudflare got that out for JavaScript …”
Sunil Pai Mar 19, 2025 ▶ 1:52
Opinion
Pai: Durable Objects are the perfect container for AI agents
“These little instances of compute that you can write a code that you can spin up really quickly and scales horizontally across the planet is the perfect little container for running your agents in.”
Sunil Pai Mar 19, 2025 ▶ 2:07
Insight
Kozlov: AI agents require tightly coupling compute and state
“An agent is really like LLMs and a bunch of workflows and coordination and orchestration and then extra, like some sort of services, right? Like you have kind of the brain of the operation, which is the LLM and it can come up with a plan. And then, but then it…”
Rita Kozlov Mar 19, 2025 ▶ 3:06
Assertion Not checkable as stated
Kozlov: Cloudflare Durable Objects remain widely misunderstood by developers
“There, there's still at least one thread a week that goes something like this. Hey, can someone describe durable objects? And then there are a hundred comments and no two of them are the same. And people walk away equally confused.”
Rita Kozlov Mar 19, 2025 ▶ 6:23
Disclosure
Sunil Pai to add offline email support to Cloudflare Agents
“Over the next couple of days, I'm going to add email support for this, so if it notices you're not even connected to your chat, then it'll send you an email, and you can respond to the email, and it'll update the chat.”
Sunil Pai Mar 19, 2025 ▶ 12:00
Disclosure
Cloudflare plans to backport Agents API into regular Durable Objects
“We're probably going to backport that API into, like, regular durable objects now, like, out of the library.”
Sunil Pai Mar 19, 2025 ▶ 15:14
Insight
Pai: Durable Objects eliminate local-first sync delays on app restart
“Instead of the browser being where you sync the data, you can have a durable object that's syncing your data. Imagine if the durable object itself is a local first client that is pulling in data from multiple sources. And live updating. And the interesting thi…”
Sunil Pai Mar 19, 2025 ▶ 17:30
Insight
Wang: Infrastructure shapes applications by dictating what developers build
“Your infrastructure shapes your apps. If your infrastructure doesn't make it easy for you, then you just won't do it.”
Shawn Wang Mar 19, 2025 ▶ 20:00
Insight
Kozlov: Observability across millions of running agents is the next major challenge
“I think the next challenge is observability and okay, I've gone and spun off. I have 100,000, maybe millions of agents that are running. How do I track their different states? How do I track where their stock? I think that that's a really interesting next prob…”
Rita Kozlov Mar 19, 2025 ▶ 20:35
Opinion
Kozlov: Bullish on Model Context Protocol (MCP) as key to useful agents
“I'm very bullish on MCP. I'm really, really excited about it, but I think funnily enough, the term MCP is the thing that scares the normies away because it sounds so deeply technical, even though really it's the part that I think is going to Make agents intere…”
Rita Kozlov Mar 19, 2025 ▶ 22:19
Prediction Not checkable as stated
Kozlov: Wave of 'agent-first' businesses will emerge without traditional UIs
“I think that we're going to see a wave of, you know, going back to, again, Sunil, your point about mom and pop shops, these businesses turn up that are agent first, and that's kind of the only interface to using them as opposed to, you know, UIs and APIs and o…”
Rita Kozlov Mar 19, 2025 ▶ 22:52
Assertion Supported
Sunil Pai: Cloudflare allows running AI agents without Kubernetes or VMs
“See, bro, the first step was making sure you don't have to use Kubernetes, and that we kind of solved. Now we'll do the rest. Like, that's just it. Like you can run agents without Kubernetes or VMs.”
Sunil Pai Mar 19, 2025 ▶ 25:50
Prediction Not checkable as stated
Kozlov: Protocols like MCP will eventually replace browser-based AI agents
“Especially with people building agents, I think it's kind of funny because it's a bit, to me, the anthropomorphification of agents, where it's like, we humans use browsers, so my agent is going to use a browser, but eventually I think that will get replaced wi…”
Rita Kozlov Mar 19, 2025 ▶ 29:56
Disclosure
Kozlov: Cloudflare heavily researching agent authorization and authentication
“This is a really, really big area of research and investment for us is how do we authorize and authenticate users to act on humans' behalf.”
Rita Kozlov Mar 19, 2025 ▶ 30:51
Opinion
Sean Wang: Bot verification cannot be solved at HTTP rendering level
“I'm not sure it can be solved. I think you've always been able to spoof you know, user agents. You always been able to spoof IPs or whatever, right? Like they just, it just cannot be solved on the rendering level unless you want to change how HTTP works.”
Shawn Wang Mar 19, 2025 ▶ 32:05
Prediction Not checkable as stated
Kozlov: Agent identity verification must be solved for agents to take off
“I think this problem is gonna have to be solved for agents to take off, quite honestly. I mean, I see what you're saying, but we do have to at some point then pass identity onto, like, if we go back to what we were talking about of, you know, I would love an a…”
Rita Kozlov Mar 19, 2025 ▶ 33:01
Disclosure
Kozlov: Cloudflare is working on Durable Object-enabled containers
“Well, the thing that we hinted at, I mean, we are working on it and I think that the big unlock is going to be It's not either or, it's a both, and the thing that we're really excited about that maybe is the thing that I'll leave it to user for is durable obje…”
Rita Kozlov Mar 19, 2025 ▶ 34:10
Insight
Kozlov: Non-Kubernetes architectures are critical for cost-effective AI agent scaling
“It's easy to conflate long running with CPU intensive, and these are kind of not the same thing, and actually a lot of Specifically agentic workflows. A lot of what you're doing is you're waiting. You're waiting on human in the loop. You're waiting on LLM. You…”
Rita Kozlov Mar 19, 2025 ▶ 34:29
Made with StarZero

Turn any episode into a week of clips.

This entire site, over 200 episodes transcribed, diarized, checked and made playable, runs on the StarZero media pipeline. Drop in your own episode and the podcast clipper finds the moments worth sharing, cuts them, captions them, and reframes them for every feed.