pi-fork-from-first
Fork the current Pi session from its first user message and switch into the new fork immediately, with sensible defaults in relation to pi-rewind-hook
Package details
Install pi-fork-from-first from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-fork-from-first- Package
pi-fork-from-first- Version
0.1.3- Published
- Apr 24, 2026
- Downloads
- 308/mo · 162/wk
- Author
- w-winter
- License
- MIT
- Types
- extension
- Size
- 8 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"extensions/fork-from-first.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Fork From First for Pi (pi-fork-from-first)
Fork the current Pi session from its first user message and switch into the new fork immediately. Useful especially in combination with npm:pi-session-ask and handoff/pickup prompt patterns.
Install
From npm:
pi install npm:pi-fork-from-first
From the dot314 git bundle (filtered install):
{
"packages": [
{
"source": "git:github.com/w-winter/dot314",
"extensions": ["extensions/fork-from-first.ts"],
"skills": [],
"themes": [],
"prompts": []
}
]
}
Usage
/fork-from-first
Rewind integration
If pi-rewind-hook is installed, /fork-from-first automatically requests a conversation-only fork ("keep current files"), so filesystem state is preserved while the conversation resets.