How iFood scales coding agents across 15,000 repositories
Summary
iFood's engineering team faced a scale problem: more than 15,000 code repositories each periodically needed routine work such as validating code against internal standards, fixing vulnerable dependencies, and running analyses. Individual tasks were easy, but multiplying them across every repository overwhelmed teams, which had previously built fragmented solutions that hit the same execution bottleneck. The solution was the Remote Agents Platform, an internal API that launches remote agentic coding tasks. A user submits a prompt and environment requirements through a REST call; the platform runs the task on a dedicated remote runner inside an isolated Ubuntu sandbox containing iFood's toolchains (Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go) and access to Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS; the result is retrieved later as a merge request. The workflow combines deterministic steps (cloning the repository, importing agent skills, setting up the working branch, then publishing the merge request and artifacts) with agentic execution powered by GPT-5.6 Luna, chosen for its balance of intelligence, efficiency, and speed. To verify results at scale, the platform processes each session's output using OpenAI's Structured Outputs, enforcing a predefined contract so success or failure can be classified automatically. The first major internal user was the security platform, which scans all 15,000 repositories for vulnerable dependencies and fixes them; migration more than doubled both the accuracy of fixes and the number of vulnerabilities resolved. Asynchronous execution lets developers delegate routine work without monitoring it, freeing time for problems that require judgment. The platform has completed more than 25,000 tasks, consuming over 27 billion tokens at an average cost of about US$0.04 per run. The team drew inspiration from OpenAI's Batch and Agents APIs and plans to expand the platform to many more internal use cases, with cost per task determining how far that expansion can be sustained.
(Source:OpenAI)