피드로 돌아가기
Meta needed 50+ AI agents to map their tribal knowledge. The most durable piece of their stack is the part you can build today.
Dev.toDev.to
Infrastructure

Cross-repo Dependency Graph 도입으로 Token 비용 30배 절감 및 tribal knowledge 구조화

Meta needed 50+ AI agents to map their tribal knowledge. The most durable piece of their stack is the part you can build today.

Daniel Westgaard2026년 5월 8일9advanced

Context

Python, C++, Hack 등 다국어 기반의 Polyrepo 환경에서 문서화되지 않은 Tribal Knowledge로 인한 AI Agent의 오작동 발생. 단순 LLM 기반 컨텍스트 제공 시 직렬화 호환성 및 설정 모드 간의 미묘한 차이를 인지하지 못해 Silent Incorrect Output이 발생하는 한계 노출.

Technical Solution

  • Deterministic Parser를 통한 소스 코드 정적 분석 기반의 Cross-repo Dependency Index 구축
  • Semantic Layer와 Structural Layer를 분리하여 데이터의 휘발성 및 유지보수 비용 차별화
  • LLM 기반의 Agent Swarm(Explorer, Analyst, Writer, Critic, Fixer)을 활용한 59개의 전용 Context File 생성
  • 주기적인 Self-refresh 메커니즘을 통해 코드 드리프트(Code Drift) 및 stale reference 자동 보정
  • 그래프 기반 룩업 방식을 통해 복잡한 의존성 분석 과정을 단일 Graph Lookup으로 최적화

- 소스 파일 파싱을 통한 Deterministic Dependency Graph 구축 여부 검토 - LLM 생성 컨텍스트의 신뢰도 검증을 위한 Critic Pass 및 Self-refresh 파이프라인 설계 - 단순 요약 파일보다 쿼리 가능한 구조적 인덱스 우선 순위 설정 - Polyrepo 환경에서 변경 전파 범위를 파악하기 위한 Cross-repo Indexing 도입

원문 읽기