---
title: "How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines"
description: "Meta built a pre-compute engine where 50+ specialized AI agents (explorers, module analysts, writers, critics, fixers, gap-fillers) read every file of a 4,100-file, three-language config-as-code data pipeline and produced 59 concise context files capturing undocumented tribal knowledge."
url: "https://swe.quest/articles/how-meta-used-ai-to-map-tribal-knowledge-in-large-scale-data-pipelines-9638491176a5d710"
canonical: "https://engineering.fb.com/2026/04/06/developer-tools/how-meta-used-ai-to-map-tribal-knowledge-in-large-scale-data-pipelines/"
source: "Meta Engineering"
published: "2026-04-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["ai-coding","ai-agents","documentation","developer-productivity","data-pipelines"]
---

# How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2026-04-06, 5 min read, Case study. Original: [https://engineering.fb.com/2026/04/06/developer-tools/how-meta-used-ai-to-map-tribal-knowledge-in-large-scale-data-pipelines/](https://engineering.fb.com/2026/04/06/developer-tools/how-meta-used-ai-to-map-tribal-knowledge-in-large-scale-data-pipelines/)

## Summary

Meta built a pre-compute engine where 50+ specialized AI agents (explorers, module analysts, writers, critics, fixers, gap-fillers) read every file of a 4,100-file, three-language config-as-code data pipeline and produced 59 concise context files capturing undocumented tribal knowledge. Each file follows a "compass, not encyclopedia" format of 25–35 lines (~1,000 tokens): quick commands, key files, non-obvious patterns and cross-references. A cross-repo dependency index and periodic self-refresh jobs keep the context accurate. In preliminary tests on six tasks, agents used about 40% fewer tool calls and tokens, and critic rounds raised quality scores from 3.65 to 4.20. The authors argue that concise, opt-in, quality-gated context helps on proprietary code even though research shows it hurts on well-known open-source repos.

Written by swe.quest, not by the author.

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

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Documentation](https://swe.quest/tags/documentation.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))
- LLM context windows ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Meta, Hack, config-as-code, context files

## Related posts

- [Why coding agents fail in large codebases (and what to do about it)](https://swe.quest/articles/why-coding-agents-fail-in-large-codebases-and-what-to-do-about-it-67302cc99ae40bda.md): Sourcegraph · 2026-05-08 · Medium · 8 min read · AI for coding, AI agents, Search, Evaluation, RAG & retrieval
  Across 1,281 scored agent runs on 40+ large open-source repos (CodeScaleBench), coding agents fail in five repeatable ways: getting lost in exploration, picking the wrong file or symbol, partial completion, tool thrashing, and context overflow.
- [Context Engineering Is Just Writing Things Down](https://swe.quest/articles/context-engineering-is-just-writing-things-down-529d8105d51bf0f4.md): Fly.io · 2026-02-23 · Medium · 5 min read · AI for coding, AI agents, Developer productivity
  Agent output quality depends more on project and environment context than on model capability, and that context can be built from plain files on disk.
- [Inside OpenAI’s in-house data agent](https://swe.quest/articles/inside-openai-s-in-house-data-agent-55ba2e68b590558a.md): OpenAI · 2026-01-29 · Medium · 13 min read · AI agents, RAG & retrieval, Analytics & OLAP, Evaluation, LLMs
  OpenAI built an internal GPT-5.2-powered data agent that answers natural-language analytics questions over a platform of 600+ PB and 70k datasets, available via Slack, web, IDEs, Codex CLI and ChatGPT through MCP.
- [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.
- [Designing MCP tools for agents: Lessons from building Datadog’s MCP server](https://swe.quest/articles/designing-mcp-tools-for-agents-lessons-from-building-datadog-s-mcp-server-d09621598f568627.md): Datadog Engineering · 2026-03-04 · Medium · 8 min read · AI agents, API design, LLMs, Observability
  Thin API wrappers make poor MCP tools: agents flood their context windows, blow token budgets on oversized records, and infer trends from raw samples.

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)
