How it works
1
PR opened
A pull request is opened or updated in your repository. Tembo picks it up via webhook.
2
Code analyzed
The agent reads the diff, understands the context of the changes, and evaluates them against your coding standards.
3
Review posted
Inline comments are added to specific lines in the PR. If no issues are found, the PR can be auto-approved.
Set up automated PR reviews
1. Connect your source control
Navigate to the Integrations page and connect GitHub, GitLab, or Bitbucket.2. Create an agent
Go to Agents in your dashboard and use the PR Review template, or create one from scratch. Trigger: PR opened / PR updated (webhook from GitHub, GitLab, or Bitbucket) Example instructions:3. Customize with rule files
Add rule files to your repo so the reviewer knows your team’s conventions: naming patterns, test requirements, forbidden patterns, and more.What gets checked (depends on your instructions)
Best practices
- Add rule files: The more context the reviewer has about your standards, the better the review.
- Start with one repo: Test the review quality on a single repo before rolling out to all.
- Combine with human review: Use automated reviews to catch the obvious stuff so human reviewers can focus on architecture and design.