Skip to content

Ability to mount different filesystem at specific paths #36

@izziaraffaele

Description

@izziaraffaele

Add support for mounting multiple filesystem backends at specific paths within a single virtual filesystem. This would allow combining read-only and read-write filesystems (e.g. knowledge bases, shared assets, and agent workspaces) into a unified namespace.

Ideal usage

// default in memory fs
const fs = new InMemoryFS();

// mount shared readonly data
fs.mount('/mnt/knowledge', new OverlayFs({ root: "/path/to/read-only-knowledge" }))
fs.mount('/mnt/skills', new OverlayFs({ root: "/path/to/read-only-skills" }))

// mount agent workspace
fs.mount('/home/agent', new ReadWriteFs({ root: "/path/to/workspace" }))

const env = new Bash({ fs, cwd: overlay.getMountPoint() });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions