skip to content
FILESYSTEM.md

Composite Filesystem Backends

Last updated:

View Markdown source

Builder procedure

Goal

One agent-visible tree; many underlying stores.

/docs/ → object store / DMS / Box / S3
/memories/ → SQLite or other DB synthesized as files
/workspace/ → local sandbox disk
/skills/ → package registry or repo SKILLS/

This matches the industry pattern described by Box’s filesystem context layer and similar Deep Agents composite backends.

Router sketch

resolve(path):
if path.startswith("/docs/"): return DocsBackend
if path.startswith("/memories/"): return MemoryBackend
if path.startswith("/workspace/"): return LocalBackend
return DefaultBackend

Each backend implements the same Virtual FS API.

Backend responsibilities

BackendReadWriteNotes
LocaldiskdiskLowest latency scratch
DB→filesrender rowscontrolled upsertGreat for structured memory
Object/DMSdownloadversioned uploadEnterprise governance
Git repoworktreecommit policyOptional for code agents

Mapping to FILESYSTEM.md layouts

You MAY map standard directories onto prefixes:

FILESYSTEM.mdExample prefix
PROJECTS//workspace/PROJECTS/
MEMORY//memories/ or /workspace/MEMORY/
SKILLS//workspace/SKILLS/
LOGS//workspace/LOGS/ (local, append-only)

Keep the logical names stable in FILESYSTEM.md even if physical backends change.

Consistency pitfalls

Document these limits for agents.

Implementation checklist

Human notes

Composite backends let you upgrade storage without rewriting agent procedures. Start with local-only; add /docs remote and /memories virtual files when needed. For mount-based approaches (FUSE/EFS), see Infrastructure.