# FAQ

> Abstract: Short answers on what a review costs, what the reviewer can do to a pull request, whose account it uses, how it treats a large change, whether it needs Assay, and how it is tested.

## What does one review cost?

At most one model call, inside a token budget you set. The default limit is 6,000 estimated input tokens for the complete prompt. A change that would exceed it is refused before the model is called.

Polling, scanning and history mining use no model tokens. `--estimate` runs the same preparation as a review and makes no model call either. [Cost and coverage](cost.md) has a real estimate.

## Can it approve or merge a pull request?

No. A review's only write is the one comment it posts on the reviewed head. The GitHub App it registers asks for contents and Actions read access, and pull request write access, which is what posting a comment and reading a CI report need.

## Whose account reviews and posts?

A dedicated one. The comment is posted by the reviewer identity: the GitHub App's installation bot, or the GitLab token's account. The model call is made through the provider account that signed in inside the container.

> The comment's last line names the operator it acts for. That is Assay's posting attribution, added by the forge tool that posts it.

## Who can ask for a review?

Only the accounts listed for the project. The wizard takes GitHub or GitLab usernames and stores their numeric IDs. Comments from anyone else are ignored, as are edited comments and bots.

## Which model does it use?

The default model of whichever provider CLI you selected: Cursor Agent, Claude Code or Codex CLI. `REVIEW_MODEL` or `--model` names another model that provider offers.

## Can I use my own subscription?

Yes. Sign in to the provider CLI inside the container with your own Cursor, Claude or ChatGPT account, or supply an API key. Each person whose subscription pays for reviews should use their own signed-in instance.

## What happens to a very large change?

The prompt is estimated before anything is sent. Over the limit, the review is posted as `over-budget`, with the static checks and history advisories still included. The model is not called.

Split the change, or use the command line with `--path` to review one file at a time.

## Does it retry a failed call?

No. A failed or invalid model answer ends the review as `model-unavailable`, and the comment says the provider could not complete the review. There is no fallback model, repair prompt or second call.

Post `/review` again to try once more.

## Is the same change reviewed the same way twice?

A successful result is cached. Identical evidence, scope, model and prompt reuse it, so a repeated request costs nothing more. The commit's SHA is not part of the cache key: a new commit that leaves the patch unchanged hits the cache too.

Use an explicit model when you need results you can compare.

## Does it need Assay?

Not with the container. Assay's released forge tools are bundled in the image, so nothing else needs installing on the host.

The command line installed on its own reviews local branches with only the Git objects. Reviewing a pull request by number from that command line needs the desk tools and their configuration.

## What does `could not check` mean?

That a scanner could not run, and the review says so instead of leaving it out. A missing tool, a commit absent from the checkout, or a CI report that does not match the source commit each end there. The exit status becomes 2.

It is never the same as a clean result.

## Is a review of a pull request the same as its CI passing?

No. CI proves what its tests and scanners check. A review adds one reading of the change, with at most three findings, and imports CI reports only where they match the source commit. Each can see what the other cannot.

## How is it tested?

The repository runs its test suite on every published image, with networking disabled:

```sh
uv run --frozen python -m unittest discover -s tests -v
```

The fixtures cover GitHub and GitLab polling, restart handling, Assay's forge envelope and command contract, caching, the budget cutoff, incomplete inputs and provider failure handling. Tests substitute a local executable for inference, and never post externally.

## Under what license is it released?

The project's own source is licensed under the [Apache License 2.0](https://github.com/medici-finance/assay-pr-agent/blob/main/LICENSE). Third-party software that the image downloads or bundles keeps its own license and terms: the provider CLIs, PR-Agent, Assay's desk tools and Qualgen, and the scanners.

---

Source of this page: https://pr-agent.assay.guide/faq
