Working PoC of a virtual filesystem that manages version control workspaces.
Why
The biggest tech companies already solved this problem for themselves. Google built CitC — every engineer uses a virtual workspace over their monorepo. Meta built EdenFS + Sapling to handle their massive codebase without materializing files to disk. Microsoft built VFS for Git for the Windows repo (300 GB+, 3.5M files), then upstreamed the best parts into Git itself as Scalar, partial clone, and fsmonitor.
These systems work. But CitC lives inside Google. EdenFS depends on Meta’s Mononoke server infrastructure and is practically impossible to run outside Meta. VFS for Git is deprecated. Scalar is good but still requires full working-tree enumeration and doesn’t give you real virtual workspaces.
None of them are available as general infrastructure. wxs is an attempt to change that — a virtual filesystem for version-controlled workspaces that works with any Git repo, on Linux and Windows, as something any team can use. And now there’s a new reason this matters: AI coding agents that need dozens of parallel isolated workspaces per repo, created and destroyed in seconds.
The PoC
wxs create gets the tree (directory structure + metadata) so the workspace is browsable immediately. File content is fetched on demand when read, while a background prefetch warms the cache.
Duplicating a workspace is near-instant. All workspaces share content through a content-addressable store with copy-on-write — only files you actually modify take extra disk.
This matters for agents: each task gets its own isolated workspace without multiplying storage.
4 workspaces of VS Code (9,304 files each), 27 MB total instead of 555 MB:
$ wxs list
NAME STATUS BRANCH FILES SIZE PRIVATE PATH REPO
vscode00 mounted main 9304 138.9 MB - /home/pablo/wxs/vscode00 https://github.com/microsoft/vscode.git
vscode01 mounted main 9304 138.9 MB - /home/pablo/wxs/vscode01 https://github.com/microsoft/vscode.git
vscode02 mounted main 9304 138.9 MB - /home/pablo/wxs/vscode02 https://github.com/microsoft/vscode.git
vscode03 mounted main 9304 138.9 MB - /home/pablo/wxs/vscode03 https://github.com/microsoft/vscode.git
CAS: 27.8 MB on disk for 4 workspaces (555.7 MB without dedup, 95% saved)
Each workspace is a real FUSE mount (WinFsp on Windows) — not an SDK wrapper or API abstraction. Standard git commands work inside it — no wrapping, no special workflow. git status runs in 35ms thanks to the built-in fsmonitor daemon watching the VFS.
$ wxs info vscode00
vscode00
Mount: /home/pablo/wxs/vscode00 (mounted)
Repo: https://github.com/microsoft/vscode.git
Branch: main
Commit: d057f3f567de
Files: 9304 (138.9 MB)
CAS: 27.8 MB on disk, 138.0 MB decompressed (shared by 4 workspaces)
Git Repository
Path: ~/.wxs/repos/58f0899a002beabc (54.1 MB)
Clone: shallow (depth=1)
Branches: 1
Objects: 1 pack (25.9 MB)
Remote: yes
Workspaces track both version-controlled files and private files (build output, temp files). Git is the first backend but the VFS core is SCM-agnostic — the same architecture can support any version control system that provides a tree and blob fetching.
What’s next
The PoC proves the core: VFS-backed workspaces with shared content and copy-on-write. Here’s where it goes from here.
Automatic snapshots. The VFS sees every write. That means it can snapshot workspace state at any point — before a build, before an agent run, on a timer. Rollback becomes trivial. Branch from any snapshot to explore alternatives. Since the VFS intercepts every file operation, you also get a full audit trail for free.
Cache servers. Content-addressable storage makes caching straightforward. A local or regional cache server can warm up blobs ahead of time, making workspace creation near-instant even for massive repos. Large game studios have had to build parallel metadata and data caches in front of their version control to scale it to their needs.
Cloud sync. Sync workspace state to the cloud, snapshots included. Pause work on one machine, resume on another. Because workspaces are just metadata plus a content-addressable store, transferring one means syncing a small manifest and letting the target fetch only the blobs it doesn’t already have. Moves a multi-GB workspace in seconds. For agents, this means migrating a task mid-execution without losing filesystem state.