← Catalog

@xl0/pi-lovely-rename

Automatically name Pi sessions from conversation context

Package

Install

Install with PiG

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

Install with Pi

pi install npm:@xl0/pi-lovely-rename
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.5 (README.md). PiG does not review it.

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.

(blank)(blank)
Pi Lovely Webweb_search, web_fetch, web_image via Firecrawl, Exa, Tavily, Brave
Pi Lovely Dev Tools/tool, /show-sysprompt, /show-context, /llm-stats
Pi Lovely CodexGPT fast mode and Codex-style apply_patch
Pi Lovely IDEIDE integration
Pi Lovely Configscoped config helpers for Pi extensions
Pi Lovely Commentopen the last assistant message in your editor and sync edits back into the prompt

Like this work? Hire me