I am building a tutorial about an AI agent running an A/B test on Docker Cloud Sandboxes.
I start the demonstration with a simple shop that has no search, filter, or sort.
I show that AI shoppers test the shop and score how easy it was to use.
I use an analyst agent that reads shoppers’ feedback and suggests a few small fixes.
I use a builder agent that writes the code for each fix in its own sandbox, and the same shoppers test every new version.
I demonstrate that the version with the best score wins, and its code gets copied back to your laptop along with a full report.
I describe the project as using about ten SDK calls.
I cover using the @docker/sandboxes TypeScript SDK to sign in, store an OpenAI key as a secret, launch sandboxes, copy files in and out, run a server, get a public HTTPS URL, and run Codex inside a sandbox.
I describe the same pattern as useful for testing prompts, settings, or copy, anywhere you can pretend to be a user and give a score.
I plan to go slowly, one file at a time, so you can follow along even if you have never used Docker Cloud Sandboxes before.
Related: cloud sandbox workflows, long running cloud agents, agent frameworks and orchestration