Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 7 min read Case study mediumAdept

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

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.

Assumes: LLM agentsmulti-agent orchestrationcontext windows

Related posts

  • An Organizational Second Brain: Building an AI That Learns From Experts

    Meta Engineering mediumAdept

    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. Dense, frequently used knowledge lives in a curated wiki while sparse reference material is served via RAG. Restructuring into recipe-driven stages with progressive disclosure cut tokens per turn by about 80%. A self-improvement loop diagnoses expert corrections as recipe flaws, knowledge gaps or genuine ambiguity, compiles them into minimal edits checked by an adversarial reviewer agent and a deterministic linter, and validates them with replay and regression tests, improving the agent without retraining the model while keeping humans in control through checkpoints and escalations.

  • How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline

    Grab Engineering mediumAdept

    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. Platform tools sit behind two-tool MCP bridges, data-platform actions run under the requester's short-lived token, and sign-in pauses use LangGraph interrupts to resume runs. Scarlet now validates the data its changes produce by comparing CI candidate output against production (schema, counts, keys, nulls, stats, row diffs), with inconclusive treated as failure and verdicts bound to commits. Deterministic scaffolds replaced model guesses for predictable config, and after rollout the merge rate rose from about 50% to over 85% while repositories served grew about fourfold.

  • The Hidden Ops Layer of Agent Platforms

    Neon mediumAdept

    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. Failed migrations go to a separate LLM "Migration Fixer" for up to three retries before rollback, and merges fail if the development schema changed in the meantime. After crashed sessions left 2,847 orphaned branches, the team added a 6-hourly cleanup job plus 24-hour expires_at timestamps on branches. Connection pooling and 0.25–1 CU autoscaling handle bursty workloads of about 30 peak connections.

  • From Weeks to Hours: Inside Wix’s Autonomous Bug-Fixing System

    Wix Engineering mediumAdept

    Wix Orchestrator turns user support tickets into reviewed pull requests in hours instead of weeks. It does this with four stateless, isolated agents run by a central orchestrator. A Detector classifies tickets. An Enricher (Octocode Research) combines static code context from GitHub with live state from Trino queries, Grafana logs and documentation into a structured fix plan. A Coder implements the fix in an isolated Docker container. A separate Reviewer sees only the ticket and the PR. Schema validation at every handoff, with errors fed back to the same agent for retry, cut inter-agent failures from about 50% to under 1%. The team argues that context quality matters more than model choice, keeps a human approval step before production, and names ticket classification and undocumented organizational knowledge as the main open problems.

  • The Interaction Changes Everything: Treating AI Agents as Collaborators, Not Automation

    Engineering@Microsoft mediumAdept

    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. The result was 80–90% accuracy, with each repository done in under 2 hours instead of 4–6 weeks. The shared eight-part prompt template covers identity and mission, purpose, prioritized goals, steps with examples and escalation triggers, never/always security boundaries, self-validation and PR documentation, an explicit escalation process (including stopping after the same error twice), and a closing of recognition. Reported effects include more escalation instead of guessing, better PR descriptions, more graceful failures, and reuse of the template for security analysis, code review and documentation.

The quest for software engineering knowledge.

Look:
Layout: