Overview
Go beyond simple pull request lookups. This agent analyzes your Bitbucket data to answer complex questions like "Why are code reviews taking longer?" or "Which repositories have the most merge conflicts?"
**Capabilities:**
- Analyze code review patterns and identify bottlenecks
- Surface merge conflict trends and their root causes
- Compare review times across teams and repositories
- Identify code quality patterns and technical debt indicators
- Synthesize insights from pull requests and review activity
[{"type": "user", "content": "Why are pull request reviews taking 40% longer this month? We're seeing delays that are blocking deployments."}, {"type": "thinking", "content": "Analyzing code review patterns...", "thinkingSteps": ["Retrieving pull requests from last 30 days...", "Calculating average review times by repository...", "Identifying bottlenecks in review process...", "Comparing to historical benchmarks..."]}, {"type": "assistant", "content": "I analyzed your Bitbucket pull request data and found the root causes of the review delays:\n\n## Review Performance Analysis\n\n| Repository | Avg Review Time (This Month) | Avg Review Time (Last Month) | Change |\n|------------|-------------------------------|------------------------------|--------|\n| backend-api | 3.2 days | 2.1 days | +52% |\n| frontend-app | 2.8 days | 1.9 days | +47% |\n| mobile-ios | 2.5 days | 1.7 days | +47% |\n\n## Root Causes\n\n**Primary Bottleneck:** **Reviewer availability** is the main issue. 58% of PRs wait >24 hours for first review (vs. 4-hour target). The Backend team has only 2 active reviewers (vs. 4 needed). Average reviewer has 8 pending PRs (vs. 3-PR capacity).\n\n**Secondary Issue:** **Large PRs** (>500 lines) take 2.3x longer to review. 34% of PRs exceed the 300-line guideline. Large PRs also have 3x more requested changes.\n\n**Pattern Identified:** PRs opened on **Fridays** take 60% longer (avg 4.2 days vs. 2.6 days). Weekend delays and Monday backlog effects.\n\n**Recommendation:**\n1. Add 2 more reviewers to Backend team - distribute review load\n2. Enforce PR size limits - split large PRs into smaller chunks\n3. Avoid Friday PRs for time-sensitive changes - target Tuesday-Thursday\n\n<ENTITY_ANNOTATION id=\"PR-4521\" title=\"Add Payment Gateway Integration\" integrationType=\"BITBUCKET\" />\n\n<CTA label=\"View Pending Reviews\" action=\"Show all PRs waiting for review more than 24 hours\" />\n<CTA label=\"Generate Review Plan\" action=\"Create a code review efficiency improvement plan\" />"}]