AI-powered code review agent using Xiaomi MiMo V2.5 Pro. Scans Python files and generates actionable improvement suggestions.
- 🐛 Bug detection & security issues
- ⚡ Performance optimization suggestions
- 📝 Code style & readability improvements
- 📊 Markdown report output
pip install requests
export MIMO_API_KEY="your-key"
# Review a single file
python review.py app.py
# Review entire project
python review.py ./src --recursive
# Output as markdown report
python review.py app.py --output report.md📁 Reviewing: app.py (142 lines)
🐛 [Bug] Line 23: Unchecked None return from database query
→ Add null check before accessing .data attribute
⚡ [Perf] Line 67: Using list comprehension inside loop
→ Move filtering outside the loop to reduce O(n²) complexity
📝 [Style] Line 89: Function exceeds 40 lines
→ Extract validation logic into separate helper function
Score: 7.2/10 | Issues: 3 | Suggestions: 3
- Reads Python source files
- Sends code chunks to MiMo V2.5 Pro for analysis
- Parses structured review output (bugs, perf, style)
- Generates formatted report
Built with Xiaomi MiMo V2.5 Pro 🚀