Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Mesrai - AI Code ReviewNew to Visual Studio Code? Get it now.
Mesrai - AI Code Review

Mesrai - AI Code Review

Mesrai

|
13 installs
| (1) | Free
Get AI-powered code reviews before pushing — right in your IDE
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mesrai - AI Code Review for VS Code

Catch bugs, security vulnerabilities, and performance issues before they reach your pull request — powered by multi-agent AI analysis, right inside your editor.

Visual Studio Marketplace License: MIT


Why Mesrai?

Traditional code review tools flag issues after you've pushed. Mesrai shifts that left — analyzing your code locally before it ever leaves your machine. Our multi-agent pipeline runs 7 specialized AI agents (security, performance, architecture, code quality, best practices, error handling, and maintainability) through a rigorous quality gate to surface real, actionable findings — not noise.

  • Pre-push protection — Fix issues before they become PR comments
  • Zero false positive philosophy — 7-stage quality gate filters out noise
  • Privacy-first — Code is analyzed in memory and never stored
  • Works with any language — JavaScript, TypeScript, Python, Go, Java, Rust, and more

Key Features

Intelligent Code Analysis

Mesrai doesn't just lint your code — it understands context. Each file is analyzed by multiple specialized agents that examine different dimensions of quality:

Agent What It Catches
Security SQL injection, XSS, hardcoded secrets, auth flaws
Performance N+1 queries, memory leaks, unnecessary re-renders
Architecture SOLID violations, circular dependencies, tight coupling
Code Quality Dead code, duplicated logic, naming issues
Best Practices Anti-patterns, deprecated API usage, missing edge cases
Error Handling Unhandled promises, swallowed exceptions, missing validation
Maintainability Complex functions, poor abstractions, missing documentation

Inline Diagnostics

Findings appear as native editor diagnostics — squiggly underlines in your code and entries in the Problems panel, just like ESLint or TypeScript errors.

  • Red underline — Critical or High severity
  • Yellow underline — Medium severity
  • Blue underline — Low or Informational

One-Click Fixes

When Mesrai suggests a code fix, a lightbulb icon appears. Click Quick Fix to apply the suggestion automatically — no copy-pasting needed.

Inline Review Comments

Findings appear as review comments attached directly to the relevant lines, similar to GitHub PR review comments. Each comment includes severity, explanation, and suggested fix when available.

Four Review Modes

Mode Command Use Case
Review & Commit Mesrai: Review & Commit Gate your commits with an AI review
Review Uncommitted Mesrai: Review Uncommitted Changes Check all working tree changes
Review Unpushed Mesrai: Review Unpushed Commits Review everything before pushing
Review Current File Right-click > Mesrai: Review Current File Quick check on a single file

Sidebar Dashboard

The Mesrai sidebar gives you a complete overview:

  • Account status — Plan tier, token usage, organization
  • Review actions — One-click access to all review modes
  • Findings list — Browse all issues with severity badges and click-to-navigate
  • Review statistics — Files analyzed, issues found, severity breakdown

Status Bar Integration

The Mesrai indicator in your status bar shows the current state at a glance — idle, reviewing, or the number of open findings. Click it for quick access to all actions.


Getting Started

1. Install the Extension

Install Mesrai - AI Code Review from the VS Code Marketplace or search for "Mesrai" in the Extensions panel.

2. Sign In

Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run Mesrai: Log In. You'll be redirected to your Mesrai dashboard to authorize the extension.

Don't have an account? Sign up for free — no credit card required.

3. Run Your First Review

Open any file with changes and right-click > Mesrai: Review Current File. Your code will be analyzed and findings will appear inline within seconds.


Extension Settings

Setting Default Description
mesrai.apiUrl https://www.app.mesrai.com Mesrai API endpoint
mesrai.token — IDE access token (msr_...) for manual auth
mesrai.preCommitReview true Prompt for AI review before each commit
mesrai.severityThreshold low Minimum severity level to display findings

Requirements

  • VS Code 1.85 or later
  • Git installed and a Git repository open in your workspace
  • A Mesrai account — create one for free

Privacy & Security

Your code is sent to the Mesrai analysis server over HTTPS for review. No source code is stored permanently — it is processed in memory and discarded immediately after analysis. For teams with strict compliance requirements, Mesrai supports self-hosted deployments where all data stays within your own infrastructure.

Read our full Privacy Policy and Terms of Service.


Frequently Asked Questions

Q: Which programming languages does Mesrai support? A: Mesrai supports all major languages including JavaScript, TypeScript, Python, Go, Java, Rust, C#, Ruby, PHP, Swift, Kotlin, and more. The AI agents adapt their analysis based on the language and framework detected.

Q: Does Mesrai store my source code? A: No. Code diffs are transmitted over HTTPS, analyzed in memory, and discarded immediately. Nothing is persisted on our servers. Self-hosted deployments keep everything within your infrastructure.

Q: Can I use Mesrai offline? A: Mesrai requires an internet connection to communicate with the analysis server. For air-gapped environments, contact us about self-hosted deployment options.

Q: How is Mesrai different from a linter? A: Linters check syntax rules and code style. Mesrai uses AI to understand the intent and context of your code — catching logic errors, security vulnerabilities, architectural anti-patterns, and performance issues that static analysis tools miss.

Q: Is there a free plan? A: Yes. The free plan includes 100,000 analysis tokens per month and up to 10 reviews — enough to try Mesrai on personal projects. Upgrade anytime for higher limits and team features.

Q: How do I review only specific files? A: Right-click any open file and select Mesrai: Review Current File from the context menu. You can also use the Command Palette to review staged, uncommitted, or unpushed changes.

Q: Can I dismiss or resolve findings? A: Yes. Each finding has inline actions to Accept Fix, Dismiss, Resolve, or get an Explanation. Dismissed findings won't appear in future reviews.

Q: Does Mesrai work with monorepos? A: Absolutely. Mesrai analyzes the files in your current Git diff, regardless of repository structure. It works seamlessly with monorepos, multi-package workspaces, and polyglot codebases.


Resources

  • Documentation
  • Mesrai Dashboard
  • Report an Issue
  • Changelog

Connect With Us

  • Website
  • X (Twitter)
  • LinkedIn
  • YouTube
  • Email

License

MIT — Copyright (c) 2024 Mesrai

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft