How iFood scales coding agents across 15,000 repositories
Summary
iFood maintains more than 15,000 code repositories, each periodically needing tasks like validating code against internal standards, fixing vulnerable dependencies, or running analyses. Solving this for one repository is easy, but the challenge is doing it at scale, and fragmented team-level solutions all hit the same obstacle: the missing piece was execution infrastructure, not intelligence or use cases. iFood's Remote Agents Platform addresses this by turning engineering tasks into API calls: users submit a prompt and environment requirements through a REST API, the platform runs the task on a dedicated remote runner inside an isolated Ubuntu sandbox with the toolchains iFood's ecosystem requires, and the result is returned as a merge request that can be monitored in real time. The workflow alternates between deterministic steps (cloning the repository, importing agent skills, setting up the working branch, publishing the merge request and artifacts) and agentic execution powered by GPT-5.6 Luna, chosen for its balance of intelligence, efficiency, and execution speed; at tens of thousands of tokens consumed, an average cost of four U.S. cents per run becomes an architectural consideration. To determine automatically whether the agent completed its task, iFood processes results using OpenAI's Structured Outputs, which enforces a predefined contract and reduces uncertainty. The platform's first major user is an internal security product that scans all 15,000 repositories for vulnerable dependencies and fixes them; after migration, the accuracy of fixes and the number of vulnerabilities resolved both more than doubled. Asynchronous execution frees developers from monitoring tasks, letting them delegate routine work such as code fixes or performance analyses while in meetings and focus their attention on problems requiring judgment. The design drew inspiration from OpenAI's Batch and Agents APIs in interface design, resource organization, and asynchronous execution. To date, the platform has completed more than 25,000 tasks, consuming more than 27 billion tokens at an average cost of US$0.04 per run. Key lessons include treating the runtime rather than the use case as the usual bottleneck, combining deterministic steps with agentic execution, treating cost per run as an architectural decision at scale, requiring outputs to follow a contract, and recognizing that asynchronous execution delivers the real productivity gain. Next, iFood plans to expand the platform to many more internal use cases, with cost per task determining whether that expansion is sustainable.
(Source:OpenAI)