# ⚡️ Why you should build Science Fiction — Sunil Pai, Cloudflare
<!--
ref: @content/youtube/latent-space/why-you-should-build-science-fiction-sunil-pai-cloudflare
tags: [Cloudflare Workers, Durable Objects, Dynamic Workers, agent architecture, Code Mode, skills, open source forks]
version: 2
updated_at: 2026-11-24T05:03:02.950Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=287Q-bs_pEU)**

# ⚡️ Why you should build Science Fiction — Sunil Pai, Cloudflare

*Synthesized from Sunil Pai in conversation with the Latent Space host on Latent Space, 2026-05-24.*

Sunil Pai, of Cloudflare, talks with the Latent Space host, who is not named in the transcript, about Cloudflare's agent primitives, the Managed Agents launch from Anthropic, skills, and open-source forking.

## Core Thesis
Sunil Pai argues that long-running agents need a new architecture built on stateful serverless primitives and safe isolates for running generated code, rather than on always-on virtual machines. He also argues that skills may become a portable layer across languages and companies, and he urges builders to try original ideas instead of another agent framework.

## Key Insights
- **Durable Objects.** He describes them as stateful serverless programming, which he calls the first implementation of the actor model in an infrastructure layer, letting millions of stateful background instances run without a VM for each.
- **Dynamic Workers.** These run user-generated or LLM-generated code with zero startup time in a sandbox where only chosen APIs are exposed. The recommended default cancels all outgoing traffic.
- **Two-tool MCP server.** Cloudflare's API has about 2,600 endpoints, so its MCP server exposes two tools, search and execute. Each takes submitted JavaScript that runs in an isolate, letting one call search the API spec and a second act on it, with no back-and-forth with the model.
- **Harness separation.** He says Anthropic's Managed Agents separates the harness from the execution environment, which he considers a sound approach for software that does not exist yet.
- **Skills as translation.** He suggests skills may be the portable layer because they are plain English and can bundle code, though he notes the question of when a skill has to become code.
- **Vercel fork episode.** He describes porting Vercel Labs' just-bash project to Cloudflare by pointing Opus at it, then a public disagreement with Vercel's CTO after he published it, and an apology he says he wrote.
- **Open source.** He argues forking should be encouraged because it lets you own dependencies, and he says some open-source repositories have become hostile to contributions; the Agents SDK now accepts only issues.

## Actionable Takeaways
1. Model long-running agent state on stateful serverless objects rather than always-on VMs.
2. Run model-generated code in an isolate that exposes only the APIs you choose, with outbound traffic blocked by default.
3. For a very large API, expose a search tool and an execute tool that accept code, not one tool per endpoint.
4. Fork and vendor a dependency you rely on, so you control its future.
5. Build something original for personal or family use before aiming at an enterprise deal.

## Notable Quotes
> "I'm begging you to be original and to have courage to try a new idea." — Sunil Pai

> "I don't need another agent framework. Nobody needs it." — Sunil Pai

---

*Related: `@content/web/github/2026-11-25-claude-code-v2-1-332` · `@content/web/github/2026-11-24-builtin-ship-shadows-user-skill` · `@content/web/github/2026-11-17-open-artifact` · `@content/youtube/yifan-bth/we-are-missing-the-point-of-mcp-its-not-just-about-tools` · `@content/youtube/yifan-bth/the-openclaw-security-settings-i-actually-change`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*