Code Review
Elevate your code quality with AI-powered reviews. Overcut provides thorough, context-aware feedback on your PRs, catching bugs, security issues, and style violations before they merge.
Loading workflow...
Code Review
π Overview
Automatically performs comprehensive code reviews on pull requests. Analyzes all code changes, identifies issues (bugs, security, performance, best practices), provides inline comments with specific feedback, and submits a final review summary. Creates high-signal, actionable feedback while filtering out trivial findings.
β‘ Triggers
Automatic:
- Event:
pull_request_openedwhen PR is not in draft mode - Delay: None
Manual:
- Slash command:
/review - Can be used on any PR at any time
π― Use Cases
- Automated first-pass code review for all PRs
- Consistent code quality checks across the team
- Catching bugs, security issues, and performance problems early
- Reducing manual review burden on senior developers
- Ensuring best practices and standards compliance
- Onboarding - teaching junior developers through feedback
π§ Prerequisites
- Agents configured: Code Reviewer, Senior Developer, Technical Writer
ποΈ Workflow Steps
-
Clone Repo (
git.clone) - Clones the PR branch- Agents: None (automated git operation)
- Duration: ~1 min
-
Prepare Review Plan (
agent.run) - Creates intent-based review plan- Agents: Senior Developer
- Duration: ~2-3 min
- Identifies main logical changes and creates focused review checklist
-
Code Review (
agent.session) - Analyzes code and logs findings- Agents: Code Reviewer (coordinated by Coordinator)
- Duration: ~5-10 min
- Reviews each item from plan, writes findings to scratchpad JSONL
-
Optimize Review Items (
agent.run) - Dedupes and filters findings- Agents: Code Reviewer
- Duration: ~1-2 min
- Removes low-value findings, merges duplicates, chunks for processing
-
Submit Review Results (
agent.session) - Posts comments and submits review- Agents: Code Reviewer, Senior Developer, Technical Writer
- Duration: ~3-5 min
- Posts inline comments, submits final review with summary
[Clone] β [Plan] β [Review] β [Optimize] β [Submit]
π¨ Customization
Step Prompts
prepare-review-plan.md- Controls how review plan is created (focus areas, grouping strategy)code-review.md- Controls review process and finding criteria (what to flag, severity levels)optimize-review-item.md- Controls filtering and deduplication logic (what to keep/drop)submit-review.md- Controls how comments are posted and review is submitted (approval criteria)
Common Adjustments
Focus on specific areas:
Edit prepare-review-plan.md to prioritize:
- Security: "Prioritize security vulnerabilities and auth issues"
- Performance: "Focus on performance bottlenecks and inefficient queries"
- Tests: "Emphasize test coverage and test quality"
Adjust strictness:
Edit code-review.md severity guidance:
- Stricter: Lower threshold for
blockerseverity - Lenient: Raise threshold, focus only on critical issues
Customize filters:
Edit optimize-review-item.md to:
- Keep more nitpicks for learning purposes
- Be more aggressive about dropping low-confidence findings
- Adjust chunk size for larger/smaller review comments
Change approval criteria:
Edit submit-review.md to:
APPROVEonly if zero findingsREQUEST_CHANGESfor any major severity- Always use
COMMENTfor non-blocking feedback
π Related Workflows
- Auto PR Description - Generates structured PR descriptions. Note: This workflow runs before Code Review (priority 1 vs 3), so reviewers have the PR description available for context when reviewing code.
- Auto Root Cause Analysis - Analyzes bugs found during review
- Technical Design Proposal - Creates design docs before large implementations
βοΈ Execution Order
This workflow has priority 3 and runs after Auto PR Description (priority 1). This ensures:
- PR descriptions are generated first, providing context about changes, related issues, and testing requirements
- Reviewers can reference the structured description when analyzing code
- The review process has full context about the PR's purpose and scope
Part of the Overcut Playbooks collection
Automate. accelerate. Grow.
Use Cases