Refine and Validate Optimization

implementationChallengeOctober 12, 2025

Prompt Content

Add a feedback loop to your AutoGen system. After the 'Code Optimizer' proposes a solution, simulate its 'execution' or 'profiling'. The 'Performance Analyst' should then evaluate the simulated results against the initial targets. If the targets are not met, the agents should engage in another round of deep reasoning, profiling, and code generation to refine the optimization strategy. Document the iterative process and how agents adapt their approach.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations