iFood Builds Remote Agent Across 15,000 Repositories

iFood has built a remote agent platform to handle repetitive engineering tasks across more than 15,000 code repositories. This platform executes GPT-5.6 Luna in an isolated sandbox when tasks are delegated via a REST API and returns results as merge requests. It has processed over 25,000 tasks cumulatively, and the accuracy and number of vulnerability fixes on the security platform have more than doubled.

The Scale Challenge Faced by iFood

iFood operates over 15,000 code repositories. Each repository requires specific tasks such as code validation against internal standards, fixing vulnerable dependencies, and running analyses periodically. While individual tasks are not difficult, the complexity escalates dramatically when multiplied across tens of thousands of repositories. Viktor Coelho, a senior software engineer at iFood, states, "Solving a problem in one repository is easy. The challenge is solving it at scale across all 15,000 repositories." Before the platform, each team attempted to solve problems in their own way but encountered the same obstacles. What was lacking was not intelligence or use cases, but execution infrastructure.

Remote Agent Platform: Delegating Engineering Tasks via API

iFood has built a remote agent platform that transforms engineering tasks into API calls. Teams delegate tasks, execution occurs in a remote sandbox, and results return as merge requests. The entry point of the platform is a simple REST API. Users submit prompts and environmental requirements via REST calls, and the platform processes tasks in a dedicated remote runner within an isolated sandbox, retrieving results later.

The workflow can be summarized in three steps.

  1. Submit prompts and environmental requirements via REST call
  2. Process tasks in remote runner within isolated sandbox
  3. Retrieve results later

The workflow alternates between decisive steps and agent execution. At the start, cloning the repository, importing agent usage techniques, and setting up task branches are decisive steps. In the middle, GPT-5.6 Luna is responsible for agent execution within the sandbox. Finally, posting merge requests and releasing generated artifacts conclude the decisive steps. Coelho explains, "The combination of decisive steps and agent execution within the sandbox makes the workflow predictable."

The sandbox runs Ubuntu and includes Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, Go toolchains, and general-purpose tools needed for the iFood ecosystem. Outside the sandbox, access to Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS is available.

Model Selection and Cost-Effectiveness: GPT-5.6 Luna at 4 Cents per Execution

Model selection is not a single factor but a result of considering intelligence, efficiency, and execution speed together. iFood chose GPT-5.6 Luna, which best demonstrated this balance among models within the same checkpoint. This balance is more critical in a platform that aims for scale rather than one-off use cases.

The platform has completed over 25,000 tasks and consumed over 27 billion tokens. The average cost per execution is US$0.04. In an environment where tens of thousands of tokens are consumed, an average cost of 4 cents per execution is not a trivial detail but an architectural consideration.

MetricValue
Cumulative Processed TasksOver 25,000
Consumed TokensOver 27 billion
Average Cost per ExecutionUS$0.04
Target Code RepositoriesOver 15,000

Security-Proven Platform Effect: Vulnerability Fixes More Than Double

The first major user of the platform is an internal security product. This product scans 15,000 repositories to find and attempt to fix vulnerable dependencies. After the platform's introduction, both the accuracy of these changes and the number of resolved vulnerabilities have more than doubled. Coelho states, "The accuracy of these changes, that is, the fixes, has more than doubled through the platform." The security team did not need to build their own agent runtime or become experts in agent orchestration. They simply needed to call the API.

Asynchronous Execution Restores Focus for Developers

The team emphasizes that asynchronous execution does not replace developers but rather gives them back time. Since tasks are delegated and executed without supervision, developers do not need to monitor in real-time. They can delegate code modifications, performance analyses, and other routine tasks even during meetings. Routine work no longer distracts the team's attention, allowing them to dedicate time to issues that require judgment.

Implications for the Industry: From Distributed Solutions to Centralized Agent Runtime

iFood's case demonstrates that the key to agent adoption is not individual model performance but execution infrastructure. Before the platform, each team built fragmented solutions and faced the same problems. Inspired by OpenAI's batch API and agent API, this internal platform resembles interface design, resource organization, asynchronous execution, and result retrieval methods. Structured outputs ensure that session results, whether positive or negative, adhere to predefined contracts.

Verified figures

Our take

The iFood case illustrates that the adoption of agents relies more on execution infrastructure and standardized interfaces than on individual model performance. A centralized runtime based on REST APIs reduces team-specific distributed implementations and enables scalable handling of repetitive tasks such as security vulnerability remediation. As similar platforms spread within enterprises in the future, cost predictability and output validation mechanism design will be key variables.

Open questions

Source

Back to catalog