← Catalog

@normful/pi-auto-name

Auto-generates names in your language for Pi sessions, tmux windows, herder panes/tabs, zellij panes/tabs so you can easily view what each Pi is doing

Extension

Install

Install with PiG

pig install npm:@normful/pi-auto-name

Install with Pi

pi install npm:@normful/pi-auto-name
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.

{
  "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:

pi-auto-name herdr screenshot

Also supports renaming a tmux window containing Pi:

pi-auto-name tmux screenshot

And supports renaming a zellij pane or zellij tab containing Pi:

pi-auto-name zellij screenshot

Various languages are supported too, such as Japanese:

pi-auto-name Japanese renaming screenshot

Installation

pi install npm:@normful/pi-auto-name

Usage

Naming runs automatically. Configure it once, and that's it.

Manual rename

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:

  1. Per-project override: .pi/pi-auto-name.json
  2. Globally: ~/.pi/agent/pi-auto-name.json (or <PI_CODING_AGENT_DIR>/pi-auto-name.json when configured)
  3. 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

KeyTypeDefaultMeaning
enabledbooleantruefalse disables this extension entirely.
initialRenameTriggerstring"first-input"When the first rename fires:
  • "first-input" — after you send first prompt
  • "first-agent-settled" — after the first LLM run finishes (after the first agent_settled event).
languagestring"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"
namingCasestring"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.
namingContextDepthstring"recent-user-messages"How much of the conversation to send to LLM in each renaming prompt:
  • "first-user-message" — only the first user message
  • "recent-user-messages" — first user message plus the last 3 user messages
  • "full-conversation" — the whole conversation (users, assistants, tool calls & results), capped to ~60k chars keeping both the opening (core intent) and the latest tail
namingInstructionsstring""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.
namingModelstring""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.
namingStylestring"natural"The naming style used for both names:
  • "natural" — free-form sentence
  • "slug" — lowercase kebab-case.
  • "topic-project" — <topic>|<project>, project derived from current working directory
replaceExistingNamestring"always"When to overwrite an existing Pi session name, tmux window name, herdr pane/tab name, zellij pane/tab name:
  • "always" — always overwrite
  • "never" — never overwrite
reRenameEveryNTurnsinteger0Re-rename every N turns (every N agent_settled events). 0 never re-renames.
respectExternalRenamesbooleantrueWhen true, disables this extension's renaming after an external rename is detected (e.g. after you manually run /name)
sessionNameMaxLengthinteger200Max character limit for the Pi session name.
skipSessionNameDedupbooleanfalsetrue 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.renameHerdrPanebooleantruefalse disables renaming of the herdr pane Pi is running in
surfaces.renameHerdrTabbooleantruefalse disables renaming of the herdr tab this process runs in.
surfaces.renamePiSessionbooleantruefalse disables renaming of Pi session
surfaces.renameTmuxWindowbooleantruefalse disables renaming of the tmux window this process runs in.
surfaces.renameZellijPanebooleantruefalse disables renaming of the zellij pane this process runs in.
surfaces.renameZellijTabbooleantruefalse disables renaming of the zellij tab this process runs in.
windowNameMaxLengthinteger30Max 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: