ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial4 min readDisconfirmAI Editorial

iFood Senior Engineer Victor Coelho: Combining Deterministic Steps and Agentic Execution to Scale Coding Agents Across 15,000 Repositories

Victor Coelho, a Senior Software Engineer at iFood, describes the architectural pattern behind the company's Remote Agents Platform: deterministic steps bookend an agentic core, Structured Outputs serve as a verification contract, and cost per run is treated as an architectural decision. The platform has completed more than 25,000 runs across 15,000 repositories at an average of US$0.04 per task, according to self-reported figures published in OpenAI's customer story.

2026-11-24 08:00 GMT+8

Victor Coelho, a Senior Software Engineer at iFood, describes the company's Remote Agents Platform as a workflow that alternates between two fundamentally different types of steps. Deterministic operations bookend the process: cloning the repository, importing the skills the agent can use, setting up the working branch at the start; publishing the merge request and making generated artifacts available at the end. In between sits the agentic execution itself, running inside an isolated sandbox. "It's a combination of those two things: deterministic steps and agentic execution within the workflow," Coelho explains.

The pattern addresses a specific failure mode that emerges when coding agents operate at scale. iFood maintains more than 15,000 code repositories, each periodically needing tasks such as validating code against internal standards, fixing vulnerable dependencies, or running analyses. None of these tasks is difficult individually. The challenge multiplies when they must be solved across thousands of repositories simultaneously. Before the platform, each team built its own solution and all ran into the same obstacle: no shared execution infrastructure. "Solving this for one repository is easy. The challenge is solving it at scale," Coelho says.

The platform's entry point is a simple REST API. Users submit a prompt and environment requirements; the platform processes the task on a dedicated remote runner inside an isolated sandbox; the result is retrieved later as a merge request. Task progress can be monitored in real time. The sandbox runs Ubuntu with the toolchains iFood's ecosystem requires—Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go—along with general-purpose tools. Beyond the sandbox, the agent can access Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS.

Sign in / Sign up
ReadingResearchRadarInvestment framework

A second design decision addresses verification. When delegating execution at scale, determining whether the agent actually completed the task becomes a new problem. iFood's answer comes after the session: the result is processed using OpenAI's Structured Outputs, which requires the output to conform to a predefined contract. "From the agent's session, we can identify the outputs within the response structure we expect," Coelho says. "This helps reduce uncertainty and ensures we can always get a response from the agent's session, whether positive or negative." Without a structured response, there is no way to know at scale whether the agent achieved its objective.

The platform has completed more than 25,000 runs, consuming more than 27 billion tokens, at an average cost of US$0.04 per run, according to iFood's self-reported figures published in OpenAI's customer story. At that volume, cost per task stops being a minor operational detail and becomes an architectural consideration. Coelho chose GPT-5.6 Luna for what he describes as a balance of intelligence, efficiency, and execution speed among models at the same checkpoint. "Given our plans to scale the platform across many use cases at iFood, the balance of efficiency and intelligence that OpenAI's model provides ensures we can scale sustainably," he says.

The first major internal user was iFood's security team, which uses the platform to scan all 15,000 repositories for vulnerable dependencies and attempt fixes. After migrating to the Remote Agents Platform, the number of vulnerabilities fixed more than doubled, and the accuracy of those fixes also more than doubled, according to the same self-reported figures. The security team did not need to build its own agentic runtime or become experts in agent orchestration; it needed to call an API.

What a reader outside iFood's stack can take from this is the architectural principle rather than the specific numbers. The deterministic-agentic hybrid pattern separates operations that require no model judgment—cloning, publishing, artifact availability—from the task that does, making the overall workflow predictable and debuggable. The structured output contract turns "did the agent succeed?" from a human inspection problem into a schema validation problem. And treating cost per run as a first-class architectural constraint, rather than a billing detail discovered after deployment, shapes which tasks can be automated at scale.

The limits are equally specific. These are vendor-reported metrics from a single company's internal platform, published through OpenAI's marketing channel. The 2x improvement claim lacks a stated baseline methodology, sample size, or independent verification. The $0.04 average cost reflects one company's task mix, model choice, and token consumption profile; it does not generalize to other workloads. The pattern itself—deterministic bookends, agentic core, structured verification—is transferable, but its effectiveness depends on the nature of tasks delegated. Routine, well-scoped operations with clear success criteria suit this pattern; open-ended design work or tasks requiring human judgment at intermediate steps do not.

Sources

  • openai.comOpenAI↗
Continue researching →