DeepCode
DeepCode copied to clipboard
feat: add user requirements analysis feature
feat: add user requirements analysis feature in chat mode
🎯 Overview
Adds intelligent requirement gathering to chat interface - AI generates targeted questions to help users provide more detailed project requirements before code generation.
✨ Key Features
- Guided Analysis Mode: AI asks 5-8 smart questions based on user's initial input
- Flexible Interaction: Users can answer, skip, or provide partial responses
- Smart Question Generation: Context-aware questions for web apps, data analysis, ML projects
- Structured Output: AI synthesizes answers into comprehensive requirement documents
🔧 Implementation
- New
RequirementAnalysisAgentfollowing MCP Agent architecture - Enhanced UI with 3-step workflow: Input → Questions → Requirements Review
- Async processing with progress tracking
- Robust error handling with intelligent fallbacks
🚀 User Flow
- Select "Guided Analysis" in chat
- Enter basic project idea
- Answer AI-generated questions
- Review detailed requirements
- Proceed to code generation
💡 Benefits
- Better Code Quality: More detailed requirements → more accurate implementations
- User Guidance: Helps users consider aspects they might miss
- Reduced Iterations: Fewer clarification rounds needed
- Backward Compatible: Existing direct input unchanged
@MonkeyCode-AI review this pr plz
⏳ MonkeyCode-AI 正在分析,请稍等片刻...