How iFood scales coding agents across 15,000 repositories
Summary
iFood maintains over 15,000 code repositories, each periodically needing tasks like code validation, dependency vulnerability fixes, and analysis. These tasks are simple individually but challenging at scale. To address this, iFood's team built the Remote Agents Platform, an internal REST API that launches remote agentic coding tasks. Users submit prompts and environment requirements via a REST call; the platform executes the task in an isolated Ubuntu sandbox with all needed toolchains (Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, Go) and access to Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS; results are retrieved later as merge requests. The workflow combines deterministic steps (cloning, importing skills, setting up branches, publishing merge requests) with agentic execution using GPT-5.6 Luna, chosen for its balance of intelligence, efficiency, and execution speed. At scale, the average cost of four U.S. cents per run becomes an architectural consideration. To automatically verify task completion, iFood uses OpenAI's Structured Outputs to ensure responses follow a predefined contract. The first major user, an internal security platform, scans all 15,000 repositories for vulnerable dependencies and fixes them; after migration, the accuracy of fixes and the number of vulnerabilities resolved more than doubled. The platform has completed over 25,000 tasks, consumed more than 27 billion tokens, and enables asynchronous execution so developers can delegate routine work without monitoring it. iFood drew inspiration from OpenAI's Batch API and Agents API, extending that to interface design, resource organization, and asynchronous execution. Lessons include: the bottleneck is often the runtime, not the use case; combine deterministic steps with agentic execution; treat cost per run as an architectural decision; require outputs to follow a contract; and asynchronous execution provides the real productivity gain. The team plans to expand the platform to more internal use cases, with cost per task determining sustainability.
(Source:OpenAI)