Code ReviewOverview

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/comment

Quick setup

Connect a repository from Dashboard → Code Review:

  1. Repository — owner/repo.
  2. GitHub token — a personal access token with repo scope. Create one at github.com/settings/tokens.
  3. 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.
  4. 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:

DomainLooks at
security-reviewerChanged trust boundaries, inputs, permissions, credentials, dependencies
bug-detectorChanged executable logic, state, contracts, error paths
standards-reviewerApplicable team/convention rules affected by the change
documentation-reviewerNew/modified functions and their documentation coverage
consistency-reviewerWhether a changed integration matches a comparable existing feature
pr-summarizerOverall 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.