pi-smart-sessions

Auto-names Pi sessions with AI-generated summaries — no more cryptic skill tags in your session list

Package details

extension

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

$ pi install npm:pi-smart-sessions
Package
pi-smart-sessions
Version
1.0.1
Published
Feb 21, 2026
Downloads
217/mo · 49/wk
Author
haza
License
MIT
Types
extension
Size
5.7 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-smart-sessions

npm version

A Pi extension that automatically names your sessions with AI-generated summaries. No more scrolling through a wall of skill tags in your session list.

Before

Every skill session looks the same — impossible to tell them apart:

Before — all sessions show raw skill tags

After

Each session gets a short, meaningful name:

After — sessions have AI-generated summaries

The name is a skill prefix plus a 5–10 word summary of your prompt:

Session name close-up

How it works

  1. Detects when you start a session with /skill:name your prompt here
  2. Immediately sets a temporary name with the first 60 characters
  3. Calls a cheap model (Codex mini → Haiku → current model) to summarize your prompt in 5–10 words
  4. Updates the session name with the AI summary, prefixed by the skill name

The summarization happens in the background — no delay to your workflow. If the model call fails, the truncated name is kept as a fallback.

Install

pi install npm:pi-smart-sessions

Or try it without installing:

pi -e npm:pi-smart-sessions

You can also install from git:

pi install git:github.com/HazAT/pi-smart-sessions

Tips

  • Existing sessions can be renamed manually with Ctrl+R in the session selector
  • The extension only names the first skill-based prompt per session — it won't overwrite names you set yourself
  • Works with any skill, not just brainstorm

License

MIT