pi-auto-rename

Auto-rename pi sessions with AI via a single /rename command

Package details

extension

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

$ pi install npm:pi-auto-rename
Package
pi-auto-rename
Version
0.1.4
Published
Mar 27, 2026
Downloads
138/mo · 14/wk
Author
victor-founder
License
MIT
Types
extension
Size
20.6 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-auto-rename

Pi extension that auto-renames sessions using AI. Provides a single /rename command with subcommands for manual renaming, model configuration, and state inspection.

Install

pi install npm:pi-auto-rename

Or from git:

pi install git:github.com/victor-software-house/pi-auto-rename

Commands

/rename

No arguments -- rename the current session from the full conversation history.

/rename model

Open an interactive model picker to choose which model generates session names.

/rename model <provider/model>

Set the naming model directly without the picker.

/rename model anthropic/claude-haiku-4-5
/rename model openai/gpt-4o-mini

/rename show

Print the current naming model.

/rename reset

Restore the default naming model (anthropic/claude-haiku-4-5).

/rename help

Print the usage string.

Auto-naming

Sessions are named automatically after the first assistant response. The extension uses the first user message to generate a 2-6 word Title Case name. Use /rename (no args) at any point to regenerate the name from the full conversation history.

Configuration

The selected naming model persists in ~/.pi/agent/extensions/pi-auto-rename.json across sessions and restarts.

Acknowledgments

Inspired by pi-session-auto-rename by Egor.

License

MIT