@danchamorro/pi-prompt-enhancer
v1.0.1
Published
Enhance prompts to be clearer, more specific, and more actionable before sending
Maintainers
Readme
pi-prompt-enhancer
A Pi extension that rewrites your prompts to be clearer, more specific, and more actionable before sending them to the agent.
Uses whichever model is currently selected in your session -- no extra API keys or configuration needed.
Install
pi install npm:@danchamorro/pi-prompt-enhancerUsage
Keyboard shortcuts
| Shortcut | Action |
|---|---|
| Ctrl+Shift+E | Enhance the current editor text in-place |
| Ctrl+Shift+Z | Restore original prompt (undo enhancement) |
Command
/enhance <prompt>Enhances the given prompt and places the result in the editor for review.
How it works
- Type a prompt in the editor.
- Press
Ctrl+Shift+E(or use/enhance). - The extension sends your prompt to the current model with instructions to rewrite it -- not answer it.
- The enhanced prompt replaces your editor text.
- Review, edit if needed, then press Enter to send.
- Changed your mind? Press
Ctrl+Shift+Zto restore the original.
Examples
Before:
fix the auth bug
After:
Fix the authentication bug: identify the root cause of the failure, apply the fix, and verify that login, token refresh, and session expiry flows all work correctly after the change.
Before:
what is the best coding model
After:
As of today, which AI coding model is considered the best on the market, and how do the top options compare in terms of code quality, debugging accuracy, reasoning ability, speed, context window size, and pricing for professional software engineering use?
Requirements
- Pi coding agent
- Any model with an active API key selected in the session
License
MIT
