Scaling Engineering Through Agentic Infrastructure
Managing over 15,000 code repositories is a logistical nightmare for any major enterprise. For iFood, the leading Latin American technology company, the bottleneck for innovation was not a lack of engineering talent, but a lack of unified execution infrastructure. To solve this, the engineering team developed an internal solution known as the Remote Agents Platform, a system designed to treat complex coding tasks as simple API calls. By centralizing the execution environment, iFood has moved away from fragmented, team-specific solutions to a robust, scalable architecture that automates routine code maintenance.
The platform functions as a sophisticated abstraction layer. When a developer or an automated system needs to perform a task—such as patching a dependency, running a security audit, or validating code standards—they initiate a REST API request. The platform then takes over, spinning up an isolated sandbox environment to execute the request using GPT-5.6 Luna. This approach effectively decouples the business logic from the underlying execution infrastructure, allowing individual teams to focus on solving high-level problems while delegating the repetitive, labor-intensive tasks to the platform.
Predictable Workflow Architecture
The success of iFood’s system lies in its hybrid design, which combines deterministic programming with non-deterministic agentic execution. The workflow is bookended by reliable, repeatable steps: cloning the repository, importing necessary toolchains, setting up the working branch, and eventually publishing the resulting merge request or artifacts. Sandwiched between these rigid steps is the intelligent execution phase, where the model performs the actual coding analysis and remediation.
The underlying sandbox environment is highly flexible, supporting a vast array of languages including Python, Java, Go, TypeScript, and Rust. It is integrated with essential enterprise tools such as GitLab, Kubernetes, Docker, and Snyk. By forcing the agentic process to operate within these predefined deterministic boundaries, the system ensures that the output is not just intelligent but also ready for production integration. To manage this at scale, the team utilizes OpenAI’s Structured Outputs, which enforces a strict contractual format on all agent responses. This ensures that the platform can automatically interpret the agent's results as either a successful resolution or a clear failure, eliminating the need for human verification in routine cycles.
Why it Matters
- Operational Efficiency: With over 25,000 runs completed, the platform allows developers to offload maintenance tasks during meetings or off-hours, recapturing time for more creative, high-judgment engineering work.
- Security Scaling: The platform’s first major success was in automated vulnerability management. By centralizing security scans and fixes across 15,000 repositories, iFood managed to double the accuracy and volume of its security remediations.
- Architectural Sustainability: By selecting GPT-5.6 Luna for its specific balance of speed, intelligence, and cost-effectiveness, iFood has achieved an impressive average inference cost of just US$0.04 per task, proving that agentic workflows can be economically viable at a massive enterprise scale.
Ultimately, iFood’s transformation highlights a critical lesson for large-scale organizations: agentic capability is useless without a reliable, scalable runtime. By treating cost-per-run as a primary architectural constraint and prioritizing asynchronous execution, iFood has created a model for how modern enterprises can integrate AI into their core infrastructure, moving from sporadic AI testing to a persistent, value-driving agentic ecosystem.









