omp packages

omp-rpc-auto-title0.1.0

Generate OMP session titles for ordinary RPC prompts.

hayabusac Published 26 days ago MIT ~160 downloads/mo

Built for omp

The author tagged this package oh-my-pi.

Did it work for you?

Result

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

Reports 0

No reports yet.

Readme

OMP RPC Auto Title

Adds OMP's built-in model-based session title generation to ordinary RPC prompts. OMP normally starts this work from its terminal input path, while RPC prompt does not.

The extension runs only in RPC mode. When an unnamed session receives a substantive user prompt, it starts title generation in the background, leaves the agent turn running, and persists the resulting name. It skips named sessions, coalesces simultaneous prompts, and checks the session again before saving so a manual rename or session switch wins. OMP's PI_NO_TITLE environment variable disables it.

The title model selection and title text come from OMP's own generateSessionTitle implementation and active settings. If OMP has no available title model, or the input is too short to name, the session remains unnamed and a later prompt can retry.

Installation

Install the published package through OMP:

omp plugin install omp-rpc-auto-title

Restart the OMP RPC process after installation. Pi Desktop starts a new RPC process when its agent is restarted. To remove the package:

omp plugin uninstall omp-rpc-auto-title

Development

bun run typecheck
bun test

This package targets OMP 18.2.10. It imports OMP's internal title generator and scoped settings resolver, so compatibility should be rechecked after an OMP upgrade. The extension API's public setSessionName records a generated title as a user-set name; OMP's automatic replan title refresh therefore will not replace it.