# Virtual Filesystem is all you need
## Why filesystems win?
AI agents are very good at reading and manipulating directories and files, because that is exactly what large language models saw during training. Decades of Unix tools and IDE workflows mean agents already know `ls`, `grep`, `cat`, `find`, `cp`, and `mv` cold. Those commands are part of the model's foundational knowledge.
A filesystem is deterministic and hierarchical. Every resource has a predictable path, permissions, and content. The agent doesn't have to learn a custom schema, go through an authentication dance, or parse the JSON blobs some ad-hoc skill returns. It reasons over primitives it already knows. In my experience that means fewer hallucinations, more reliable tool use, and less context overhead. Filesystems win because they are the lowest common denominator that humans and models both speak fluently.
## FileSystem is the new database
The X article "[FileSystem is the new database](https://x.com/koylanai/status/2025286163641118915)" by [Muratcan Koylan](https://x.com/koylanai) argues that databases, vector stores, and API-driven memory layers get in the way of AI agents. Rather than stuffing context windows with serialized JSON, API responses, or embeddings, the author built "Personal Brain OS", a personal operating system that lives entirely in a Git repository as 80+ plain files (Markdown, YAML, JSONL).
Using the filesystem as memory gives you progressive disclosure for free. A small routing file is always loaded, module-specific instructions load only when they're relevant, and data files are read on demand. That is how experts work, and it plays well with the U-shaped attention curve of language models. The article also maps each format to a job (JSONL for append-only logs, YAML for configs, Markdown for narrative) and encodes agent skills as files. According to the author, this removes conflicting instructions, cuts token waste, and makes the AI genuinely personal.
The core claim: "File systems killed databases" for agentic workloads. Files are readable by humans and LLMs alike, Git versions them, and they need no build step or client library. The whole architecture is one repo you can clone, move, and inspect, and understand at a glance.
## What about virtual file systems?
A [virtual file system (VFS)](https://en.wikipedia.org/wiki/Virtual_file_system) is an abstraction layer that gives applications one uniform way to access different concrete file systems. It separates the user-space interface from the storage underneath. In practice, a VFS can map REST endpoints, database records, in-memory caches, cloud buckets, or remote services into a regular directory tree that behaves like a local filesystem. `ls`, `cat`, `grep`, and `echo` work unchanged.
This comes straight from the Unix philosophy: *"everything is a file."* Once a resource sits behind a VFS, any agent (or human) can use battle-tested filesystem primitives on it instead of a bespoke SDK or CLI wrapper. A user-space daemon handles the mapping, so databases become directories, API responses become readable files, and remote storage becomes a mount point.
How you build one depends on the operating system, but the goal is always to expose external resources as POSIX-compatible paths:
- **Linux**: [Fuse](https://en.wikipedia.org/wiki/Filesystem_in_Userspace) (Filesystem in Userspace) and [NFS](https://en.wikipedia.org/wiki/Network_File_System) are the gold standard. FUSE lets developers implement full filesystems in user space without touching the kernel; NFS is a network-transparent protocol that works across machines.
- **macOS**: [macFUSE](https://macfuse.github.io/) (the successor to OSXFUSE) brings native FUSE support, and NFS remains the zero-dependency, root-free option for cross-platform mounts.
- **Windows**: [WinFsp](https://winfsp.dev/) (Windows File System Proxy) or [Dokany](https://github.com/dokan-dev/dokany) provide FUSE-like user-mode filesystem drivers that work with Explorer and command-line tools.
That's why I think **Fuse (Filesystem in Userspace)** is the hottest Linux technology right now: it turns any data source into a first-class filesystem that agents already know how to use.
## Concrete examples
**VFS based on Redis: [Redis-FS](https://github.com/rowantrollope/redis-fs)**
A native Redis module that stores a POSIX-like filesystem inside Redis keys (HASH for inodes, SET for directories). Agents get atomic operations, full-text search, and FUSE/NFS mounts. A good fit for shared, in-memory agent memory that survives restarts and scales horizontally.
**VFS based on storage buckets: [hf-mount](https://github.com/huggingface/hf-mount)**
Mounts Hugging Face repos and buckets as local filesystems with real lazy loading: only the bytes you read get transferred. Nothing to download up front, read-write buckets for checkpoints, and plain `ls`/`cat` access without an SDK. Handy for ML workflows.
**VFS based on Postgres: [TigerFS](https://tigerfs.io)**
Turns a PostgreSQL database into a mountable filesystem with ACID transactions, automatic version history, and Unix-tool compatibility. Agents can move task files atomically, browse structured rows as directories, and collaborate across machines without custom APIs or client libraries.
## Conclusion
If your agents reach external resources through custom CLI skills, switching to a virtual filesystem saves a lot, especially in tokens.
With a traditional skill, the model has to:
1. Generate a command
2. Parse its verbose textual output
3. Keep that output in context for later reasoning
4. Re-issue follow-up commands.
A VFS collapses that loop. The agent calls `ls`, `cat`, or `grep` on a mounted path and gets back the structured data it needs.
In my own tests, switching to a VFS cut context-token usage by 20 to 30% per interaction. The model stays focused, hallucinations drop, and latency improves because fewer tokens cross the wire.
I see the VFS as the missing abstraction that lets an agent treat the whole world as one hierarchical workspace built from tools it already knows. Mount your databases, buckets, caches, and APIs as ordinary directories and you'll see it quickly: **a virtual filesystem is all you need**.