skip to content
FILESYSTEM.md

Linux VFS and FUSE for Agents

Last updated:

View Markdown source

Builder procedure

Linux VFS (mental model)

The kernel Virtual File System is a common API in front of many concrete filesystems (ext4, NFS, tmpfs, FUSE, …). User processes issue POSIX calls (open, read, write, readdir); VFS dispatches to the mounted filesystem.

For agents, the important idea is the same as application virtual FS: stable path semantics, pluggable backing implementations.

When to use FUSE

FUSE (Filesystem in Userspace) lets you implement FS operations in a user process and mount them into the Linux namespace.

Good fits:

Costs:

Agent-oriented FUSE patterns

PatternDescription
Workspace mountMount a project tree into a sandbox at /workspace
Policy FSIntercept writes to enforce allowlists / virus scan / redaction
Projection FSExpose selected cloud folders as local paths
OverlayCombine read-only base + writable upper layer

Implementation checklist

Relation to FILESYSTEM.md

FUSE can host the physical files behind PROJECTS/, MEMORY/, and LOGS/. Agents should still follow For Agents procedures; they should not need to know the mount is FUSE.

Human notes

FUSE is powerful but not mandatory. Many products never mount a custom FS and instead expose path tools over a virtual API (Build → Virtual FS). Choose FUSE when you need real POSIX compatibility for existing binaries inside the sandbox.