Remote review

Same local git diff as local review, but review guides come from the server. The team runs init / sync once on serve. Developers clone, set host and token, and run review --remote without maintaining their own guide cache.

The model runs on the server as part of that path. Codegraph tools (when enabled) still run on the laptop and return results through the tool bridge.

Overview: review. Requires serve and the dashboard.

Before you run

Check Why
Server running co-maintainer serve Hosts remote review API and shared repo context
Repo added on the dashboard with init / sync Guides live on the server for everyone
Settings → Remote review token (cmr_…) Bearer auth for the CLI
co-maintainer set --remote-host=... --remote-token=... on the laptop CLI knows where to connect (or pass --remote-host= / --remote-token= for one run)
Git clone with the same diff you would use for local review Command is still review --remote with no PR number

You do not need a local init / sync for that repo if the server already has it.

PR review (owner/repo + number) cannot use --remote.

Usage

co-maintainer set --remote-host=https://your-server --remote-token=cmr_...
cd your/clone
co-maintainer review --remote
co-maintainer review --remote --json --disable-codegraph
# One-off, without saving host and token to the config:
co-maintainer review --remote --remote-host=https://your-server --remote-token=cmr_...

Parameters

Same as local review for diff and output flags:

Flag Meaning
--json JSON on stdout
--disable-codegraph Skip local codegraph
--allow-tool-install Allow codegraph install without a prompt

The codegraph question, and the conditions under which co-maintainer skips it, are the same as local review. | --fresh | No carry-over from a prior remote run | | --to-branch=<name> | Diff base branch | | --branch=<name> | Branch when HEAD is detached | | --repo=owner/repo | Override remote detection | | --remote-host=<url> | Override the configured host for this run (needs --remote) | | --remote-token=<token> | Override the configured token for this run (needs --remote) | | --debug | Verbose stderr | | --log-time | Phase timings |

Not supported with --remote: --sync-before-review (run sync on the server instead).

Reading the server's guides

The same token that authorizes a review also reads the guides the server holds, so you can inspect what your review will be judged against without downloading anything:

co-maintainer view owner/repo --remote            # every guide, with headers
co-maintainer view owner/repo review-guide --remote   # one guide, raw
co-maintainer view owner/repo --list --remote     # file, size, build date

The output is the same format as a local co-maintainer view, with the same --list, single-guide and header behavior. Only the source differs. --path is local-only and is refused with --remote, because the directory belongs to the machine you are on. A rejected token prints the same Settings hint review --remote prints.

Limits

  • Submit body size is capped (handshake limits.maxBodyBytes).
  • Concurrent remote reviews per token and job queue limits in dashboard Settings.
  • If sync stops longer than remoteSyncTimeoutSeconds, the server cancels the job.

Security

  • Tokens are hashed at rest. Treat cmr_… like a password.
  • Deactivating or deleting a token cancels in-flight remote reviews for that token.
  • Only your diff leaves the machine. The CLI shows a one-time notice per host.