Menu

iFood Remote Agents Platform Engineering Workflow: The Problem It Solves

Maintaining a single code repository is rarely difficult. Validating style, patching a vulnerable dependency, or running a static analysis can be handled by one engineer. The problem changes completely when the same tasks must run across more than 15,000 repositories. iFood's answer is not another coding assistant or a new model prompt. It is an execution runtime: an API-first service that launches remote agentic coding tasks, runs them in isolated sandboxes, and returns verifiable results. The engineering workflow that makes this possible combines deterministic control points with an agentic middle stage, an approach designed for scale rather than for a single impressive demo.

The Problem: Scale, Not Intelligence

iFood maintains more than 15,000 code repositories. Each repository periodically needs tasks such as validating code standards, fixing vulnerable dependencies, and running analysis. None of these tasks is individually hard. The difficulty is that the work multiplies across every repository in the organization. Victor Coelho, a senior software engineer at iFood, described the distinction clearly: solving one repository is easy;the challenge is solving the same problem at scale across 15,000 repositories.

Before the platform existed, teams used fragmented approaches. Some teams wrote scripts, others relied on manual checklists, and some built one-off automation for a narrow use case. Each approach eventually hit the same wall. There was no reusable agentic runtime, meaning there was no common execution infrastructure that could accept a request, run an agent in a controlled environment, and return a result without requiring each team to rebuild the surrounding machinery.

That constraint shaped the platform's design goal. The team did not set out to provide intelligence or to solve a specific use case. The goal was to provide a unified execution runtime. Teams would keep domain knowledge and business context, while the platform would own the mechanics of execution. That division of responsibility is important. It means the platform does not need to understand every codebase. It only needs to guarantee that a task can be submitted, executed, and verified in the same way every time.

Engineering Workflow Design: Deterministic Edges, Agentic Middle

The platform is described as "a service to launch remote agentic coding tasks via API." Its core loop has three stages. First, a user submits a prompt and environment requirements through a REST call. Then the platform processes the task on a dedicated remote runner inside an isolated sandbox. Finally, the result is retrieved, and progress can be monitored in real time.

The entry point is deliberately simple: a REST API. Behind that API, the platform manages the entire task lifecycle and delegates execution to an isolated sandbox. This abstraction matters because callers do not need to know where the runner is located, how the sandbox is provisioned, or which model will execute the agentic stage. They only declare what they want done and under which environment constraints.

Inside the runner, the workflow alternates between two types of steps. Deterministic steps handle the beginning and the end of the process. At the start, the runner clones the repository, imports the skills available to the agent, and sets up a working branch. At the end, it publishes a merge request or produces a usable artifact. These steps are predictable because they follow a fixed sequence. The middle phase is where the actual agentic execution happens. This is the part that runs in the sandbox and applies model-driven problem solving to the task.

Victor Coelho summarizes the pattern as a combination of deterministic steps and agentic execution. Why structure the workflow this way?Because the deterministic edges reduce variability. The platform always starts from the same kind of repository state and always completes with the same kind of output. The agentic middle can remain flexible without making the whole pipeline unpredictable.

Execution Environment and Toolchain

The sandbox runs Ubuntu and includes the toolchain needed across iFood's ecosystem. It ships with Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go, along with general-purpose tools. This preconfigured environment is part of what makes the workflow reusable. A team does not need to assemble a container image for each language or each repository. The platform already provides a common base, and the agent can work with the relevant toolchain for the task at hand.

Outside the sandbox, the agent can access the internal services that a normal developer would use. These include Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS. That separation between sandbox and external services is significant. The sandbox provides isolation, while access to internal systems is still available for tasks that need to inspect dependencies, push changes, or interact with deployment infrastructure.

The design avoids a common failure mode in agentic systems: giving a model unrestricted access to a developer's machine or to production credentials. Instead, access is scoped to a controlled environment. The sandbox can be torn down after each run, and the platform can enforce policies on which tools and resources the agent may reach. This makes the workflow acceptable for security-sensitive work, which later becomes one of the platform's main use cases.

Model Selection: Balancing Intelligence, Efficiency, and Speed

Choosing a model for an agentic platform is not the same as choosing a model for an interactive chat. The platform runs many tasks, and each task can consume tens of thousands of tokens. Under those conditions, small differences in cost per request compound quickly. The iFood team selected GPT-5.6 Luna based on three factors: intelligence, efficiency, and execution speed, where execution speed means how quickly the model completes a task. The goal was to find a balance among these factors in models from the same checkpoint family, rather than optimizing for a single benchmark score.

The reasoning becomes clear when looking at unit economics. The average inference cost per run is approximately US$0.04. That figure is not a minor operational detail. It is an architectural consideration. If a security campaign runs across thousands of repositories, the total cost is not negligible, but it remains manageable precisely because the model choice keeps per-run cost low while still delivering enough reasoning quality to complete automated fixes.

This balance is especially important at scale. A model that is more capable but much slower or more expensive might produce better answers in a controlled evaluation while becoming impractical for a pipeline that must process 15,000 repositories. Conversely, a cheaper but weaker model could generate more invalid results, shifting the burden to human review. The platform's model selection reflects that trade-off: it optimizes for completion speed and cost within an acceptable quality band, not for isolated output quality.

Result Validation with Structured Outputs

Scale introduces a new problem. Once tasks are delegated to an agent, the platform must decide automatically whether the agent actually completed the work. In an interactive session, a human can inspect a diff, run tests, or ask follow-up questions. In an asynchronous pipeline across thousands of repositories, that human review is not scalable.

iFood's solution is to validate results after the main session ends. In a post-session step, the platform uses OpenAI Structured Outputs to process the result and require a response that conforms to a predefined contract. The contract defines the expected output structure. If the agent returns a valid structure, the platform can interpret it as a positive or negative response. If the agent cannot satisfy the contract, that failure is still captured as a structured response rather than as an ambiguous free-text message.

This mechanism lowers uncertainty. The platform does not need to guess whether a long natural-language answer means the task succeeded. The output is parsed against a known shape, so the result can be logged, forwarded, or acted upon by downstream systems. Structured Outputs are used here as a validation layer, not as the main generation step. The agent still works freely during the middle phase, but the final interaction is constrained enough to make automation reliable.

First Production Use Case and Measured Impact

The first major user of the platform was the security team. The internal security product scans 15,000 repositories for vulnerable dependencies and attempts to fix them. That type of work maps naturally to the platform's design: a large number of similar tasks, a controlled execution environment, and a need for verifiable results.

After the security workflows migrated to the platform, the number of fixed vulnerabilities doubled, reaching more than twice the previous figure. The platform has also completed more than 25,000 runs in total. Those numbers indicate that the execution runtime is not a pilot project. It is being used for ongoing, production-facing work at a scale that would be difficult to replicate with manual processes.

The asynchronous nature of the platform produces a second benefit. Developers do not need to wait for a security scan to finish before continuing their own work. They submit the request and retrieve the result later. That change reduces blocking time and lets engineering teams work in parallel with agentic execution. The platform does not promise faster individual runs in every case. It promises that runs can happen in the background and that results arrive through a consistent channel, which is often more valuable than reducing a single task from ten minutes to eight.

Why the Workflow Works at Scale

The workflow succeeds because it turns agent execution into an API call. The caller submits a prompt and environment requirements. The platform handles the rest. That abstraction hides the complexity of sandbox provisioning, runner management, model selection, and result validation. Teams can focus on their own domain problems, such as which vulnerabilities to prioritize or which dependency upgrades are safe, while the platform takes care of execution.

Three design choices make the system predictable. Deterministic steps at the beginning and end frame the run. An isolated sandbox constrains what the agent can touch. Structured Outputs make the final result machine-readable. None of these choices is novel by itself, but their combination is what allows the platform to operate across 15,000 repositories without collapsing under variability.

For platform engineering teams, the lesson is not that a specific model solved the problem. The more durable pattern is the separation of concerns: intelligence stays in the agent, policy stays in the platform, and execution happens in a controlled, observable environment. That separation is what makes the system reusable across different internal teams and different classes of repository maintenance work.

FAQ

What does the iFood Remote Agents Platform actually do?

It provides an API-based service for launching remote agentic coding tasks. Users submit a prompt and environment requirements through REST, and the platform executes the task on a dedicated runner inside an isolated sandbox, then returns the result.

How does the platform verify that an agent finished a task?

After the agentic session, the platform uses OpenAI Structured Outputs to require a response that matches a predefined contract. This lets the system identify a valid positive or negative result without relying on free-text interpretation.

Which model does the platform use for agentic execution?

The agentic execution stage uses GPT-5.6 Luna, selected for its balance of intelligence, efficiency, and execution speed. The average inference cost is about US$0.04 per run, which matters when tasks run across thousands of repositories.

Is the platform limited to security use cases?

No. The first production use case came from the security team, but the platform is designed as a general execution runtime. Any team with repository-scale tasks can submit work through the same API without building its own agentic infrastructure.