pi-git-sync
v0.1.3
Published
Sync Pi agent config through Git
Maintainers
Readme
pi-git-sync
Pi package that adds /sync to sync ~/.pi/agent through Git.
It keeps your Pi config portable across machines without committing auth, sessions, caches, package clones, or local sync state.
Install
pi install npm:pi-git-syncThen run inside Pi:
/sync <git-repo-url>After the first setup, use:
/syncCommands
/sync <repo> # configure repo and sync
/sync # sync configured repo
/sync status # show git statusWhat gets synced
settings.jsonweb-search.jsonkeybindings.jsonagents/extensions/skills/prompts/themes/
What is ignored
auth.jsonmodels.jsonsync.jsonsessions/,cache/,logs/,tmp/npm/,git/,node_modules/.env, tokens, credentials, keys, pem files
Conflict handling
If Git reports a conflict, /sync offers to:
- ask the agent to merge
- abort
- use local and force-push
- use remote and backup local
When the agent resolves a conflict, the next /sync commits it as:
sync: agent merged conflicts ...Safety
- Uses an allowlist instead of
git add .. - Refuses to commit staged files that look like secrets.
- Backs up local config before replacing it with remote config.
- Generates the config repo
README.mdautomatically.
Development
npm run smokeLicense
MIT
