The system uses Gemini 2.5 Pro via API. This allows AI to be integrated into the existing CI/CD process without changing the developers' tools.
AI Code Reviewer is automatically activated when you create a pull request in Bitbucket. It analyzes:
- changes in the code (diff);
- context of the task from the Jira description;
- availability of tests;
- compliance with internal rules (via CODE_REVIEW.md);
- potential security or pattern violations.
Output — a structured report that is sent to the developer for manual review, with comments directly in the pull request, where each item has a category: bug, security, performance, architecture, testing, code quality, business requirement.
Stages of implementation
Phase 1. Pilot (1–2 weeks)
We started by building a custom workflow integrated with our development tools.
Key features:
- automatic launch of AI Code Review after creating a pull request (PR);
- reading the context of the task from the ticket description;
- Integration with LLM via API — Gemini 2.5 Pro was chosen for its accuracy and optimal cost.
Prompt engineering was aimed at identifying missed implementations, gaps in testing, code smells, and potential vulnerabilities.
AI comments were automatically structured in PR, and the pilot team tested the process in a real environment.