omp packages

@villoh/pi-auto-name-session0.1.3

Pi extension: replace Pi's first-message session label with a generated title

GitHub Actions Published 21 days ago MIT ~260 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-auto-name-session

This fork is based on the original agnishcc/pi-extention-monorepo package (@agnishc/edb-auto-name-session) by Agnish Chakraborty, republished here under the @villoh scope.

A Pi extension that replaces Pi's default first-message session label with a short generated title.

Install

Install from npm:

pi install npm:@villoh/pi-auto-name-session

Try it without installing:

pi -e npm:@villoh/pi-auto-name-session

Or from a local checkout, useful while developing:

pi install /absolute/path/to/pi-auto-name-session
# or, without installing:
pi -e /absolute/path/to/pi-auto-name-session

Settings

Open the settings menu with any of these commands:

/auto-name
/auto-name config
/auto-name settings
/auto-name now

The menu currently contains the model setting. You can also open it directly:

/auto-name model
/auto-name model provider/model

The selection is stored in ~/.pi/agent/pi-auto-name-session.json. The model selector uses Pi's native keyboard navigation and the current cached model catalog; use /model when you need an explicit catalog refresh. When no model is configured, the active model from the current session is used. When the selected model is unavailable or unauthenticated, the extension tries the remaining configured models.

Behavior

  • Runs once per fresh unnamed session.
  • Waits until the first user message is recorded.
  • /auto-name now renames the session from recent user messages, capped at 4,000 characters.
  • Generates a concise searchable title.
  • Leaves named, resumed, and forked sessions alone.

Configure provider access with /login in Pi or the provider's environment variable.

License

MIT © Villoh. Forked from agnishcc/pi-extention-monorepo © Agnish Chakraborty; see LICENSE for the original notice.