Pre-push hook
localWire `mesrai review` into your git pre-push hook. Reviews run before code leaves your machine.
Run the same multi-agent review on your machine, in CI, or as a pre-push hook. Same engine, same rules, same models — review before code ever leaves your laptop.
~ ❯ npm install -g @mesrai/cli ~ ❯ mesrai auth login ~ ❯ mesrai review
Wire `mesrai review` into your git pre-push hook. Reviews run before code leaves your machine.
Drop one shell line into GitHub Actions, GitLab CI, Bitbucket Pipelines, or Azure DevOps. Same engine, same rules, same models.
Run `mesrai review --all` on a feature branch — get a single report across every changed file before you open the PR.
CLI reads the same Mesrai Rules + centralized config your cloud workspace uses. Local + remote review stay identical.
mesrai auth loginAuthorize the CLI to your workspacemesrai reviewReview the current diff against base branchmesrai review --files src/api/users.tsReview specific files onlymesrai review --severity highSet minimum severity threshold for outputmesrai rules syncPull latest Mesrai Rules from your workspaceCLI reviews appear under /cli-reviews in your Mesrai workspace — full audit trail of who ran what, when, and what findings shipped to the cloud or stayed local.
Free CLI for free-tier workspaces. Get a CLI key from your workspace settings.