Vault Management¶
Vaults are the durable workspace roots in agentvfs.
The intended model is:
- a project has a long-lived vault
- each task gets a cheap fork of that vault
- risky work inside that fork is protected by checkpoints
What a Vault Contains¶
A vault stores:
- files and directories
- version history
- metadata and tags
- checkpoints and snapshots
- audit history
By default vaults live under:
Create a Vault¶
Create with a specific backend:
List and Select Vaults¶
Use --vault with other commands to target a vault without switching the global current selection.
Fork a Vault¶
Forks are the key workspace primitive for agent tasks.
This creates a new workspace derived from myproject and switches to it.
Why Forks Matter¶
Forks let you:
- isolate one task from another
- keep a durable project root clean
- create short-lived workspaces cheaply
- checkpoint and discard risky experiments safely
Recommended Pattern¶
For agent work, prefer:
- durable root vault
- task-specific fork
- checkpoint inside the fork
- mounted execution against the fork
Checkpoints Inside a Vault or Fork¶
Use checkpoints before risky work:
The snapshot commands remain available as the underlying implementation surface.
Delete a Vault¶
Deletion removes the selected vault backing store. Be careful not to delete durable project roots when you only meant to discard a short-lived task fork.
Durability and Portability¶
Vaults are portable because the backing store is local and self-contained.
This makes them useful for:
- backing up workspaces
- moving agent state between machines
- preserving a durable root while throwing away short-lived forks
How Vaults Relate to the Proxy Boundary¶
Vaults are not the whole product surface. They are the durable storage layer behind the proxy boundary.
The intended execution path is:
From that perspective:
- the vault is the root
- the fork is the task workspace
- the mount is the tool-facing path
- the proxy is the execution boundary