CodeAFreview: GitHub pull requests

review: GitHub pull requests

Review a GitHub pull request with /review: focused reviewers, challenged findings and a saved report. Posting is a separate explicit action.

Give the pull request a review of its own, with findings you can inspect before posting.
  • /review owner/repo#123
  • /review #123 focus on retries
  • /review

review is the pull-request specialist built into CodeAF, based on PR-AF. It maps a GitHub change, plans the review, assigns readers to different parts, checks and challenges their findings, and examines coverage. It returns locations, reasons, blocking status and suggested fixes. There is nothing extra to install on macOS or Linux.

Original project and benchmark

PR-AF is the original project imported into CodeAF as /review. Its Martian Code-Review-Bench results include the models, evaluation scope and links to the reproducible benchmark package. Those results describe PR-AF's published runs. They do not establish the same score for CodeAF's imported specialist, your selected models or a particular review.

Try it in CodeAF

Where

In any conversation. To use #123 or the current branch, open a GitHub repository checkout.

Type
/review owner/repo#123 focus on the retry logic

Replace owner/repo#123 with your pull request, then press Enter.

You see

A task starts at once with the review badge and shows the current stage. The result comes back to the chat; nothing is posted during analysis.

Name the pull request and focus

Use its GitHub URL, owner/repo#123, or #123 in a checkout with a GitHub origin. /review alone finds the current branch's open pull request. If it has none, name a pull request explicitly.

It reviews the commit on GitHub, not uncommitted edits or local commits you have yet to push. It supports GitHub pull requests only; a local branch without a pull request and other hosting services are outside its scope. Additional words in the brief become guidance for every reviewer. Asking the chat to review a specific pull request also produces a proposal; a request to review a local function stays in the chat.

How review works

Setup checks out the pull request in a temporary folder. Intake and anatomy map the change. Planning considers semantic, mechanical and systemic questions; up to eight reviewers read parts of the change at once. Later stages filter findings, check evidence, challenge conclusions, examine interactions and look for unfulfilled obligations or coverage gaps before writing the report.

Reviewers have read-only file tools. They do not run your tests, build or app and do not edit your checkout. The temporary checkout is removed when the run ends; the reports remain in the task's record folder. Use your project's tests alongside this source review.

Every model call goes through CodeAF and counts toward the run's ceiling. The conversation's working seat reads code and its light seat handles short structured calls. A run defaults to $5 and two hours, or less when the conversation has less remaining. /budget conversation can lower the ceiling. At 80% of its dollar limit it stops starting new reviewers and finishes with the work already collected.

Where the result lands

The chat receives a summary with findings, blocking status, severity, file and line, and suggested fixes. The task's record folder holds:

  • review-report.md: the readable findings and their evidence.
  • review-report.json: the result, the proposed GitHub review and the commit reviewed.

An assembled report can finish successfully while covering only part of the change. Its first line says Partial review when sessions failed, dimensions degraded or a limit stopped work. Coverage details and the proposed review retain that warning. A partial review cannot be posted as an approval, but may be posted as a comment or request for changes after your explicit request.

A pipeline that stops before assembling a report keeps review-failure.md and review-failure.json with stage, reason, elapsed time and recorded spend. Those are failure records, not postable reviews. Read the ending and coverage, even when a shell run reports success. No findings does not guarantee that the change has no bugs or that every issue was reviewed.

Posting and fixing are separate steps

The analysis posts nothing. Ask the chat to post the saved report only after inspecting it, or explicitly start a posting run with /review post <report-folder>. It posts the saved review as it stands, against the commit reviewed; it does not silently refresh it when the pull request changes. Rerun the analysis if you need findings for a newer commit.

If findings block the merge and the conversation's folder is the pull request's checkout, the chat can offer a senior-dev task to fix selected findings. It waits for your yes. Neither analysis nor posting merges the pull request.

review cannot read steering messages while it runs; stop it and restart with a new focus. It is absent from Windows builds.

From the terminal

Flags go before the pull request and focus:

codeaf review run --max-cost 5 --max-hours 2 owner/repo#123 focus on retries
codeaf review run --help

--dir chooses the repository folder used for context; --model and --light select models. The help lists the remaining limits and controls.

Things to build

  • A focused second read: ask /review #123 focus on cancellation and error handling after pushing the branch.
  • A review you inspect first: read the Markdown report and coverage, then decide whether to post the saved result.
  • Build, audit, review: implement with /senior-dev, audit the local code with /sec, and use /review once the change has a GitHub pull request. Each step supplies different evidence.

Go further

Coming soon: describe the org you want and CodeAF builds it: teams, managers, budgets, standing orders.

Source: CodeAF v0.8.0 manual.