Code Review Workflow¶
Learn how to use AI-powered code review to analyze your changes before committing.
Quick Start¶
Review Process¶
1. Make Your Changes¶
Work on your branch normally.
2. Run the Review¶
The AI will compare your current branch against the auto-detected base branch (main/master) and analyze:
- Code quality and maintainability
- Security vulnerabilities
- Performance issues
- Best practices compliance
- Potential bugs
3. Review the Feedback¶
The output includes:
- Severity levels (Critical, High, Medium, Low, Info)
- Specific file locations and line numbers
- Clear descriptions of issues
- Actionable recommendations
4. Address Issues¶
Fix the identified issues and run the review again:
Common Workflows¶
Pre-Commit Review¶
Review branch changes before committing:
Review Against Specific Branch¶
Compare your branch against a specific base:
JSON Output for CI/CD¶
Get machine-readable output:
Understanding Review Categories¶
Code Quality¶
- Code structure and organization
- Naming conventions
- Code duplication
- Complexity analysis
Security¶
- Input validation
- Authentication/authorization issues
- Sensitive data exposure
- Injection vulnerabilities
Performance¶
- Inefficient algorithms
- Resource usage
- Database query optimization
- Caching opportunities
Best Practices¶
- Language-specific conventions
- Design patterns
- Error handling
- Documentation
Tips for Better Reviews¶
- Review small changes: Smaller diffs get more focused feedback
- Commit frequently: Keep changes grouped and meaningful
- Run frequently: Catch issues early in development
- Address critical issues first: Prioritize by severity
- Use with commit workflow: Combine with
devo commitfor complete workflow
Configuration¶
Set Bedrock Model¶
AWS Profile¶
Troubleshooting¶
No Changes Detected¶
Make sure your branch has commits that differ from the base branch (main/master). Code reviewer compares branch history, not staged files.
Access Denied¶
Verify AWS credentials and Bedrock permissions:
Review Takes Too Long¶
For large diffs, consider reviewing against a more recent base branch or use the short prompt (default):
# Short prompt (default, faster)
devo code-reviewer
# Full prompt (more thorough but slower)
devo code-reviewer --full-prompt
# Compare against closer base branch
devo code-reviewer --base-branch your-feature-parent-branch
Next Steps¶
- Commit Workflow - Generate commit messages
- AWS Setup - Configure AWS credentials
- Code Reviewer Command Reference - Full command options