A reusable Workspace primitive for Cloudflare Workers — DO-backed virtual filesystem with two-way sync to a Sandbox container, plus WASM execution via Dynamic Workers — alongside a reference agent that uses it.
| Package | Description |
|---|---|
| packages/workspace | @cloudflare/workspace — the reusable primitive. |
| apps/agent | An LLM-driven chat agent that writes Zig, compiles it to WASM, and runs it. |
npm install
npm run build # builds every workspace
npm run typecheck # tsc --noEmit across the monorepoTo run the demo agent locally:
cd apps/agent
cp .dev.vars.example .dev.vars
# … edit .dev.vars with OPENAI_API_KEY (or omit for Workers AI) …
npm run devTo deploy:
cd apps/agent
npm run deploypredeploy builds the workspace package and the UI bundle, so a fresh
clone deploys correctly without manual build steps.