Skip to content

SYSTEM Cited by 1 source

Cloudflare Shell

@cloudflare/shell (github.com/cloudflare/agents/tree/main/packages/shell) provides a durable virtual filesystem inside a Durable Object, backed by SQLite. It exposes typed file operations — read, write, edit, search, grep, diff — that agent harnesses use as tools.

Motivation

Agent harnesses (coding agents especially) need a filesystem for reading files, writing outputs, searching code, and understanding diffs. A full container is expensive for what agents mostly do — text operations. @cloudflare/shell eliminates container overhead for the majority case.

(Source: Agents platform post.)

Architecture

  • Storage: SQLite within the Durable Object (persists across executions)
  • API: typed file operations (not a POSIX shell)
  • Scope: one virtual filesystem per agent instance (one DO per agent)
  • Upgrade path: @cloudflare/workspace syncs the virtual FS to a Cloudflare Container when full OS access is needed

Usage in Flue

On the Cloudflare target, Flue agents write JavaScript against the workspace virtual file state API powered by @cloudflare/shell, running operations within the Durable Object isolate model.

Seen in

Last updated · 542 distilled / 1,571 read