Install
Install with PiG
pig install npm:@normful/pi-auto-nameInstall with Pi
pi install npm:@normful/pi-auto-namePackages 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.
{
"image": "https://media.githubusercontent.com/media/normful/pi-bakery/main/screenshots/auto-name.png",
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 2.1.0 (README.md). PiG does not review it.
@normful/pi-auto-name
[!TIP] Documentation in: 简体中文 · 繁體中文 · 日本語 · 한국어 · Português · Español · Deutsch · Français · Bahasa Indonesia · Tiếng Việt · Türkçe · Polski · Русский · Українська · فارسی · العربية · हिन्दी · Italiano · Nederlands · ไทย
Automatically names your Pi session and terminal multiplexer surfaces from the conversation.
Supports renaming a herdr pane or herdr tab containing Pi:
Also supports renaming a tmux window containing Pi:
And supports renaming a zellij pane or zellij tab containing Pi:
Various languages are supported too, such as Japanese:
Installation
pi install npm:@normful/pi-auto-name
Usage
Naming runs automatically. Configure it once, and that's it.
How It Works
After the first user input (or the first agent_settled event — see config
below), it renames the Pi session and renames the containing:
- tmux window
- herdr pane and herdr tab
- zellij pane and zellij tab
Additionally, you can also configure it to continually rename as the conversation evolves, by configuring reRenameEveryNTurns.
Configuration
Configuration sources, highest priority first. Settings merge per field:
- Per-project override:
.pi/pi-auto-name.json - Globally:
~/.pi/agent/pi-auto-name.json(or<PI_CODING_AGENT_DIR>/pi-auto-name.jsonwhen configured) - XDG:
~/.config/pi-auto-name/config.json(XDG_CONFIG_HOME)
Full default configuration:
{
"enabled": true,
"initialRenameTrigger": "first-input",
"language": "en",
"namingCase": "title",
"namingContextDepth": "recent-user-messages",
"namingInstructions": "",
"namingModel": "",
"namingStyle": "natural",
"replaceExistingName": "always",
"reRenameEveryNTurns": 0,
"respectExternalRenames": true,
"sessionNameMaxLength": 200,
"skipSessionNameDedup": false,
"surfaces": {
"renameHerdrPane": true,
"renameHerdrTab": true,
"renamePiSession": true,
"renameTmuxWindow": true,
"renameZellijPane": true,
"renameZellijTab": true
},
"windowNameMaxLength": 30
}
Every configuration key is optional.
Configuration Reference
| Key | Type | Default | Meaning |
|---|---|---|---|
enabled | boolean | true | false disables this extension entirely. |
initialRenameTrigger | string | "first-input" | When the first rename fires:
|
language | string | "en" | One of: "en", "es", "de", "fr", "it", "nl", "pt", "pt-BR", "pt-PT", "id", "vi", "tr", "pl", , "ru", "ru-RU", "uk", "fa", "ar", "hi", "zh", "zh-CN", "zh-Hans", "zh-Hant", "zh-TW", "zh-HK", "ja", "ko", "th" |
namingCase | string | "title" | Guides capitalization of both natural names: "title" or "sentence", e.g. Fix the OAuth callback retry. Preserves proper nouns, acronyms, and language-specific capitalization. Ignored by other styles and scripts without letter case. |
namingContextDepth | string | "recent-user-messages" | How much of the conversation to send to LLM in each renaming prompt:
|
namingInstructions | string | "" | Extra instructions for the naming model in every style, e.g. Mention the affected service. Supplements the built-in prompt. Keep the WINDOW: / SESSION: response format. Empty text in a project override clears global instructions. Does not affect fallback names. |
namingModel | string | "" | provider/modelId override for the naming LLM call. Example: "openrouter/nvidia/nemotron-3-nano-30b-a3b:free". Leave empty to use your configured Pi default model and provider. |
namingStyle | string | "natural" | The naming style used for both names:
|
replaceExistingName | string | "always" | When to overwrite an existing Pi session name, tmux window name, herdr pane/tab name, zellij pane/tab name:
|
reRenameEveryNTurns | integer | 0 | Re-rename every N turns (every N agent_settled events). 0 never re-renames. |
respectExternalRenames | boolean | true | When true, disables this extension's renaming after an external rename is detected (e.g. after you manually run /name) |
sessionNameMaxLength | integer | 200 | Max character limit for the Pi session name. |
skipSessionNameDedup | boolean | false | true skips sending existing Pi session names into the renaming prompt. false (default) sends up to 15 existing session names as names to avoid duplicating. |
surfaces.renameHerdrPane | boolean | true | false disables renaming of the herdr pane Pi is running in |
surfaces.renameHerdrTab | boolean | true | false disables renaming of the herdr tab this process runs in. |
surfaces.renamePiSession | boolean | true | false disables renaming of Pi session |
surfaces.renameTmuxWindow | boolean | true | false disables renaming of the tmux window this process runs in. |
surfaces.renameZellijPane | boolean | true | false disables renaming of the zellij pane this process runs in. |
surfaces.renameZellijTab | boolean | true | false disables renaming of the zellij tab this process runs in. |
windowNameMaxLength | integer | 30 | Max chars for every terminal/frame window name (herdr pane/tab, tmux window, zellij pane/tab). One of the two length knobs. |
Manual rename
Run /rename without arguments to regenerate names from the current conversation using your settings. Use Pi's /name command to set a literal name.
Debugging
Set PI_AUTO_NAME_DEBUG=1 and the extension will both append structured pi-auto-name:debug entries to
the session transcript and render them in the TUI. (The debug entries are not sent to the LLM.)
Inspiration
This extension is inspired by several other similar extensions: