# iFood Scales Coding Agents Across 15,000 Repositories at Low Cost

> A single API now lets iFood run coding agents across thousands of repositories, with ephemeral environments and asynchronous results. The case study highlights the platform’s reported cost, scale, and security-fix gains.

**Source**: explainx.ai | **Published**: 2026-11-24 | **Type**: case_study

## Key Facts

- iFood’s RAP spans 15,000+ repos and 25,000+ runs, showing shared infrastructure can scale repeatable coding work beyond one-off scripts.
- At ~$0.04 per run, 25,000 runs imply about $1,000 in inference spend; low unit cost supports automation, but retries and compute add costs.
- Security fixes more than doubled in accuracy and volume after migration, making fleet-wide vulnerability remediation a measurable competitive advantage.
- GPT-5.6 Luna processed 27B+ tokens; iFood chose for speed, efficiency, and intelligence, signaling unit economics—not benchmark prestige—drive model selection.
- REST-based async jobs, ephemeral sandboxes, and structured outcomes let teams scale safely; weak governance or completion checks remain key risks.

## Summary

\## Summary
iFood, a food delivery company, built the Remote Agents Platform (RAP) to run coding tasks across more than 15,000 repositories. The platform combines an internal REST API, ephemeral sandboxes, and GPT-5.6 Luna; OpenAI reports more than 25,000 completed runs at an average inference cost of about US$0.04 per run. After moving its security work to RAP, iFood resolved more than twice as many vulnerabilities, with more than double the accuracy of changes.

\## Background
iFood operates a large, multi-language software estate spanning more than 15,000 repositories. Before RAP, teams had built one-off automations, but lacked a shared agent runtime with access to corporate networks, private package feeds, and the compilers their projects required.

\## Challenge
Routine work such as dependency validation, code analysis, and CVE patching was manageable in a single repository but difficult to repeat across thousands of repositories with different technology stacks. iFood needed shared execution infrastructure that could run these tasks at scale without requiring developers to supervise every session.

\## Solution
iFood built RAP as an internal REST API. Teams submit a prompt and environment requirements; a control plane schedules an ephemeral Ubuntu runner, and the results return later as artifacts and merge requests.

Each run follows deterministic setup steps—cloning the repository, importing skills, and setting up a branch—then uses GPT-5.6 Luna to edit, compile, and test code in the sandbox. Deterministic post-run steps publish the merge request and expose artifacts. The runners use iFood’s language toolchains and can reach services including Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS.

RAP uses OpenAI Structured Outputs with a fixed schema to classify each session as a pass, failure, or partial result. Developers can track progress in real time but do not need to stay with the session; human review takes place at merge time in GitLab.

\## Results
- RAP covered more than **15,000 repositories** and completed more than **25,000 runs**.
- Those runs consumed more than **27 billion tokens**.
- Average inference cost was about **US$0.04 per run**.
- After migrating its security work, iFood reported **more than double the accuracy of changes** and **more than double the number of vulnerabilities resolved**.

\## Key Insights
- A shared runtime can replace disconnected, repository-specific automations when teams need to repeat the same work across many codebases.
- Ephemeral sandboxes, preinstalled toolchains, and corporate network access make agent runs practical in an enterprise environment.
- Asynchronous execution can free developer attention: teams can launch routine work and review the resulting merge request later.
- Machine-readable completion states help teams track outcomes across a large fleet without inspecting raw logs for every run.
- Publishing cost per run gives teams a concrete basis for evaluating whether automation is sustainable at scale.

\## Customer Testimonial
“Teams lacked execution infrastructure, not ideas.” — Victor Coelho, senior software engineer at iFood

## Entities

- **Companies**: iFood, OpenAI, Anthropic, GitHub, Microsoft
- **Products**: Remote Agents Platform (RAP), Codex, GPT-5.6 Luna, OpenAI Structured Outputs, Batch API, Agents API, Claude Code, GitHub Actions, ShellBench, Daybreak
- **Technologies**: REST API, agentic coding, ephemeral sandboxes, Ubuntu, MCP skills, GitLab, Nexus, Docker, Snyk, Kubernetes, AWS, CI, CVE scanning, structured completion contracts
- **People**: Victor Coelho, Satya Nadella
- **Organizations**: Cisco, Rakuten, Endava, OpenAI DevDays São Paulo

## Key Concepts

A centralized REST platform can run coding agents asynchronously across thousands of repositories., RAP combines deterministic setup and publishing steps with agentic code editing, compilation, and testing., Ephemeral, network-enabled sandboxes provide agents with corporate toolchains and private package access., Structured Outputs classify job outcomes so orchestration can safely manage large batches., iFood reports more than double the accuracy and volume of vulnerability fixes after migration., The published average inference cost is about $0.04 per run, making unit economics central to fleet-scale automation., Human review occurs at merge time in GitLab, with auditable merge requests as outputs., The approach best suits repeatable tasks across many repositories, not novel work requiring frequent product judgment.

## Definitions

- **Remote Agents Platform (RAP)**: iFood’s internal platform that accepts coding jobs through a REST API, schedules sandboxed agent runs, and returns results as artifacts and merge requests.
- **Ephemeral runner**: A temporary, isolated environment created for an individual agent job, equipped with the required operating system, tools, and network access.
- **Structured Outputs**: A method for returning model results in a fixed schema so software can identify pass, fail, or partial outcomes without interpreting raw logs.
- **Deterministic steps**: Predictable workflow actions, such as cloning a repository or publishing a merge request, that bracket the agent’s less predictable execution.
- **Agentic execution**: The part of a workflow in which an AI agent performs tasks such as editing, compiling, and testing code.

## Use Cases

- Scanning repositories for vulnerable dependencies and attempting fixes.
- Validating dependencies across many repositories.
- Running code analysis and applying static-analysis fixes.
- Automating repeatable standards checks and dependency updates.
- Running asynchronous coding jobs that produce artifacts and merge requests for later review.
- Scaling routine coding automation across teams using a shared internal API.

## Frequently Asked Questions

**What is iFood’s Remote Agents Platform?**

RAP is an internal REST API for dispatching asynchronous coding-agent jobs across iFood’s repositories. It schedules temporary runners and returns results as artifacts and merge requests.

**What scale and results did iFood report?**

The published figures include more than 15,000 repositories, over 25,000 completed runs, and more than 27 billion tokens. iFood also reported more than double the accuracy and volume of vulnerability fixes after migration.

**Which model does RAP use, and what does a run cost?**

The article identifies GPT-5.6 Luna as the model used in the sandboxes. Average inference cost was about $0.04 per run, excluding runner compute costs.

**How does RAP make large-scale automation manageable?**

It uses deterministic setup and publishing steps around agentic execution, with isolated runners for each job. Structured Outputs provide machine-readable completion states, while merge requests give developers an auditable review point.

**What kinds of work are best suited to this approach?**

RAP is best suited to repeatable tasks across many repositories, such as dependency updates, security fixes, and standards checks. The article says it is a poor fit for novel feature work that requires frequent product judgment.

## Links

- [Read on Welcome.AI](https://welcome.ai/content/ifood-scales-coding-agents-across-15000-repositories-at-low-cost)
- [Original source](https://explainx.ai/blog/ifood-remote-agent-platform-15000-repos-openai-november-2026)

---

Source: Welcome.AI | https://welcome.ai/content/ifood-scales-coding-agents-across-15000-repositories-at-low-cost