pi-session-auto-rename

Automatically names pi sessions with AI, with configurable naming model

Package details

extension

Install pi-session-auto-rename from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-session-auto-rename
Package
pi-session-auto-rename
Version
0.1.3
Published
Mar 4, 2026
Downloads
77/mo · 16/wk
Author
egornomic
License
MIT
Types
extension
Size
18.9 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-session-auto-rename

Auto-renames pi sessions using AI. The extension picks a short title from the first user message, and also provides commands to rename from full chat history and choose which model to use for naming.

Install

pi install npm:pi-session-auto-rename

Or from git:

pi install git:github.com/egornomic/pi-session-auto-rename

What it adds

  • Automatic naming when a session starts or after first assistant response
  • /name-ai command to rename from full conversation history
  • /name-ai-config command to show the current naming model and pick/set a new one (provider/model)

Example

User first message: "Design a migration plan for our billing schema"
→ Session name: "Billing Schema Migration Plan"

Notes

  • The extension uses your configured model keys in pi.
  • Selected naming model is persisted in ~/.pi/agent/extensions/pi-session-auto-rename.json, so it survives restarts and new sessions.
  • If no API key exists for the selected naming model, it shows a warning and keeps the current session name.