Add code review microagent based on xingyaoww's review history #1150
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new
/codereviewmicroagent based on analyzing @xingyaoww's actual code review history in this repository. The microagent captures real review patterns and principles from 153 review comments across 37 pull requests.What's Added
1. Code Review Microagent (
.openhands/microagents/code-review.md)/codereviewcodereview-roasted.mdfrom OpenHands/OpenHands2. Supporting Documentation
CODE_REVIEW_SUMMARY.md- Executive summary and usage guidecode_review_analysis.md- Detailed analysis of review patternscode_review_history.txt- Raw review data (added to .gitignore, not committed)Key Principles Identified
Through automated analysis, the following review principles were extracted:
Simplicity First (5+ instances)
Pragmatic Testing (16 instances)
Type Safety Without Compromise (7+ instances)
# type: ignoreAI-Assisted Development (24 instances!) 🚀
@OpenHandsfor implementationBackward Compatibility Awareness (2 instances)
Real Use Case Validation (4 instances)
Concise Communication (19+ approvals)
Review Statistics
Usage
Once merged, the microagent can be triggered with:
This will activate the review persona based on the actual patterns observed in this repository.
Comparison to
/codereview-roasted/codereview/codereview-roastedExamples from Real Reviews
Questioning Complexity:
AI Delegation:
Quick Approval:
Testing
The microagent follows the established structure from OpenHands/OpenHands and can be tested by triggering it with
/codereviewin any code review context.Files Changed
.openhands/microagents/code-review.md- The microagent itself (7.6K)CODE_REVIEW_SUMMARY.md- Usage guide (4.4K)code_review_analysis.md- Detailed analysis (6.2K).gitignore- Added exclusion for raw review history fileReady for review! 🎉
@xingyaoww can click here to continue refining the PR
Agent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.12-nodejs22golang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:c567680-pythonRun
All tags pushed for this build
About Multi-Architecture Support
c567680-python) is a multi-arch manifest supporting both amd64 and arm64c567680-python-amd64) are also available if needed