# `ClaudeWrapper.Commands.Ultrareview`
[🔗](https://github.com/genagent/claude_wrapper_ex/blob/main/lib/claude_wrapper/commands/ultrareview.ex#L1)

`claude ultrareview` -- cloud-hosted multi-agent code review.

Runs a cloud-hosted multi-agent code review and returns the findings.
With no target, reviews the current branch; pass a PR number/URL or a
base branch name to review that instead.

The review runs in the cloud and can take many minutes. The CLI's own
`--timeout` (default 30 minutes) bounds how long it waits for the review
to finish; size any surrounding timeout to at least that value.

## Usage

    config = ClaudeWrapper.Config.new()

    # Review the current branch
    {:ok, findings} = ClaudeWrapper.Commands.Ultrareview.execute(config)

    # Review PR 123, raw JSON payload, wait up to 45 minutes
    {:ok, json} =
      ClaudeWrapper.Commands.Ultrareview.execute(config,
        target: "123",
        json: true,
        timeout: 45
      )

# `execute`

```elixir
@spec execute(
  ClaudeWrapper.Config.t(),
  keyword()
) :: {:ok, String.t()} | {:error, term()}
```

Run `claude ultrareview` and return the output.

## Options

  * `:target` - Review a PR number/URL or a base branch name instead of
    the current branch (positional argument).
  * `:json` - Print the raw `bugs.json` payload instead of formatted
    findings (`--json`, boolean).
  * `:timeout` - Maximum minutes to wait for the review to finish
    (`--timeout`). The CLI default is 30.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
