An average inference cost of US$0.04 per run establishes a new baseline for enterprise code maintenance at scale. When automated workflows must touch more than 15,000 code repositories, the primary bottleneck ceases to be model intelligence and shifts directly to execution runtime and unit economics. Engineering operations that rely on unstandardized, fragmented AI scripts quickly collapse under unpredictable token consumption and environmental divergence.

At iFood, maintaining those 15,000 repositories requires continuous baseline work: validating code against internal policies, upgrading vulnerable dependencies, and executing static analyses. Rather than letting individual teams engineer disparate automation scripts, the company centralized task execution into a shared platform that has now logged over 25,000 runs. Autonomous agents are transitioning from experimental developer novelties into managed infrastructure overhead governed by penny-level unit costs. The central question for technical leadership is straightforward: can an enterprise delegate thousands of repository updates to autonomous systems without losing control of operational budgets or output validity?

The Architecture of Sandboxed API Calls

Solving repository maintenance for a single project is straightforward, yet replicating it across an entire enterprise requires a dedicated runtime layer. iFood addressed this by building the Remote Agents Platform, which transforms engineering jobs into asynchronous API calls. Instead of having local environments run ad-hoc scripts, internal teams delegate tasks via a simple REST API entry point that spins up isolated execution sandboxes.

“Before, we had fragmented solutions. Imagine several teams at iFood trying to solve different problems, but without this layer, this agentic runtime, available to them. In the end, those solutions always ran into the same problem.”

As Victor Coelho, Senior Software Engineer at iFood, explained, what was previously missing was not model capability or identifiable use cases, but a standardized execution infrastructure. The Remote Agents Platform allows teams to trigger runs, monitor progress in real time, and retrieve merge requests once the sandbox completes its execution lifecycle.

To make non-deterministic model steps viable inside enterprise CI/CD pipelines, the platform splits each run into two distinct phases. Deterministic automation bookends the entire workflow: the system clones the target repository, imports the required agent skills, and cuts a working branch before any reasoning begins. Inside the isolated Ubuntu sandbox, the agentic runtime executes using OpenAI’s model, supported by toolchains for Python, Java, Kotlin, C#, TypeScript, Rust, JavaScript, and Go, alongside access to Nexus, GitLab, Docker, Snyk, Kubernetes, and AWS. Once code generation concludes, deterministic steps take over again to publish the merge request and expose build artifacts.

How does an engineering organization verify that an autonomous agent followed internal contracts without manually reviewing thousands of terminal outputs?

Deterministic Boundaries and Verified Economics

The answer lies in strictly defining output schemas at the model boundary. Once the agent completes its run, the platform processes the raw output using OpenAI’s Structured Outputs, forcing the returned data to conform to a rigid, predefined contract. This contract parsing allows the platform to verify whether the run achieved its objective or failed, eliminating the ambiguity of unstructured conversational outputs and letting downstream CI systems handle pull requests automatically.

“We chose GPT‑5.6 Luna because, among models at the same checkpoint, the benchmarks showed it offered a great balance of intelligence, efficiency, and execution speed—how quickly it could complete tasks. Those three qualities together led us to choose GPT‑5.6 Luna.”

According to Victor Coelho, this triad of intelligence, operational efficiency, and execution speed dictates whether an autonomous architecture remains financially viable. With runs consuming tens of thousands of tokens across thousands of codebases, keeping the average inference expense to US$0.04 per task prevents operational budgets from scaling unpredictably. High-speed execution and constrained token usage keep platform overhead predictable while processing massive backlogs.

Operational telemetry from iFood’s internal security platform validates the architectural model. Tasked with scanning the 15,000 repositories for vulnerable dependencies and automatically generating fixes, the platform more than doubled the number of vulnerabilities fixed compared to prior fragmented approaches. Engineering squads bypass orchestration overhead entirely, calling the REST endpoint while the dedicated runtime manages dependency resolution, sandboxed tool usage, and merge request generation.

Audit internal CI/CD pipelines this week to identify repetitive maintenance backlogs across team repositories, then isolate those jobs behind deterministic wrapper scripts that enforce predefined API contracts before granting autonomous agents write permissions.

What it signals

What actually turns enterprise AI from a developer novelty into a predictable corporate assembly line? The answer lies in rigorous sandbox infrastructure and sub-nickel unit economics, highlighted by iFood's average inference cost of 0.04 dollars per run according to the company. Wrapping non-deterministic model steps inside deterministic CI/CD boundaries and Structured Outputs tames token waste across thousands of repositories. Operating autonomous agents at scale ceases to be a machine learning challenge and becomes an exercise in strict execution discipline.

AI AgentsAutomationCoding AI Agents