@xl0/pi-lovely-rename

Automatically name Pi sessions from conversation context

Packages

Package details

extension

Install @xl0/pi-lovely-rename from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@xl0/pi-lovely-rename
Package
@xl0/pi-lovely-rename
Version
0.1.3
Published
Jul 11, 2026
Downloads
533/mo · 43/wk
Author
xl0
License
MIT
Types
extension
Size
12.4 KB
Dependencies
1 dependency · 3 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-lovely-rename

Automatically gives unnamed Pi sessions a short, task-specific name after a configurable amount of conversation.

Install

pi install npm:@xl0/pi-lovely-rename

For local development:

pi -e ./pi/packages/pi-lovely-rename

Usage

The extension auto-renames a session only when it has no session name already. Manual /rename regenerates the name even when one is already set.

Defaults:

  • rename after 3 user-agent turns
  • token trigger disabled

Commands:

/rename                 Generate or regenerate the session name
/rename settings        Configure triggers

For explicit names, use Pi's built-in /name <name>.

Configuration

/rename settings edits ~/.pi/agent/xl0-pi-lovely-rename.json.

Fields:

  • afterSteps: user-agent turns before auto-renaming. 0 disables this trigger.
  • afterTokens: cumulative assistant-reported tokens before auto-renaming. 0 disables this trigger.
  • prompt: naming prompt prepended to the serialized conversation.

Model request

Naming always uses the current session model through pi-ai with a compact serialized conversation excerpt and a dedicated naming prompt. It does not reuse the active session system prompt.

Related projects

Pi Lovely Web web_search, web_fetch, web_image via Firecrawl, Exa, Tavily, Brave
Pi Lovely Dev Tools /tool, /show-sysprompt, /show-context, /llm-stats
Pi Lovely Codex GPT fast mode and Codex-style apply_patch
Pi Lovely IDE IDE integration
Pi Lovely Config scoped config helpers for Pi extensions
Pi Lovely Comment open the last assistant message in your editor and sync edits back into the prompt

Like this work? Hire me