pi-git-sync0.1.3
Sync Pi agent config through Git
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
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-sync
Then run inside Pi:
/sync <git-repo-url>
After the first setup, use:
/sync
Commands
/sync <repo> # configure repo and sync
/sync # sync configured repo
/sync status # show git status
What 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 smoke
License
MIT