English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Cloudflare Computer: Giving AI Agents a Persistent Virtual File System via Durable Objects

Forum topic · ✨步子哥 · 2026-08-05

Summary

Cloudflare's trending open-source project 'computer' gives AI agents a persistent virtual machine: a virtual file system backed by SQLite inside a Durable Object, so agents can retain state across hours-long, multi-tool tasks instead of suffering 'goldfish memory.' The design treats the file system as the agent's memory—agents read and write files rather than relying on vector databases or RAG pipelines—reusing the decades-old Unix toolchain (grep, find, make, git). The fixed file system is paired with pluggable execution backends: a Container backend that mounts state via FUSE into a real Linux environment, an Isolate shell backend running just-bash in a Worker, and an Isolate JavaScript backend for pure logic with node:fs/promises polyfills. State and execution are decoupled, the file system doubles as a shared protocol for multi-agent collaboration, and Durable Objects keep agent state alive on Cloudflare's 300+ node edge network. The project is explicitly PREVIEW ONLY with unstable APIs, but it signals Cloudflare systematically building out agent infrastructure—positioning the file system as the foundational state layer of a future 'agent operating system.'

You hand an AI agent a task, it finishes, you close the terminal—and the next time you call it, it remembers nothing.

It's like moving someone into a new apartment, then having them wake up the next morning to find all the furniture gone, including the code they were halfway through writing yesterday. Traditional agents' "stateless" design works fine for simple tasks, but once a task spans hours, days, and many tool calls, this "goldfish memory" becomes a fatal flaw.

Cloudflare's trending computer project this week tackles exactly this: giving an agent a real "computer"—not as a metaphor, but a virtual machine with a persistent file system, an execution environment, and switchable backends.

Core design: the file system as state

Traditional agent frameworks stuff "memory" into vector databases or chat context. Cloudflare Computer takes a completely different path: state is made into a file system.

Specifically, the agent's entire working state lives inside a Durable Object, with SQLite as the authoritative store underneath, exposed externally as a virtual file system. Whatever the agent wants to remember, it writes to a file; to recall previous context, it reads a file. No embedding retrieval needed, no RAG pipeline—the file system *is* the memory.

The key insight behind this design: a human programmer's working memory is the file system. Your code, configs, logs, TODO lists, intermediate artifacts—all files. Let the agent use a file system too, and it can directly reuse the Unix engineering toolchain humans have built over decades (grep, find, make, git), without reinventing an "AI-specific" memory abstraction.

Three backends, three execution modes

But a file system alone isn't enough—an agent also needs to *execute*: run code, call tools, invoke external commands. The clever part of Cloudflare Computer is that the file system is fixed, but the execution backend is pluggable.

Three backends cover three use cases:

  • Container backend: mounts the SQLite state via FUSE into a real Linux container. The agent runs real binaries, real networking, real Linux userspace—essentially a full computer.
  • Isolate shell backend: runs just-bash (a pure-JS bash implementation) inside a Cloudflare Worker, accessing authoritative state via RPC. No container overhead, fast startup, but limited capability.
  • Isolate JavaScript backend: runs an ECMAScript module inside a Dynamic Worker, with structured input/output, a node:fs/promises polyfill, and trusted ws:git and ws:artifacts modules. Suited to pure-logic tasks.
  • A Workspace can register multiple backends, with workspace.runtime.exec(source, { backend }) as the single entry point. The agent picks a backend based on the task: need pandoc to generate a PDF? Use Container. Need to quickly run some JS logic? Use Isolate JavaScript.

    Why this matters

    First, state and execution are decoupled. Traditional frameworks tie "memory" and "execution" together—use LangChain's memory and you must use LangChain's tool calling. Cloudflare Computer separates the state layer (Durable Object + SQLite + file system) from the execution layer (three backends), so you can bring your own agent runtime and use only its state layer.

    Second, the file system is a shared protocol between agents. In multi-agent collaboration, the hard part isn't "how to talk" but "how to share work products." With the file system as the shared layer, code, logs, and intermediate data written by agent A can be read directly by agent B—no bespoke message protocol required. This mirrors exactly how human teams collaborate.

    Third, Cloudflare's infrastructure advantage. Durable Objects are stateful compute units on Cloudflare's edge network—300+ nodes globally, low latency, automatic persistence. Putting agent state on Durable Objects means an agent isn't "waiting to die" in some GPU cluster; it lives on the edge network, ready to wake at any moment.

    Current status and limitations

    The README is explicitly marked PREVIEW ONLY—the API is unstable and not production-ready. Much of the current design is forward-looking; a lot of what's documented reflects intent, not the current code.

    But the direction is worth tracking. Cloudflare previously released cloudflare/agents as an agent deployment framework, and now computer as the state layer—they are systematically filling in every layer of agent infrastructure.

    The bigger picture

    Connect the recent trending projects and a clear layering trend emerges:

  • Agent runtime layer: Codex, Claude Code, Cursor—"how to execute one turn"
  • Loop control layer: projects like loopx—"how to manage multi-turn workflows"
  • State layer: Cloudflare Computer—"how to persist an agent's work products"
  • Skills layer: addyosmani/agent-skills—"how to encode engineer expertise into agents"
These four layers are developing independently, but will eventually assemble into a complete "agent operating system." Cloudflare Computer has chosen the hardest and most fundamental layer: the file system. Because the file system is the shared protocol for every other layer—runtimes write logs, loops write TODOs, skills write specs, and it all lands on files.

Giving an agent a computer isn't about giving it a stronger GPU—it's giving it a workspace where things can accumulate. This direction is closer to solving agents' long-term usability problem than "training an even bigger model."

---

*Project: cloudflare/computer · TypeScript · 796 stars today*

Tags

#cloudflare#ai-agents#durable-objects#virtual-file-system#sqlite#agent-infrastructure#open-source

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178595035