The command for each task, in each harness. Pick what you are working with, then read across: commands you type in your shell or a script and commands you type inside an open session are listed separately. Commands for renaming sessions are on Thread naming and importing from another harness on Migration.
From your shell
Commands you run in a terminal or script, outside a session.
| Task | pichecked at 1.2.0 |
|---|---|
| Use | |
| Resume | also pi -r Open the session picker to choose a saved session. 1 noteThe picker can search, rename, delete and sort sessions. Open a session by file path, exact id or partial id. 1 noteOffers to fork a match from another project. |
| Fork | Fork a saved session into a new session for this project. |
| Export | Export a session file to HTML. |
Inside a session
Slash commands you type into an open session.
| Task | pichecked at 1.2.0 |
|---|---|
| Set up | |
| Import | Import a JSONL session file and resume it. |
| Use | |
| Resume | Switch to another saved session through the picker. |
| Fork | Create a new session from an earlier user message. Duplicate the current session at its current position. |
| Export | Export the current session as HTML or JSONL. |
| Share | Upload the session as a shareable link. 1 noteUses a Radius artifact when configured, otherwise a private GitHub gist. |
| Remove | |
| Delete | Delete a saved session from the picker. 1 noteMoves it to the trash when a trash command exists. No shell command. |
Notes and sources
pi
- Shell MCP commands always use the built-in MCP and do not load extensions. In-session behaviour is documented, not live-probed.
- pi-1.2.0 help observation, live observation, checked 2026-10-14
- pi 1.2.0 documentation, Documentation, checked 2026-10-15