Install
Install with PiG
pig install npm:pi-git-syncInstall with Pi
pi install npm:pi-git-syncReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./extensions"
]
}README
Written by the package's publisher, shown as published in version 0.1.3 (README.md). PiG does not review it.
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