Menu
InfoQ Architecture·December 5, 2026

System Architecture of Google ABFS: Virtual Filesystems for Large Repositories and AI Agents

Google's ABFS (Another Build File Service) solves the scalability bottleneck of massive codebases by replacing local source checkouts with a content-addressable virtual filesystem and two-phase caching. This article explores how ABFS enables lazy loading, local caching daemons, and parallel agentic workflows.

Read original on InfoQ Architecture

Introduction to ABFS Architecture

As codebases scale into tens of millions of lines of code (such as Android or Chromium), traditional Git checkouts become a massive bottleneck. Checking out entire repositories upfront consumes extensive disk space and network bandwidth, taking up to 36 minutes for large projects. Google ABFS (Another Build File Service) re-architects this workflow by replacing massive local source checkouts with a virtual, content-addressable filesystem (CASFS).

Core Components and Mechanisms

  • CASFS (Content-Addressable Storage Filesystem): A custom Linux kernel module that exposes Git SHA content hashes via extended attributes, allowing directories to load via metadata while file contents stream on demand.
  • Local Caching Daemons: Manage local storage layers to deduplicate cached objects and support concurrent mounting of multiple workspaces on a single machine.
  • Two-Phase Caching via Ninja-go: Replaces timestamp-based build checks with content-addressable caching to verify both command inputs and actual file reads against current filesystem states.
ℹ️

Architectural Trade-Off

While content-addressable virtual filesystems drastically reduce checkout times and enable scalable AI coding agent workloads, content-addressing at the filesystem level can introduce CPU and hashing bottlenecks that require careful optimization.

Implications for AI Agents and CI/CD

Modern software engineering increasingly relies on parallel AI coding agents that require isolated workspaces and frequent builds. By decoupling local storage from physical checkouts and implementing shared build caching across CI and developer environments, ABFS minimizes redundant downloads and accelerates multi-agent development cycles.

gitvirtual-filesystemcachingdeveloper-productivitydistributed-storagekernel-modules

Comments

Loading comments...

Want the fundamentals behind stories like this? Take the free System Design Academy course with certificate.