How iFood scales coding agents across 15,000 repositories

2026-11-29 · OpenAI

How iFood scales coding agents across 15,000 repositories

OpenAI's customer story describes iFood's Remote Agents Platform. iFood is a Latin America technology enterprise with more than 15,000 code repositories. The platform has completed over 25,000 runs, at an average inference cost of US$0.04 per run.

  • Repositories: 15,000+
  • Runs completed: 25,000+
  • Average inference cost per run: US$0.04
  • Vulnerabilities fixed through the security platform: more than doubled

It turns engineering tasks into API calls: teams delegate work, execution happens in a remote sandbox, and the result comes back as a merge request. Through an internal security platform, the number of vulnerabilities fixed more than doubled.

The challenge is scale, not the task

Each repository periodically needs specific tasks performed, such as validating code against internal standards, fixing vulnerable dependencies, or running an analysis. None of these tasks is difficult by itself; the challenge comes when they multiply. Victor Coelho, Senior Software Engineer at iFood, says solving this for one repository is easy, but solving it at scale across all 15,000 repositories is the challenge, and the platform was designed to make that possible. Before the platform, teams had fragmented solutions and all ran into the same obstacle: execution infrastructure, a dedicated runtime, was missing. The platform lets teams focus on business problems and delegate execution.

A coding agent in the cloud, accessed through an API

The platform is described as an API that launches a remote agentic coding task. The cycle has three steps: the user submits a prompt and environment requirements through a REST call; the platform processes the task on a dedicated remote runner inside an isolated sandbox; and the result is retrieved later. Progress can be monitored in real time.

The runner alternates between two types of steps, making the workflow predictable. Deterministic steps bookend the workflow: at the start, cloning the repository, importing the skills the agent can use, and setting up the working branch; at the end, publishing the merge request and making generated artifacts available. In between is agentic execution, running GPT-5.6 Luna inside the sandbox. The sandbox runs Ubuntu and includes the toolchains iFood's ecosystem requires: Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go, plus general-purpose tools. Beyond the sandbox, the agent can access Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS.

Model choice and cost

iFood chose GPT-5.6 Luna based on three factors considered together: intelligence, efficiency, and execution speed, meaning how quickly it could complete tasks. Benchmarks showed a strong balance among models at the same checkpoint. That balance matters more for a platform built to scale than for a one-off use case. With tens of thousands of tokens consumed, an average cost of four U.S. cents per run becomes an architectural consideration. Coelho says that given plans to scale the platform across many use cases, the model's balance of efficiency and intelligence supports sustainable scaling.

Using Structured Outputs to determine completion

Delegating execution at scale creates a new challenge: automatically determining whether the agent did what it was supposed to do. After execution, the result is processed using OpenAI's Structured Outputs, which requires output to conform to a predefined contract. From the agent's session, iFood can identify expected outputs within the response structure. This reduces uncertainty and ensures a response from the session, whether positive or negative.

First major user: security

The platform already powers an internal iFood security product that scans the 15,000 repositories for vulnerable dependencies and attempts to fix them. After migration, the accuracy of those fixes more than doubled. The use case illustrates the platform's idea: the security team did not need to build its own agentic runtime or become experts in agent orchestration; it needed to call an API.

Asynchronous execution gives developers time back

The team emphasizes what asynchronous execution frees developers to do, rather than replacement. Because the task is delegated and runs without supervision, the developer does not have to stay focused on monitoring it. For example, while in a meeting, they can launch a code fix, a performance analysis, or another more routine task they can delegate without monitoring at that moment. Routine work no longer competes for the team's attention, leaving time for other work.

Source