Cloudflare ships experimental Agents SDK example running the Codex agent loop on Workers

dinasaur_404 · x · 2026-11-11

Cloudflare published an experimental Agents SDK example that runs the Codex agent loop inside a Durable Object on Workers: conversations, files, and completed model/tool results persist across restarts so agents can recover from interruptions. The implementation compiles Codex's Rust turn-processing code to WebAssembly and combines four Agents SDK capabilities — Tasks (journaling calls, reusing completed results), Sessions (history storage and context compaction), Streams (ordered event replay), and Workspace (persistent file tools) — configured via AI Gateway with GPT-6.1 Sol.

Original post →

More from coding & agent

coding & agent channel →