packages/kilo-docs/pages/code-with-ai/features/enhance-prompt.md
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 {% codicon name="sparkle" /%} 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.
{% image src="/docs/img/enhance-prompt/before.png" alt="very primitive prompt" width="300" /%} {% image src="/docs/img/enhance-prompt/after.png" alt="enhanced prompt" width="300" /%}
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 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.
Speed up prompt enhancement by switching to a more lightweight LLM model provider (e.g. GPT 4.1 Nano). This delivers faster results at lower cost while maintaining quality.
Create a dedicated profile for Enhance Prompt by following the API configuration profiles guide.
{% image src="/docs/img/enhance-prompt/custom-enhance-profile.png" alt="Custom profile configuration for Enhance Prompt feature" width="600" /%}
For a detailed walkthrough: https://youtu.be/R1nDnCK-xzw
By using the "Enhance Prompt" feature, you can improve the quality of your interactions with Kilo Code and get more accurate and helpful responses.