---
title: "The Thin Orchestrator: How We Made Our AI Agents More Reliable by Giving the Router Less to Do"
description: "Meta replaced a single all-knowing AI agent for onboarding data columns across its recommendation pipelines with a deliberately thin, deterministic orchestrator: about 1,300 lines that route 20+ workflows to 14 specialized subagents and do no domain reasoning."
url: "https://swe.quest/articles/the-thin-orchestrator-how-we-made-our-ai-agents-more-reliable-by-giving-the-5a55e95dc0391c33"
canonical: "https://engineering.fb.com/2026/10/19/ml-applications/thin-orchestrator-ai-agent-architecture/"
source: "Meta Engineering"
published: "2026-10-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["ai-agents","llms","system-design","data-pipelines"]
---

# The Thin Orchestrator: How We Made Our AI Agents More Reliable by Giving the Router Less to Do

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2026-10-19, 7 min read, Case study. Original: [https://engineering.fb.com/2026/10/19/ml-applications/thin-orchestrator-ai-agent-architecture/](https://engineering.fb.com/2026/10/19/ml-applications/thin-orchestrator-ai-agent-architecture/)

## Summary

Meta replaced a single all-knowing AI agent for onboarding data columns across its recommendation pipelines with a deliberately thin, deterministic orchestrator: about 1,300 lines that route 20+ workflows to 14 specialized subagents and do no domain reasoning. The single agent hallucinated as its context grew, mixing conventions across subsystems, and an alternative single-agent approach succeeded only 10-20% of the time without per-task prompt engineering. The new design uses a fixed 7-step protocol where only delegation involves LLM reasoning, workflow templates that sequence existing agents as state machines, structurally uniform subagents, and knowledge files loaded at runtime. Column config prep dropped from three to four days by hand to under an hour, and about two-thirds of changes land without significant human edits.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- LLM agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- multi-agent orchestration
- context windows

## Keywords

thin orchestrator pattern, Meta, subagents, workflow templates

## Related posts

- [An Organizational Second Brain: Building an AI That Learns From Experts](https://swe.quest/articles/an-organizational-second-brain-building-an-ai-that-learns-from-experts-39ccb4da4e5586dc.md): Meta Engineering · 2026-09-02 · Medium · 13 min read · AI agents, LLMs, RAG & retrieval, Evaluation, System design
  Meta built a domain-expert AI agent for a compliance domain that separates declarative knowledge files (positions, taxonomies, routing indexes, gateway tests with YAML dependency graphs) from imperative composable "recipes" that encode expert reasoning workflows.
- [How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline](https://swe.quest/articles/how-grab-built-scarlet-the-ai-teammate-that-turns-a-slack-message-into-a-cb0afbb754a543cf.md): Grab Engineering · 2026-11-23 · Medium · 12 min read · AI agents, Data pipelines, Testing, Identity & auth, LLMs
  Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill.
- [The Hidden Ops Layer of Agent Platforms](https://swe.quest/articles/the-hidden-ops-layer-of-agent-platforms-ed37a4cfded1ae9a.md): Neon · 2025-11-04 · Medium · 7 min read · AI agents, Schema migrations, PostgreSQL, System design
  Anything's Max coding agent gets a dedicated Neon database branch for every session, created in about 200 ms. The agent runs its migrations there and merges back into development atomically through Neon's restore API.
- [From Weeks to Hours: Inside Wix’s Autonomous Bug-Fixing System](https://swe.quest/articles/from-weeks-to-hours-inside-wix-s-autonomous-bug-fixing-system-60c0afee518a78c2.md): Wix Engineering · 2026-08-19 · Medium · 9 min read · AI agents, AI for coding, Debugging, System design
  Wix Orchestrator turns user support tickets into reviewed pull requests in hours instead of weeks.
- [The Interaction Changes Everything: Treating AI Agents as Collaborators, Not Automation](https://swe.quest/articles/the-interaction-changes-everything-treating-ai-agents-as-collaborators-not-e493683d4eddf19c.md): Engineering@Microsoft · 2025-12-03 · Medium · 9 min read · AI agents, AI for coding, LLMs, Refactoring & migrations
  Microsoft's Entra SDK v1-to-v2 migration across hundreds of repositories succeeded with an AI coding agent only after the team replaced step-by-step checklists with prompts that give the agent a role, mission and permission to use judgment.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
