@backnotprop/pi-move
v0.1.0
Published
Pi extension that adds /move session relocation with Git worktree support.
Downloads
41
Maintainers
Readme
pi-move
Pi package that adds /move for relocating the current session to another directory or Git worktree.
Install
pi install npm:@backnotprop/pi-moveDevelopment/local install:
pi -e ~/oss-agents/pi-move
pi install ~/oss-agents/pi-moveGit install:
pi install git:[email protected]:backnotprop/pi-moveUsage
/move <path>
/move --changes <path>
/move --new [name]/move <path>updates the session working directory only./move --changes <path>transfers scoped tracked and untracked Git changes when moving to another worktree./move --new [name]creates a detached Git worktree atHEAD, then moves there.
New worktrees are created under:
~/.pi/agent/worktrees/<project-key>/<context-slug>If no name is provided, the extension derives the slug from the session name and recent text messages. Existing directory collisions receive -2 through -10 suffixes.
Notes
- Destinations must resolve to the same logical project.
- Change transfer is scoped to the old session directory.
- Source cleanup after a successful move uses
git checkout -- .andgit clean -fd -- .from the old session directory. - Moving within the same checkout updates the session location without transferring or cleaning changes.
