Why 15,000 Repos Requires a Different Approach
iFood runs a large food delivery network in Brazil. Their engineering team maintains 15,000 repositories to support daily operations. That number sounds abstract until you try to update dependencies or fix bugs across all of them manually.
A single developer can only review and edit so much code each day. When you multiply that limit by thousands of services, manual updates become a heavy bottleneck. Agents help here by acting as consistent workers that follow strict rules across the whole fleet.
- Agents handle repetitive refactoring tasks like library upgrades or formatting fixes.
- Human developers focus on complex architecture decisions and novel feature design.
- Consistency improves when agents apply the same standards everywhere without fatigue.
Tip: Start small. Do not ask an agent to rewrite your whole application. Pick one boring task, like updating a shared utility library, and let the agent do that first to build confidence.
Manual Updates vs. Agent-Assisted Workflows
Teams often debate whether to write custom scripts, use AI agents, or keep doing things by hand. Each path has trade-offs regarding speed, risk, and setup effort. Understanding these differences helps you choose the right tool for each job.
Agents shine when patterns repeat across many files. If you need to change a function signature in 500 places, an agent can find and update those spots faster than a script that requires hard-coded paths. However, agents need guardrails to prevent accidental changes.
| Approach | Speed | Risk Level | Best Use Case |
|---|---|---|---|
| Manual Changes | Slow | Low (if careful) | One-off fixes or sensitive business logic. |
| Scripted Automation | Fast | Medium | Simple, rule-based updates with known file paths. |
| AI Coding Agents | Very Fast | Variable (needs guardrails) | Cross-repo refactors and pattern matching. |
Setting Up Safe Agent Workflows
Scaling agents means giving them access without letting them break production. iFood likely uses a layered approach where agents propose changes, humans review, and automated tests verify results. This separation keeps the system stable while moving fast.
Context is critical for accuracy. An agent needs to know which files matter for a specific task. Tools that index codebases allow agents to fetch relevant snippets instead of loading everything into memory. This keeps responses accurate and reduces token costs significantly.
- Use a code indexer to give agents precise file references for the current task.
- Require pull requests for all agent-generated changes to maintain audit trails.
- Run full test suites before approving agent suggestions to catch regressions early.
Caveat: Agents can hallucinate imports or miss edge cases. Always treat agent output as a draft, not a final product, until tests pass and a reviewer confirms the logic.