Skip to main content
PostgresVFS connects to Postgres via a DSN and exposes its schemas and tables as a tree. Setup steps for the DSN and required permissions live at Postgres Credentials.

Node

Browser

The default browser driver uses Neon’s HTTP transport. Replace the connection string below with one for a read-only demo role on Neon. Browser users can inspect this credential. Keep private database credentials in a Node backend.

Config

Fields marked secret are redacted in snapshots.

Mount mode

read only. Postgres mounts are read-only at the VFS level.

Snapshot behavior

The DSN is redacted on snapshot. Hand the mount back at load (the third argument of Workspace.load, or a config over the server and CLI).

VFS.md

The VFS.md an agent reads with Postgres mounted at /<path>.

Virtual Filesystem

VFS Layout

/<path>
  • Read database.json first to plan joins.
  • Read semantic.json to learn what a table means: it splits columns into dimensions (group by), time_dimensions and facts (aggregate), and carries COMMENTs, enum domains and example values.
  • Reading rows.jsonl is refused for a table above the configured row or byte threshold. Use head, tail or wc, which ask SQL for only what they need, or grep, which fetches only the matching rows when SQL can find every match.

Supported Unix Commands for VFS

Unix commands work on each path as on a local filesystem, as far as the path supports them:

Limitations of Unix Commands for VFS

Where a path differs from a local filesystem:Run man <cmd> or <cmd> --help for one command’s usage.

Integration

What PostgreSQL answers through its own API, so fewer files are read. Integration explains each command. The Python PostgreSQL docs list when each search answers and what it can miss.