A pi extension that lets you pick from recent sessions and resume them in a new WezTerm tab.
Just clone this repo and start pi from its directory — pi auto-discovers extensions in .pi/extensions/.
git clone https://github.com/343max/pi-session-manager.git
cd pi-session-manager
pi --session-pickOr install as a pi package:
pi install git:github.com/343max/pi-session-manager| Method | What it does |
|---|---|
pi --session-pick |
Launch pi, immediately show the picker, spawns wezterm, then exits |
pi --session-pick-json |
Output last 20 sessions as JSON (for scripting) |
/session-pick |
Show the picker inside an already-running pi session |
All show your last 20 sessions sorted by recency, with name and working directory.
# Pipe to jq for scripting
pi --session-pick-json | jq '.[0].id'Pick one from the interactive picker → a new WezTerm tab opens with pi --session <id> continuing that session.