← Catalog

pi-next

Next-prompt suggestions for Pi

Extension

Install

Install with PiG

pig install npm:pi-next

Install with Pi

pi install npm:pi-next
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": [
    "./index.ts"
  ]
}

README

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

pi-next

A small Pi extension that suggests your next prompt as dim text in the editor. I made it mainly for my own use.

Install

pi install npm:pi-next

Start a new Pi process, then run:

/next

Choose a model for suggestions from the picker. Your choice is saved for later sessions, separately from your main Pi model.

Use

After Pi finishes a reply, a suggestion may appear when the editor is empty.

  • Tab / Right Arrow: insert it for editing, without sending.
  • Escape: dismiss it.
  • Enter: behaves normally and doesn't accept the suggestion.

Typing also dismisses the suggestion. Use /next-recall to bring it back before starting a new conversation turn.

Use /next suggest for a fresh suggestion, even when automatic suggestions are off. It can use the latest exchange immediately after resuming a conversation. If the model has nothing useful to suggest, Pi tells you.

Local !/!! commands hide the suggestion while they run. The same suggestion can reappear afterward when the editor is empty.

CommandWhat it does
/next or /next onTurn automatic suggestions on, choosing a model if needed.
/next suggestAsk for a new suggestion.
/next-model or /next modelChoose the suggestion model. Both accept an optional provider/model argument.
/next-recall or /next recallBring back the last suggestion for the current exchange.
/next statusShow the selected model and reported token usage.
/next offTurn automatic suggestions off for this session.

To override the saved model at startup, use pi --next-model provider/model.

Each prediction makes an extra model request using a few recent messages and the latest reply. The extension can conflict with others that replace Pi's editor.

Prefix history (optional)

Start Pi with:

pi --prefix-history

Type a prefix such as !git, then use Up/Down to browse matching prompts or shell commands from the current session. Down past the newest match restores your draft. Edit the recalled text or press Enter to submit it.

Browsing history makes no model requests and works even when suggestions are off.

Remove

pi remove npm:pi-next

Licence

MIT. See third-party notices for the Pi and SuPi editor references.