iFood's Remote Agents Platform: Scaling Coding Agents Across 15,000 Repositories
iFood built an internal Remote Agents Platform that turns agentic coding work into REST API calls, runs GPT-5.6 Luna inside isolated sandboxes, and has completed more than 25,000 tasks across its 15,000-plus repositories at an average cost of US$0.04 per run. The customer story matters because it shows that the bottleneck for coding agents at enterprise scale is often execution infrastructure, not the difficulty of any single task.
The bottleneck is execution infrastructure, not the task
iFood's central lesson is that applying coding agents across 15,000 repositories is hard because of the runtime required to execute tasks consistently at scale, not because any one repository task is difficult.
iFood maintains more than 15,000 code repositories. Each repository periodically needs tasks such as validating code against internal standards, fixing vulnerable dependencies, or running an analysis. Before the platform, teams solved these problems in fragmented ways and kept hitting the same obstacle.
Solving this for one repository is easy. The challenge is solving it at scale. The Remote Agents Platform is designed to make it possible to solve this at scale across all 15,000 repositories.
Before, we had fragmented solutions. Imagine several teams at iFood trying to solve different problems, but without this layer, this agentic runtime, available to them. In the end, those solutions always ran into the same problem.
The missing piece was execution infrastructure: a dedicated runtime that teams could call instead of rebuilding agent orchestration themselves.
Teams can focus on solving their business problems and delegate execution to our platform.
How the Remote Agents Platform works: API in, sandbox, merge request out
The Remote Agents Platform exposes an agentic coding run as a REST API. A caller submits a prompt and environment requirements, the platform executes the task on a dedicated remote runner inside an isolated sandbox, and the caller retrieves the result later.
The platform's entry point is a REST API. Users create runs through that API. Internally, iFood manages the full lifecycle and delegates execution to isolated sandboxes. Task progress can be monitored in real time.
The workflow combines deterministic steps with agentic execution. Deterministic steps bookend the run: cloning the repository, importing the skills the agent can use, and setting up the working branch at the start; publishing the merge request and making generated artifacts available at the end. The agentic execution runs GPT-5.6 Luna inside the sandbox in between.
It's a combination of those two things: deterministic steps and agentic execution within the workflow.
The sandbox runs Ubuntu and includes 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.
GPT-5.6 Luna was chosen for balance of intelligence, efficiency, and speed
iFood selected GPT-5.6 Luna because benchmarks at the same checkpoint showed the best combined balance of intelligence, efficiency, and execution speed, not because of a single benchmark score.
We chose GPT-5.6 Luna because, among models at the same checkpoint, the benchmarks showed it offered a great balance of intelligence, efficiency, and execution speed—how quickly it could complete tasks. Those three qualities together led us to choose GPT-5.6 Luna.
That balance matters because the platform is built to scale. With tens of thousands of tokens consumed per run, an average cost of four U.S. cents per run becomes an architectural consideration rather than a minor detail.
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.
Structured Outputs makes success and failure machine-checkable
The platform uses OpenAI Structured Outputs after each agent session so that every response conforms to a predefined contract. That lets iFood automatically identify whether the agent produced an expected output and reduces uncertainty about whether a run succeeded.
We process the result using Structured Outputs, which ensures the response follows a predefined contract. From the agent's session, we can identify the outputs within the response structure we expect. This helps reduce uncertainty and ensures we can always get a response from the agent's session, whether positive or negative.
The first major user is security, and fix accuracy more than doubled
The platform's first major internal user is an iFood security product that scans the 15,000 repositories for vulnerable dependencies and attempts to fix them. After migrating to the Remote Agents Platform, the accuracy of those fixes and the number of vulnerabilities resolved both more than doubled.
With our platform, the accuracy of those changes, those fixes, more than doubled.
The security team did not need to build its own agentic runtime or become expert in agent orchestration. It needed to call an API. The customer story frames that division of labor as the core advantage of the platform.
Asynchronous execution returns developer attention, not just speed
The productivity gain iFood emphasizes is delegation without supervision, not faster task completion under close monitoring. Because a task runs asynchronously, a developer can start a code fix, performance analysis, or routine task and then attend a meeting without watching the run.
While they're in a meeting, they can launch a code fix, a performance analysis, or another task that's a little more routine—something they can delegate without having to monitor it at that moment.
You can unlock those productivity gains without necessarily having to monitor the work as it happens.
Routine work stops competing for the team's attention, which leaves time for problems that require human judgment.
Results at a glance
At the time of the customer story, iFood reported the following operational results:
- The platform has completed more than 25,000 tasks and consumed more than 27 billion tokens, at an average cost of US$0.04 per run.
- After migrating to the Remote Agents Platform, the internal security platform more than doubled both the accuracy of its fixes and the number of vulnerabilities resolved.
- Coverage extends across iFood's more than 15,000 code repositories.
- All runs use GPT-5.6 Luna, chosen for its balance of intelligence, efficiency, and speed.
- Structured Outputs ensures that each session returns a result that follows a predefined contract, whether positive or negative.
- Product teams have moved from building fragmented solutions to delegating agentic execution through a REST API.
Design lessons for teams building internal agent platforms
iFood's experience yields five concrete lessons for organizations trying to scale coding agents across many repositories.
- The bottleneck is often the runtime, not the use case. Several teams already knew what they wanted to automate; they lacked an environment in which to run it.
- Combine deterministic steps with agentic execution. Cloning, publishing, and making artifacts available do not require a model; the complex task in between does.
- Treat cost per run as an architectural decision. At scale, the cost per task determines what is feasible to automate.
- Require outputs to follow a contract. Without a structured response, there is no way to know at scale whether the agent achieved its objective.
- Asynchronous execution is the real productivity gain. The value lies in not having to monitor the work, rather than completing it faster while watching over it.
Implementation choices worth copying
iFood's customer story also offers practical implementation tips for teams building similar internal platforms.
- Expose agentic capabilities through an internal API so other teams can use them without rebuilding the infrastructure.
- Isolate each run in its own sandbox, with the ecosystem's toolchains already installed.
- Choose a model by considering intelligence, cost, and speed together, rather than a single benchmark.
- Use structured outputs to classify success and failure automatically.
- Start with an internal user that has a clear pain point and high volume. At iFood, that was the security platform.
Inspiration and next steps
The Remote Agents Platform was explicitly modeled on OpenAI's API products, including the Batch API and the more recent Agents API. The inspiration extended beyond the concept to interface design, resource organization, and asynchronous execution with results retrieved later.
The Remote Agents Platform drew a lot of inspiration from OpenAI's APIs, both the Batch API and the Agents API, which is an even more recent OpenAI product. We built a platform that resembles those products, but is internal to iFood.
These products directly inspired how we built our solution.
iFood plans to bring the platform to many more use cases across the company, expanding the range of internal products that delegate agentic execution to it. Cost per task will determine whether that expansion can be sustained.