brief, plan, act, check
A turn is a tool loop driven by the model and bounded by the harness, at most 40 steps and two hours. Multi-step work runs through a plan the harness enforces step by step.
The creative agent in G5 AI Studio at Galleri5. It plans, generates and edits image, video and audio work, and checks what it made before it answers. I built its base, co-built its core agent runtime, and built the infrastructure it runs on.
One chat, start to finish: a brief for a 10-second Tokyo ramen shot, the plan MIRO lays out, the takes it compares side by side, and the finished film.
A turn is a tool loop driven by the model and bounded by the harness, at most 40 steps and two hours. Multi-step work runs through a plan the harness enforces step by step.
A turn can run for minutes while video renders. In that time the person sends corrections, the context outgrows the model's window, generations finish or fail in the background, and the replica running the turn can restart. Production runs several replicas and a request can land on any of them, so all coordination between them (steers, wakes, live updates, summaries) goes through MongoDB. It survives a replica dying, at the cost of about a second of polling delay.
For production work MIRO builds small apps in the conversation: review boards to compare and approve shots, and trackers that follow a plan step by step.
The hard part was that the agent could not see them. In early tests it reported font cards as rendered when they were blank. Now each app reports what actually rendered (images loaded or broken, script errors, missing fonts) back to the server. Every write waits for that report, and a small model reviews it before the agent answers.
Approvals form a dependency graph. An approved item is locked and only a person can unlock it. Changing it marks everything built on it as stale and clears those approvals.
Every turn is exported as one trace: each model call with its token and cache counts, each tool call with its error if it failed. Export runs off the request path behind a bounded queue and a circuit breaker, so tracing can lose data but can never slow down or break a turn. LLM judges label turns for intent, outcome, failure cause and frustration, so failure rates can be tracked on a dashboard.
The content-safety check on generation prompts has a 600+ case eval suite, built from labelled cases and real production runs, and it gates every push. Adding a second-opinion model halved false positives, from 7.8% to 3.9%, while catching 98.6% of unsafe cases. Playbook selection has its own eval.
Agents write code to do real work: process media, build documents, make charts. That code is untrusted. I built MIRO's code execution capability on Daytona sandboxes, and it handles 80K+ runs a month.
Sandboxes start in under two seconds, because dependencies are baked into a prebuilt image instead of installed on every run.
Every generation in AI Studio, MIRO's included, goes through the inference gateway I built from an empty repo: 190K+ jobs a month, 1M+ since launch, routed to 170+ models from 10+ providers: fal, Google, BytePlus, ElevenLabs and self-hosted GPUs. Each model is a catalog entry that names its adapter, pricing and limits, so most new models need no code.
Before MIRO I built AI Studio's canvas planner. It turned a brief into a plan of image, video and audio steps that people could see, edit, approve and run, and it validated every plan before anything was spent. MIRO keeps the same rule: check the work before showing it.
Production content generated using this platform.