pi-session-autoname
AI-powered session naming for Pi, with optional Herdr tab renaming
Package details
Install pi-session-autoname from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-session-autoname- Package
pi-session-autoname- Version
0.1.0- Published
- Aug 24, 2026
- Downloads
- 145/mo · 145/wk
- Author
- matiasr
- License
- MIT
- Types
- extension
- Size
- 12.2 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-session-autoname
Pi extension for naming sessions and herdr tabs.
Commands
/auto-name: generate a session name from the current session context, apply it as the Pi session name, and rename the herdr tab when running inside herdr./hname [name]: rename the current herdr tab. If no name is provided, it uses the current Pi session name, or a fallback label.
How /auto-name works
- uses the active Pi model (
ctx.model) - calls the model directly from the extension via Pi's model API (
complete()), without spawning a nestedpiprocess - samples the visible session transcript using:
- first 4 conversation messages
- 4 middle messages
- last 4 messages
- includes only conversation messages (
userandassistant) - excludes tool outputs
- renames the herdr tab to
Loading...while the title is being generated
Install
Option 1: pi package
pi install /absolute/path/to/pi-session-autoname
Then reload Pi:
/reload
Option 2: local extension directory
cp -r pi-session-autoname ~/.pi/agent/extensions/
Then reload Pi:
/reload
Option 3: npm package
pi install npm:pi-session-autoname
Then reload Pi:
/reload
Usage
/auto-name/hname/hname "my tab name"
Notes
/auto-namerequires an active model.- If you are not in a herdr tab, only the Pi session name is updated.
- Herdr auto-rename avoids showing the fallback tab label while an auto-generated name is still pending.