Security
Trust boundaries and data handling.
Security overview →ReviewSensei is free, open-source software. Inference, GitHub Actions minutes, and self-hosted runner capacity are yours to provision. Pick a route, understand the control matrix, and know what writes are enabled before you merge.
Inspect the caller in the App's setup PR. An admitted @v6 caller can produce a read-only review in the Actions summary. The @v5 review jobs require GitHub writes. Both need a runner and a reachable model.
These settings live in .reviewsensei.yml on the default branch. For v6, see the first-review guide.
| Capability | .reviewsensei.yml setting | Default | When enabled | Observation-only example |
|---|---|---|---|---|
| Analysis | github.automatic_reviews |
true | On v5, starts review of an eligible, non-draft PR from the same repository when github.writes: true. (An admitted v6 caller runs read-only analysis with github.writes: false.) |
Set false to choose a PR through manual dispatch. Use CLI plan for an offline preview. |
| Comment publication | github.writes |
false | Publishes validated inline comments, the review summary, and the ReviewSensei check run. |
With writes disabled, v5 bootstrap can finish with both review jobs skipped. |
| Review policy / automatic approval | github.reviews |
auto-approve | Publishes one exact-head COMMENT review; eligible clean heads may receive APPROVE. blocking publishes and enforces through the ReviewSensei check run without approving and emits no persistent request changes review as a second gate; advisory imposes no ReviewSensei merge gate. |
Set blocking for enforcement without automatic approval, or advisory for comment-only publication with a neutral check. |
| Learning | github.learning |
disabled | proposals enables learning proposal generation during review runs; pull-requests additionally enables learning PR publication, opening or refreshing a draft learning pull request on the default branch. |
Leave disabled; learnings remain ordinary repository files you manage manually. |
| Conversations | github.mentions |
true | Authorized @reviewsensei mentions receive bounded thread replies (requires github.writes: true). This setting controls only conversational replies: the maintainer commands @reviewsensei review status|pause|continue|reenroll, @reviewsensei verify, and @reviewsensei dismiss|defer|accept-risk run whenever github.writes: true and the comment body matches the caller workflow's @reviewsensei routing gate. Those caller checks route the run; the mutation is re-authorized inside the reusable workflow against the broker-attested actor and the session ledger before any write. |
Set false to skip conversational replies; mention events are ignored for reply publication. This setting does not disable commands: the maintainer surface @reviewsensei review status|pause|continue|reenroll, @reviewsensei verify, and @reviewsensei dismiss|defer|accept-risk stays available whenever github.writes: true — @reviewsensei review status is read-only but still routes through the command job against the broker-attested actor. See the installation guide for the full grammar. |
| Artifact retention | github.artifacts |
none | diagnostics uploads review.json as a GitHub Actions artifact. |
Leave none; validated results stay inside the job unless you add your own upload step. |
Automatic approval applies only when automatic review and GitHub writes are enabled and all eligibility gates pass; the default policy is github.reviews: auto-approve.
Every path lists execution location, provider destination, credential names (never values), cost ownership, enabled writes, expected first-success output, and cleanup steps.
Select your repository in the ReviewSensei GitHub App. Inspect the generated caller, cleanup workflow and root policy in the setup PR. Review execution runs in your repository's Actions.
ollama pull qwen3.5:4b on the labelled runner. For a hosted backend, select it in .reviewsensei.yml, remove the generated local model or select a compatible one, and configure its secret.review-sensei-v6.yml@v6 (operator-gated channel), confirm the setup PR's # ReviewSensei v6 enrollment receipt: is admitted in V6_NEW_INSTALL_ONBOARDING.activations and the 1-hour drain completed before merging, and keep writes off for the first review. For review-sensei-run.yml@v5 (available immediately without operator admission), set github.writes: true and choose github.reviews: advisory for publication without automatic approval.# .reviewsensei.yml for a read-only first review on v6 schema: 1 inference: backend: local-ollama github: automatic_reviews: true writes: false
For v6, coordinate the drain and removal with the App operator. Run the generated Remove ReviewSensei setup workflow and review its cleanup PR. Remove the installation and unused provider secrets in GitHub settings.
To install the v5 caller manually, start on a setup branch in a repository that has no caller yet. Use the complete workflow below. The App installation, OIDC and broker are required for the PR session and publication. For v6, use the operator-admitted App proposal.
mkdir -p .github/workflows curl --fail --location --output .github/workflows/review-sensei-review.yml \ https://raw.githubusercontent.com/malsabbagh/review-sensei/40b4f52face3402fc3a9cd51387bde7cf53c3951/examples/github-actions/review-sensei-review.yml
The downloaded caller invokes review-sensei-run.yml@v5 with the required inputs and permissions. Save the following as .reviewsensei.yml at the repository root.
# .reviewsensei.yml for a v5 advisory review with local Ollama schema: 1 inference: backend: local-ollama github: automatic_reviews: true writes: true reviews: advisory
The Actions workflow installs its own runtime. To inspect your local CLI in an activated Python virtual environment, run these commands.
pip install review-sensei==0.9.1 review-sensei doctor --json
Delete or disable the workflow file and remove repository variables and secrets.
Start Ollama and run ollama pull qwen3.5:4b on your workstation. Use the published Python CLI in a virtual environment, or prefix each command with the versioned npm launcher. Run the review commands on a branch with a committed change relative to main.
python3 -m venv .venv source .venv/bin/activate python -m pip install review-sensei==0.9.1 review-sensei --version
npx --yes @reviewsensei/cli@0.9.1 --version npx --yes @reviewsensei/cli@0.9.1 prepare-diff \ --repository . --base-ref main --head-ref HEAD --output pr.patch npx --yes @reviewsensei/cli@0.9.1 --diff pr.patch --format json --output review.json
With the Python CLI installed, use your base branch in place of main if it differs. Both doctor and plan are offline: plan requires only --diff for a ready local preview (--repository, --pull-request, --base-sha, and --head-sha are optional). A fresh review-sensei doctor --json is expected to exit 2 with package: pass and automation-admission: action before any session ledger exists; a one-shot local review needs no ledger. See session diagnostics only for persistent multi-round local reviews.
review-sensei prepare-diff --repository . --base-ref main --head-ref HEAD --output pr.patch review-sensei plan --diff pr.patch --json
review-sensei --diff pr.patch --format json --output review.json
pip uninstall review-sensei and delete local artifacts.
Trust boundaries and data handling.
Security overview →Ollama local/cloud, OpenRouter, and CLI-only OpenAI-compatible presets.
Provider matrix →Portable GitHub Actions workflow.
Workflow examples →Release 0.9.1 release notes.
Releases →Full install and workflow details.
Canonical install docs →What leaves your repository.
Data handling →Released docs: v0.9.1 · source e959963efeeb · build provenance