How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines
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.
Related posts
- Why coding agents fail in large codebases (and what to do about it)
Sourcegraph mediumAdept
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. Indexed code search with keyword, semantic and find-references tools helps most in the 400K–2M LOC range (+0.259 reward delta) but slightly hurts below 400K LOC (−0.080). In one refactoring task it cut tool calls from 96 to 5. Augmented agents were 30% cheaper and 38% faster on average, which supports the claim that these are context-infrastructure problems rather than model-capability problems. The recommended fixes are structural navigation, hybrid retrieval for coverage, and task-aware context management.
- Context Engineering Is Just Writing Things Down
Fly.io mediumAdeptAgent output quality depends more on project and environment context than on model capability, and that context can be built from plain files on disk. OpenClaw's memory design (append-only daily logs, a curated MEMORY.md, hybrid BM25/vector recall weighted 70/30 with diversity re-ranking on SQLite) illustrates the idea. In a Fly.io Sprite, four mechanisms supply that context: CLAUDE.md for conventions, Skills for repeatable workflows like a preflight check, hooks that inject live service and git state, and checkpoints that persist the whole environment. A sample Bun + Hono + Postgres project shows Claude fixing a bug while following the test, logging and error conventions without being told.
- Inside OpenAI’s in-house data agent
OpenAI mediumAdept
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. Its accuracy rests on six layers of context: table usage and lineage, human annotations, Codex-derived code-level table definitions, institutional knowledge from Slack/Docs/Notion, a user-correctable memory, and live warehouse queries. A daily offline pipeline normalizes and embeds this context for RAG retrieval, keeping latency predictable across tens of thousands of tables. Quality is protected with Evals API test sets that compare generated SQL output against golden queries.
- How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline
Grab Engineering mediumAdeptGrab'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.
- Designing MCP tools for agents: Lessons from building Datadog’s MCP server
Datadog Engineering mediumAdeptThin API wrappers make poor MCP tools: agents flood their context windows, blow token budgets on oversized records, and infer trends from raw samples. Datadog's MCP server fixes this with token-efficient formats (CSV/TSV for flat data, YAML for nested), trimmed default fields, and pagination by token budget instead of record count, fitting about 5x more records per token. It also exposes a SQL query interface over logs, which made eval runs about 40% cheaper. Other lessons: keep tool count low with flexible tools, opt-in toolsets or layering; return specific, actionable error messages; offer a RAG docs-search tool; and include guidance hints in tool results.