ReleaseAPI / Product · ActionableOpenAI Blog→ original

iFood Hands Routine Work to AI Agents Across 15,000 Repositories at 4 Cents per Run

iFood has 15,000 repositories, and each one regularly needs routine work: updating a vulnerable library or checking code against internal standards. The team built an internal API: you submit a task, and an agent on GPT‑5.6 Luna works in a sandbox and returns a merge request. So far there have been 25,000+ runs at an average of 4 cents each, and more than twice as many vulnerabilities have been closed. The takeaway: agents need an execution environment, not just a good prompt.

AI-processed from OpenAI Blog; edited by Hamidun News
iFood Hands Routine Work to AI Agents Across 15,000 Repositories at 4 Cents per Run
Source: OpenAI Blog. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceOpenAI Blog ↗
Editor-in-Chief
Launchone REST request, an Ubuntu sandbox, and the result is a merge request
Key metric #2Cloning and publishing run as scripts, with the model working in the middle
Structured Outputsevery session returns a strict answer, either success or failure

Imagine a company with 15,000 repositories, where each one periodically needs the same thing: updating a vulnerable library, checking code against internal standards, running an analysis. For a single repository, that is five minutes of agent work. For 15,000, it becomes an infrastructure problem.

iFood, a large delivery service in Latin America, faced exactly this, and rather than building yet another agent, it built a shared platform: any team sends a task through an API request, an agent on GPT‑5.6 Luna does the work in an isolated sandbox, and the result comes back as a ready merge request. According to OpenAI, the platform has completed more than 25,000 runs, each run costs roughly 4 cents on average, and the internal security scanner now closes more than twice as many vulnerabilities.

What They Built

Remote Agents Platform is an internal service that turns an engineering task into an API call. A developer or another system sends a REST request describing the task and the environment requirements. The platform takes a remote runner, spins up an isolated sandbox, and the result arrives later as a merge request. Progress can be tracked in real time.

Before this, according to Victor Coelho, a senior engineer at iFood, teams had scattered solutions: each launched agents its own way and hit the same wall. What was missing was not intelligence or ideas about what to automate, but an execution environment. Now teams describe the business task and delegate the run to the platform.

Inside the runner, two kinds of steps alternate. Ordinary scripts sit at the edges: cloning the repository, attaching the skills available to the agent, creating a working branch, and at the end publishing the merge request and uploading artifacts. The model is not needed for these. The agentic part, where GPT‑5.6 Luna works, sits in the middle. This sandwich design keeps the process predictable: the unpredictable part is enclosed between scripts.

The Ubuntu sandbox includes tooling for Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go. The agent has access to Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS.

Money, Model, and Checking the Result

The platform has completed more than 25,000 tasks and consumed more than 27 billion tokens; the average inference cost is about $0.04 per run. The model was chosen on three criteria at once: intelligence, efficiency, and execution speed. Among models of the same generation, GPT‑5.6 Luna, according to the team's benchmarks, offered the best balance. At this scale, the cost per run becomes an architectural parameter: it determines which tasks are worth automating at all.

There is a caveat. Dividing 27 billion tokens by 25,000 runs gives roughly a million tokens per run, which is hard to reconcile with 4 cents without accounting for caching and other pricing details. The source does not explain this, and all the figures come from OpenAI's own case study and have not been independently verified.

The second scaling problem is understanding, without reading logs, whether the agent succeeded. iFood passes the session outcome through Structured Outputs: the response must conform to a predefined schema. As a result, every run returns a predictable structure, whether success or failure, and that structure can then be processed automatically.

The First User: Security

The first major consumer was the internal product of the security team. It scans 15,000 repositories for vulnerable dependencies and attempts to fix them. After moving to the platform, according to Coelho, the accuracy of fixes more than doubled, and the number of closed vulnerabilities also more than doubled. The security team did not have to build its own agent environment: it was enough to call the API.

Another effect is asynchrony. A developer can launch a code change or a performance analysis right before a meeting and not monitor the process. The gain here is not speed, but that routine work stops taking up attention.

iFood itself acknowledges drawing inspiration from OpenAI products: the Batch API and Agents API. The interfaces, resource organization, and the model of "submit a task, pick up the result later" come from there, except the platform is internal.

What to Take Away

  • Start with infrastructure: a separate agent-execution layer with an API spares each team from inventing its own.
  • Don't give the model what a script can do: cloning and publishing do not require AI.
  • Treat the cost per run as an architectural metric.
  • Require the agent to answer in a defined schema, or across thousands of runs you cannot tell success from failure.
  • Start with an internal customer that has a large volume and a clear pain point, as the security team did.

The limitations are clear: this is a vendor's marketing case study, with no details on the share of incorrect fixes, on how humans review merge requests, or on the accuracy before the switch. But as a blueprint for an enterprise agent layer it is useful: a sandbox, a scaffold of scripts, a strict response format, and an API on the outside.

Story

Key Questions Answered

What They Built?

Remote Agents Platform is an internal service that turns an engineering task into an API call. A developer or another system sends a REST request describing the task and the environment requirements. The platform takes a remote runner, spins up an isolated sandbox, and the result arrives later as a merge request. Progress can be tracked in real time. Before this, according to Victor Coelho, a senior engineer at iFood, teams had scattered solutions: each launched agents its own way and hit the same wall.

What are the key details on Money, Model, and Checking the Result?

The platform has completed more than 25,000 tasks and consumed more than 27 billion tokens; the average inference cost is about $0.04 per run. The model was chosen on three criteria at once: intelligence, efficiency, and execution speed. Among models of the same generation, GPT‑5.6 Luna, according to the team's benchmarks, offered the best balance. At this scale, the cost per run becomes an architectural parameter: it determines which tasks are worth automating at all. There is a caveat.

What are the key details on The First User: Security?

The first major consumer was the internal product of the security team. It scans 15,000 repositories for vulnerable dependencies and attempts to fix them. After moving to the platform, according to Coelho, the accuracy of fixes more than doubled, and the number of closed vulnerabilities also more than doubled. The security team did not have to build its own agent environment: it was enough to call the API. Another effect is asynchrony.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…