Code Review
Bahulam Code Review is a server-side agent that reviews GitHub pull requests automatically. It runs when a PR is opened or updated, reads the diff through the GitHub API, delegates to specialized reviewers (security, bugs, standards, documentation, consistency), and posts its findings back to the PR — no install, no CI step, no local agent.
GitHub PR event -> webhook -> Code Review agent -> GitHub PR review/commentQuick setup
Connect a repository from Dashboard → Code Review:
- Repository —
owner/repo. - GitHub token — a personal access token with
reposcope. Create one at github.com/settings/tokens. - Webhook (recommended) — add a webhook in the repository’s GitHub
settings pointing at
https://api.bahulam.ai/api/github/webhook, subscribed to Pull requests, Pull request reviews, Pull request review comments, and Pull request review threads. A webhook secret is recommended (it enables signature verification) but not required. See the Readiness Guide for step-by-step setup. - Review rules — reviewer domains, severity threshold, excluded paths, and free-text instructions, all editable from the same screen.
That’s the minimum to get a working reviewer. It is not the minimum to get a good one — a token and a repo tell the agent nothing about how your team builds software. See the Readiness Guide for what to supply before turning this on for a team, and who on the team should supply it.
What it reviews
Each PR is triaged before any specialist runs. The agent reads
get_pull_request and the changed files, then selects only the reviewer
domains relevant to what actually changed:
| Domain | Looks at |
|---|---|
| security-reviewer | Changed trust boundaries, inputs, permissions, credentials, dependencies |
| bug-detector | Changed executable logic, state, contracts, error paths |
| standards-reviewer | Applicable team/convention rules affected by the change |
| documentation-reviewer | New/modified functions and their documentation coverage |
| consistency-reviewer | Whether a changed integration matches a comparable existing feature |
| pr-summarizer | Overall summary and risk — handled by the coordinating agent itself for ordinary reviews |
A domain that isn’t relevant to the diff is skipped, not silently approved — the posted review states which domains ran and which were skipped, and why.
Triggers
- PR opened / synchronized / reopened — always reviewed if the repository is connected and auto-review is on.
- New commit on an open PR — reviewed incrementally against prior findings, not re-audited from scratch.
- Comment or review discussion (opt-in) — the agent responds to the specific thread, states which earlier findings are resolved, still valid, or withdrawn, and does not restart a full PR audit for a single comment.
Posting
Findings are published either as a GitHub pull request review (comment event, no approve/request-changes) or a plain issue comment, depending on the repository’s configured posting mode. The agent never approves or requests changes, never posts inline line comments, and never touches files, runs shell commands, or performs any GitHub action beyond reading the PR and posting its one configured review.