Skip to main content
Loading navigation
Back to prompt library

Code Optimization and Explanation Generation

Linked challenge: Agentic Code Optimization & Review

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
Develop the DSPy program for generating optimized code and detailed explanations. Leverage DeepSeek-R1 (or your chosen code LLM) for generating optimized code snippets and verbose explanations. Ensure the explanation clarifies why the changes were made, how they improve performance or quality, and references the identified issues. Focus on one language (e.g., Rust, Java, or Python) initially.