About the Prompt Enhancer
The Auggie CLI prompt enhancer is a powerful feature that helps you craft better prompts by automatically adding relevant context, structure, and conventions from your codebase. Instead of writing detailed prompts from scratch, you can start with a simple idea and let the prompt enhancer transform it into a comprehensive, well-structured prompt.Activating the Prompt Enhancer
To use the prompt enhancer in Auggie’s interactive mode:- Start typing your prompt in the input box
- Press Ctrl + P to activate the prompt enhancer
- Wait for enhancement - Auggie will process your prompt and replace it with an enhanced version
- Review and edit the enhanced prompt if needed
- Submit your enhanced prompt by pressing Enter
The prompt enhancer is only available when you have text entered at the command prompt. The Ctrl + P shortcut will only work in interactive mode.
How It Works
When you press Ctrl + P, the prompt enhancer:- Captures your current input and saves it to history
- Switches to Enhancement mode - you’ll see the mode indicator change and input will be temporarily disabled
- Sends your prompt to the enhancement service using your current workspace context
- Processes the response and extracts the enhanced prompt
- Replaces your input with the enhanced version and returns to Normal mode
- The mode indicator shows “Enhancing your prompt, press Esc to cancel”
- Input is disabled to prevent conflicts
- A visual indication that processing is in progress
Enhancement Process
The prompt enhancer uses your workspace context to improve your prompts by:- Adding relevant file references from your current project
- Including coding conventions and patterns from your codebase
- Structuring the prompt for better clarity and specificity
- Adding context about your project’s architecture and dependencies
- Suggesting specific examples based on existing code patterns
Canceling Enhancement
You can cancel the prompt enhancement process at any time:- Press Esc to cancel enhancement and restore your original input
- Press Ctrl + C to cancel enhancement and restore your original input
Error Handling
If the prompt enhancement fails:- Your original input will be restored
- An error notification will appear briefly (~3 seconds)
- You can try enhancing again or proceed with your original prompt
- Network connectivity issues
- Service temporarily unavailable
- Input too short or unclear for enhancement
Examples
Before Enhancement
After Enhancement (Example)
Integration with Other Features
The prompt enhancer works seamlessly with other Auggie CLI features:- History Navigation: Enhanced prompts are added to your command history
- Multi-line Input: Works with both single-line and multi-line prompts
- Conversation Context: Uses your current conversation history for better enhancement
- Workspace Awareness: Leverages your current workspace and file context
Tips for Best Results
- Start with clear intent - Even simple prompts like “add tests” or “refactor this” work well
- Be specific about scope - Mention specific files or components when relevant
- Use domain language - Technical terms related to your project help the enhancer understand context
- Review enhanced prompts - The enhancer provides a starting point; feel free to edit further
- Iterate if needed - You can enhance the same prompt multiple times for different approaches
Troubleshooting
Ctrl+P doesn’t work:- Ensure you have text in the input box
- Make sure you’re in Normal mode (not in a menu or other mode)
- Check that you’re using the correct key combination for your terminal
- Press Esc to cancel and try again
- Check your network connection
- Try with a shorter or simpler prompt
- Edit the enhanced prompt manually
- Try starting with a more specific initial prompt
- Consider the context - the enhancer works best with workspace-relevant requests
Related Features
- Task Management - Break down enhanced prompts into manageable tasks
- Keyboard Shortcuts - Learn other useful CLI shortcuts
- Slash Commands - Discover other interactive commands