Enhance Prompt
The "Enhance Prompt" feature in Kilo Code helps you improve the quality and effectiveness of your prompts before sending them to the AI model. By clicking the 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.
Why Use Enhance Prompt?
- Improved Clarity: Kilo Code can rephrase your prompt to make it more understandable for the AI model.
- Added Context: The enhancement process can add relevant context to your prompt, such as the current file path or selected code.
- Better Instructions: Kilo Code can add instructions to guide the AI towards a more helpful response (e.g., requesting specific formatting or a particular level of detail).
- Reduced Ambiguity: Enhance Prompt helps to eliminate ambiguity and ensure that Kilo Code understands your intent.
- Consistency: Kilo will consistently format prompts the same way to the AI.
How to Use Enhance Prompt
- Type your initial prompt: Enter your request in the Kilo Code chat input box as you normally would. This can be a simple question, a complex task description, or anything in between.
- Click the Icon: Instead of pressing Enter, click the icon located in the bottom right of the chat input box.
- Review the Enhanced Prompt: Kilo Code will replace your original prompt with an enhanced version. Review the enhanced prompt to make sure it accurately reflects your intent. You can further refine the enhanced prompt before sending.
- Send the Enhanced Prompt: Press Enter or click the Send icon () to send the enhanced prompt to Kilo Code.
Customizing the Enhancement Process
The "Enhance Prompt" feature uses a customizable prompt template. You can modify this template to tailor the enhancement process to your specific needs.
- Open the Prompts Tab: Click the icon in the Kilo Code top menu bar.
- Select "ENHANCE" Tab: You should see listed out support prompts, including "ENHANCE". Click on this tab.
- Edit the Prompt Template: Modify the text in the "Prompt" field.
The default prompt template includes the placeholder ${userInput}
, which will be replaced with your original prompt. You can modify this to fit the model's prompt format, and instruct it how to enhance your request.
Limitations and Best Practices
- Experimental Feature: Prompt enhancement is an experimental feature. The quality of the enhanced prompt may vary depending on the complexity of your request and the capabilities of the underlying model.
- Review Carefully: Always review the enhanced prompt before sending it. Kilo Code may make changes that don't align with your intentions.
- Iterative Process: You can use the "Enhance Prompt" feature multiple times to iteratively refine your prompt.
- Not a Replacement for Clear Instructions: While "Enhance Prompt" can help, it's still important to write clear and specific prompts from the start.
By using the "Enhance Prompt" feature, you can improve the quality of your interactions with Kilo Code and get more accurate and helpful responses.