logo
icon

OpenAB Review Council (PAT)

PAT quickstart for a self-hosted, CodeRabbit-style PR-review council: a control plane + 3 stock OpenAB Claude pods deliberate on a PR and post one verdict as your GitHub account. After deploy, copy examples/pr-review.yml into the target repo and set COUNCIL_PLANE / COUNCIL_KEY. Do not also configure the webhook trigger on the same repo. See docs/template.md.

PAT quickstart for a self-hosted, CodeRabbit-style PR-review council: a control plane + 3 stock OpenAB Claude pods deliberate on a PR and post one verdict as your GitHub account. After deploy, copy examples/pr-review.yml into the target repo and set COUNCIL_PLANE / COUNCIL_KEY. Do not also configure the webhook trigger on the same repo. See docs/template.md.

プラットフォームZeabur
展開済み0
発行者zeaburZeabur

OpenAB Review Council (PAT)

Use this template when you want the fastest install path: a copied GitHub Action triggers the council, and the chair posts the verdict with your fine-grained PAT.

It deploys a control plane plus 3 stock OpenAB Claude pods (1 chair + 2 reviewers). No per-bot setup is needed; every pod uses the same Claude Code OAuth token.

Required variables

  • PUBLIC_DOMAIN: the control-plane domain, for example my-council.
  • CLAUDE_CODE_OAUTH_TOKEN: from claude setup-token.
  • GH_TOKEN: fine-grained PAT for the chair. Grant the target repo Pull requests: Read and write and Contents: Read-only.

Install the copied Action

  1. Deploy this template and wait until control-plane, chair, rev1, and rev2 are running.

  2. Open the control-plane service variables and copy OABCP_API_KEY; it is the generated PASSWORD value.

  3. Copy examples/pr-review.yml from the source repo into the target repo at .github/workflows/pr-review.yml: https://github.com/canyugs/openab-control-plane/blob/main/examples/pr-review.yml

  4. Set the target repo secrets:

    gh secret set COUNCIL_PLANE --body "https://my-council.zeabur.app"
    gh secret set COUNCIL_KEY --body "<OABCP_API_KEY>"
    

Triggers

  • Automatic: PR opened, updated, reopened, or marked ready for review.
  • Manual: an OWNER / MEMBER / COLLABORATOR comments /review on the PR.
  • Manual fallback: run the copied workflow with workflow_dispatch and a PR number.

The chair posts one verdict comment as the PAT owner.

Verify

  1. Open or update a PR in the target repo.
  2. Confirm the target repo's Council Review GitHub Action succeeds.
  3. Check the PR for one council verdict comment.
  4. If there is no verdict, check the control-plane and chair service logs.

Use this PAT template or the GitHub App webhook template, not both on one repo, or one PR event can convene two councils.

For private repos, reviewer pods also need read access to fetch the PR diff. Public repos work anonymously. Full guide: https://github.com/canyugs/openab-control-plane/blob/main/docs/template.md