@sanif/pi-chat-suggest
Context-aware next-prompt suggestions inside Pi's editor.
Package details
Install @sanif/pi-chat-suggest from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@sanif/pi-chat-suggest- Package
@sanif/pi-chat-suggest- Version
0.1.0- Published
- Aug 18, 2026
- Downloads
- 183/mo · 18/wk
- Author
- sanif
- License
- MIT
- Types
- extension
- Size
- 83.4 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Chat Suggest
A Pi extension that predicts a useful next message and displays it as subtle ghost text directly in the prompt editor.
What it does
- Generates send-ready suggestions after an agent response.
- Press Tab to accept the visible suggestion.
- Use Up/Down to preview alternatives and Enter to choose one.
- Press Esc or start typing to dismiss suggestions instantly.
- Preserves Pi's built-in completion behavior and existing custom editors.
- Uses Chat Summary context when available but also works independently.
Install
pi install npm:@sanif/pi-chat-suggest
Or install from GitHub:
pi install git:github.com/sanif/pi-chat-suggest
Usage
/suggest refresh— regenerate suggestions/suggest settings— manage feature toggles/suggest prompt— open the editable generation prompt/suggest help— show all commands
Configuration is loaded from ~/.pi/agent/chat-suggest.json and trusted project overrides from <project>/.pi/chat-suggest.json.
Privacy and cost
Suggestion generation may send the latest response, compact session summary, and draft text to the configured model provider. Privacy-safe diagnostics never include that content.
Development
bun install
bun run verify
License
MIT