| name | vault-sync |
|---|---|
| description | Use when a user wants an AI agent to install Vault Sync, mirror an existing Vault Git repository to local files, keep it refreshed, or consume an already-synced Vault with normal filesystem tools. |
Vault Sync mirrors an existing Vault Git repository onto the user's local filesystem. Use it only for file sync and local readiness. Do not use it for search, query, chat, indexing, Vault creation, or Vault management.
- Confirm the environment is macOS, Linux, or WSL2. Native Windows PowerShell and Command Prompt are out of scope.
- Check for
bashandgit.rgis optional but useful after sync. - Install
vault-syncif it is not already onPATH:
mkdir -p ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/graphlit/vault-sync/main/bin/vault-sync -o ~/.local/bin/vault-sync
chmod +x ~/.local/bin/vault-sync- Ask for the Vault Git repository URL and local folder if the user did not provide them. Use
~/vaults/<repo-name>as the default. - Do not infer the local Vault path from the current working directory, app name, or repository owner. Do not invent hidden app folders such as
~/.zine/vault,~/.dossium/vault, or~/.graphlit/vault. - Run:
vault-sync init <vault-repo-url> <path>
vault-sync pull <path>
vault-sync doctor <path>- If the user wants recurring refreshes, install a pull schedule:
vault-sync schedule install <path> --every 5m- Refresh first when practical:
vault-sync pull <path>- Read
<path>/README.mdfirst. - Ignore hidden control folders such as
.git,.zine,.dossium,.graphlit,.claude, and.codex. - Use ordinary filesystem tools:
ls,rg,sed,cat, and native file reads. - Treat the Vault as read-only unless the user explicitly asks to edit local files.
If QMD is installed and the user wants a stronger local search helper, add the synced Vault folder as a QMD collection:
qmd collection add <path> --name <name> --mask "**/*.md"
qmd context add qmd://<name> "Local Vault synced by Vault Sync"
qmd embedUse QMD to find likely files; use file reads for the full source.
Vault Sync is the mirror. The agent is the reader.