iFood scales coding agents across 15,000 repositories
iFood has deployed a Remote Agents Platform to automate tasks across 15,000 repositories, doubling security fix accuracy through agentic execution.
Source: OpenAI NewsiFood has successfully deployed a Remote Agents Platform to manage coding tasks across its 15,000 code repositories, shifting from fragmented manual processes to a centralized API-driven workflow. This transition allows the company to automate routine engineering duties, such as dependency updates and code validation, at an enterprise scale.
How does the Remote Agents Platform function?
According to OpenAI, the platform operates as a REST API that allows engineering teams to delegate complex tasks to remote agents. The workflow is structured into three distinct phases: a user submits a prompt and environment requirements via an API call, the platform executes the task within an isolated Ubuntu sandbox, and the results are retrieved asynchronously.
To ensure reliability, the platform uses a hybrid approach of deterministic and agentic steps. The beginning and end of the process—such as cloning a repository, setting up working branches, and publishing merge requests—are handled through deterministic steps. The core logic in between is performed by agentic execution using the GPT-5.6 Luna model. This sandbox environment is pre-configured with essential toolchains, including Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go, and can interact with external services like GitLab, Docker, and AWS.
Why did iFood choose GPT-5.6 Luna?
When selecting a model for large-scale deployment, iFood prioritized a balance of three specific metrics: intelligence, efficiency, and execution speed. According to Victor Coelho, a Senior Software Engineer at iFood, the benchmarks for GPT-5.6 Luna showed it offered the optimal combination of these qualities at its current checkpoint.
This balance is critical for maintaining sustainability when operating at scale. With the platform having completed more than 25,000 runs and consuming over 27 billion tokens, the cost per execution becomes a vital architectural consideration. iFood reported an average inference cost of US$0.04 per run, a figure that allows for continuous scaling across their vast repository landscape.
How does the system verify agent performance?
Automating tasks across thousands of repositories introduces the risk of unpredictable or incorrect outputs. To mitigate this, iFood utilizes OpenAI’s Structured Outputs to verify that every agent session adheres to a predefined contract.
By requiring the response to follow a specific structure, the platform can automatically determine whether an agent successfully completed its objective or failed. This programmatic verification allows the system to handle both positive and negative outcomes without requiring manual human oversight for every single run. This capability is essential for moving from simple automation to true agentic orchestration.
What impact has this had on cybersecurity?
The first major implementation of the platform was within iFood's internal security division. The security team used the agents to scan the 15,000 repositories for vulnerable dependencies and attempt automated fixes.
According to the report from OpenAI, this migration resulted in a significant performance boost: the accuracy of security fixes more than doubled, and the total number of vulnerabilities resolved also saw a two-fold increase. This use case demonstrates that the platform's value lies not just in speed, but in the ability to execute complex, high-volume security maintenance tasks that were previously too fragmented to manage effectively.
How does this change developer productivity?
The platform is designed to support, rather than replace, human engineers by handling routine, repetitive work through asynchronous execution. Because the tasks are delegated to the cloud and run in a sandbox, developers do not need to monitor the progress in real time.
This allows engineers to launch a code fix or a performance analysis and then move on to other work, such as attending meetings or focusing on high-level architectural problems that require human judgment. By removing the need for constant supervision of routine tasks, the platform effectively unlocks productivity gains that allow teams to focus on more critical business logic.
Applying agentic workflows in Grafy
While iFood's implementation is an enterprise-scale internal infrastructure, the concept of using AI to manage and execute code tasks is central to modern development. For developers looking to experiment with similar agentic capabilities in a workspace environment, Grafy Code provides an AI coding studio that can install packages and run code, mirroring the ability to execute logic within a controlled environment. For those interested in the broader implications of how AI models handle complex reasoning and coding tasks, exploring the Grafy Blog can provide deeper insights into model capabilities and workflow optimizations.
Frequently asked questions
What model does iFood use for its coding agents?
iFood uses the GPT-5.6 Luna model for its Remote Agents Platform. The company selected this specific model because it provided the best balance of intelligence, efficiency, and execution speed, which is necessary for maintaining a sustainable cost-per-run when scaling across 15,000 repositories.
How does the platform ensure the agents follow instructions?
The platform uses OpenAI's Structured Outputs to ensure that the results of an agent's session conform to a predefined contract. This allows the system to automatically identify the expected outputs within a response, reducing uncertainty and enabling the platform to classify whether a task was successful or failed.
What is the average cost of a single agent run at iFood?
The average inference cost for a single run on the platform is US$0.04. This low cost per task is a key factor in iFood's ability to scale the platform's usage across tens of thousands of tasks and billions of tokens without incurring unsustainable expenses.
Source: OpenAI News — How iFood scales coding agents across 15,000 repositories


