@AIAutopilotEngine Optimize this function:
function calculateTotal(items) {
var total = 0;
for (var i = 0; i < items.length; i++) {
total = total + items[i].price * items[i].quantity;
}
return total;
}
Prompt Optimization
@AIAutopilotEngine Make this prompt better:
write a function that does something with arrays
Via Command
Select code in your editor
Run command: AIAutopilotEngine: Start Optimization
The chat will open with your selection ready to optimize
Pipeline Stages
1. Initial Generation
Receives your code or prompt
First improvement pass applied
2. Evaluation
Analyzes quality (0-10 score)
Identifies specific issues
Returns structured JSON feedback
3. Self-Refine Rounds
Targets identified issues
Iterates until quality threshold met
Maximum 5 iterations
4. Finalization
Returns best scoring version
Shows quality metrics
Clean output without internal details
Requirements
VS Code 1.101.0+
GitHub Copilot or compatible LLM provider
Configuration
The engine uses these default settings:
Setting
Default
Description
Max Iterations
6
Maximum refinement cycles
Target Score
9.5
Quality threshold to stop
Min Improvement
0.2
Minimum score gain per iteration
Privacy & Security
✅ Uses your existing VS Code language model
✅ No external API calls
✅ No data storage
✅ No API keys required
✅ All processing happens locally
Supported Languages
AIAutopilotEngine works with any programming language:
TypeScript / JavaScript
Python
C# / .NET
Java
Go
Rust
PHP
Kotlin
And more...
License
MIT
Made with ❤️ for developers who want the best from their LLM interactions
👨💻 Author
Hamza Cantürk
"Kod kalitesi tesadüf değil, sürekli iyileştirmenin sonucudur."