Prompt Enhancement
Supercode's Prompt Enhancement feature automatically refines your AI prompts to achieve superior results. No more struggling with complex prompt engineering – our system intelligently transforms your simple instructions into optimized prompts that generate precisely the code you need.
Intelligent Refinement
Behind the scenes, our AI analyzes your prompt intent and expands it with relevant context, technical requirements, and best practices. This process ensures that you get high-quality code even from brief or non-technical instructions.
🚀 Prompt Enhancement v2 (Supercode 1.66.7)
We've significantly upgraded our default Prompt Enhancer! The new version gathers even more context from your project, works faster than before, and delivers higher quality results. Experience improved accuracy and performance with every enhanced prompt.
Enhancement Features
- Contextual enrichment based on your project structure
- Technical precision improvement for vague requests
- Style and pattern matching to your codebase
- Framework-specific optimization
- Automatic inclusion of security and performance considerations
Advanced Enhancers
For more sophisticated prompt enhancement, Supercode offers Advanced Enhancement Modes that provide deeper control over your AI interactions. Access these powerful features by performing a long press on the Enhance button to reveal a dropdown menu with specialized enhancement options.
Advanced Enhancement Modes
- Decompose Tasks: Automatically breaks down your briefly formulated task into a comprehensive block of step-by-step actions. This mode transforms simple requests into detailed, actionable workflows that guide the AI through complex implementation processes.
- Suggest Details: Enriches your initial prompt with essential technical details, implementation patterns, and best practices. This enhancement mode significantly improves the quality of the AI agent's work by providing comprehensive context and requirements.
These advanced modes are particularly valuable when working on complex features or when you need the AI to consider multiple aspects of implementation that might not be immediately obvious from a simple prompt.
Custom Enhancers
Create your own custom prompt enhancers tailored to your specific workflow and terminology. By creating an enhancers
folder within your .supercode
directory in the project root, you can define unlimited custom enhancement options that transform your prompts according to your unique requirements.
Custom Enhancer Configuration
Each enhancer is defined as a JSON file in .supercode/enhancers/
with the following structure:
{ "name": "React Best Practices", "prompt": "Please enhance the following prompt by adding React best practices, proper error handling, and performance optimization suggestions." }
Here's another example for backend-focused enhancement:
{ "name": "API Security Focus", "prompt": "Transform the following prompt by adding security considerations, input validation requirements, error handling patterns, and rate limiting suggestions." }
Why Custom Enhancers Are Powerful
- Personalized Enhancement: Create enhancers that match your coding standards and project requirements
- Terminology Replacement: Automatically translate business terms into technical implementations
- Workflow Integration: Add specific steps, checks, or patterns that your team always follows
- Domain Expertise: Incorporate specialized knowledge for your industry or tech stack
- Team Consistency: Share enhancers across your team to maintain consistent code generation patterns
Benefits
Prompt Enhancement delivers significant advantages:
- Drastically reduced need for prompt iterations
- More consistent code quality across team members
- Less time spent crafting complex prompts
- Accessible AI coding for developers at all experience levels