How iFood scales coding agents across 15,000 repositories

OpenAI
iFood built a REST API platform that runs coding agents in isolated sandboxes, scaling tasks across 15,000 repositories.

Summary

iFood maintains over 15,000 code repositories, each periodically requiring tasks like validating code, fixing vulnerable dependencies, or running analyses. While these tasks are simple individually, scaling them was the real challenge. The company built a Remote Agents Platform—an internal REST API that launches remote agentic coding tasks. Users submit a prompt and environment requirements; the platform processes the task in a dedicated remote runner inside an isolated Ubuntu sandbox with toolchains for Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go, plus access to Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS. The workflow combines deterministic steps (cloning, importing skills, branch setup, publishing merge requests) with agentic execution using GPT-5.6 Luna, chosen for its balance of intelligence, efficiency, and speed. Results are processed using OpenAI's Structured Outputs to ensure responses follow a predefined contract, automatically determining success or failure. The platform's first major user, an internal security product that scans for vulnerable dependencies, more than doubled both fix accuracy and the number of vulnerabilities resolved. The platform has completed over 25,000 tasks using more than 27 billion tokens at an average cost of US$0.04 per run. Asynchronous execution frees developers from monitoring tasks, letting them delegate routine work. The platform was inspired by OpenAI's Batch and Agents APIs. Key lessons include: the bottleneck is often runtime rather than use case; combine deterministic steps with agentic execution; treat cost per run as an architectural decision; require structured outputs; and asynchronous execution delivers real productivity gains.

(Source:OpenAI)