apps/docs/docs/features/enhance-prompt.md
The "Enhance Prompt" feature in Roo Code helps you improve the quality and effectiveness of your prompts before sending them to the AI model. By clicking the wand icon in the chat input, you can automatically refine your initial request, making it clearer, more specific, and more likely to produce the desired results.
If you click the enhance button with an empty prompt, Roo will show you a helpful message explaining how the feature works. This is a great way to learn about the enhancement feature if you're new to it.
The enhance button remains enabled even when message sending is disabled. This allows you to enhance prompts that will be queued for later sending.
The "Enhance Prompt" feature uses a customizable prompt template. You can modify this template to tailor the enhancement process to your specific needs.
The default enhancement prompt template is:
Generate an enhanced version of this prompt (reply with only the enhanced prompt - no conversation, explanations, lead-in, bullet points, placeholders, or surrounding quotes):
${userInput}
The ${userInput} placeholder will be replaced with your original prompt. You can modify this template to fit your needs and the model's prompt format.
The Prompts settings include a test area where you can preview how your custom enhancement prompt works:
The API configuration used for Enhance Prompt is, by default, the same one that is selected for Roo Code tasks, but it can be changed:
The Enhance Prompt feature can now use your conversation history to generate more relevant suggestions. This helps reduce hallucinations and provides more accurate enhancements based on what you've been working on.
When enabled, the enhancement process includes your last 10 messages from the current conversation as context. This allows the AI to:
To enable or disable the use of conversation history in prompt enhancement:
When disabled, the enhancement will only consider your current prompt without any conversation context.
By using the "Enhance Prompt" feature, you can improve the quality of your interactions with Roo Code and get more accurate and helpful responses.