MegaLens checks what Claude Code writes before it reaches your git history.
Reviewers from different AI companies check your code. You call them from your terminal over MCP. A second AI check confirms the quoted line appears in the code you sent. Setup is one config line, and you do not need to switch tabs.
How it works
Claude Code writes code. To check it, ask “Review my changes with MegaLens.”
MegaLens selects up to four reviewers from different AI companies. They review your code independently.
A judge checks each finding against the code.
A finding is marked quote-matched only when the quoted line appears in the code you sent. Otherwise it is marked unconfirmed or disputed. Findings point to the file and line when you send the code, and each result names the companies whose models took part.
Claude Code receives the list.
It decides what to apply, reject, or investigate. Your IDE keeps the final say.
Setup
The quickest way is the setup command. It asks before every change, and it adds MegaLens for all your projects. It needs the claude command installed. If that is missing, it writes nothing and shows you the manual command instead. Run it again later and it offers to replace the connection. This setup command needs Node.js 18 or later.
Copy your token from MegaLens settings, then paste only the token (it starts ml_tok_) when the command asks. If you no longer have it, generate a new one there. A new token replaces the one from this settings page, so update any tool that was using it.
npx megalens-mcp setup claude-codeIt then asks separately whether to add the two lines below (only the ones you do not have yet; it updates an older version of the second line) to ~/.claude/CLAUDE.md. These lines tell Claude Code when to offer a MegaLens review and to wait for your yes before running it. You can also add the lines yourself:
Offer a MegaLens review at most once per task, even if the task has both a plan and code changes. Skip the offer if the task came from a MegaLens fix prompt or the user says “just fix it” or otherwise asks you to proceed without a review. After changing code that handles money, sign in, user data or database migrations, you can offer a review before the user commits. Wait for the user to say yes before running an offered review. You can run a review the user asks for directly or has already asked you to run automatically.
You can also offer a MegaLens review before a decision that is hard to undo, a new project or deep research. Follow the same rules for offers and permission. Skip small questions and routine edits.To take the lines out again, run npx megalens-mcp setup claude-code --remove-line.
Or add the connection manually:
Run this once. The --scope user flag makes MegaLens available in every project:
claude mcp add --transport http --scope user megalens \
"https://megalens.ai/api/mcp?ide=claude-code" \
--header "Authorization: Bearer ml_tok_your_token_here"Or edit ~/.claude.json yourself:
{
"mcpServers": {
"megalens": {
"type": "http",
"url": "https://megalens.ai/api/mcp?ide=claude-code",
"headers": {
"Authorization": "Bearer ml_tok_your_token_here"
}
}
}
}Get your token at megalens.ai/app/settings/mcp. Restart Claude Code, then ask “Check my MegaLens status.” Setup wizard source: github.com/megalens/mcp.
Using Claude.ai in the browser instead of Claude Code? Add MegaLens there as a custom connector. There is no token to copy: see the steps.
What MegaLens can catch in code from Claude Code
Security assumptions
Auth logic, token handling and CORS rules are where one model can be too trusting. A model from a different company can spot what the first one assumed was safe.
Framework misuse that causes bugs
Next.js, Rails, Django, Laravel. Each framework has conventions, and breaking them can cause real bugs. MegaLens looks for the bugs, not for style.
Contradictions across files
A type defined one way in the schema and used differently in the handler. If you send both files, the reviewers can catch a mismatch between them.
Overconfident rewrites
A model reviewing its own rewrite is not an independent check. A review from a different model family can catch regressions the author missed.
Good to know
You stay in control. MegaLens reports what could break, and you decide what to change.
Looks for bugs that change what your app does, not formatting: logic, security and behaviour bugs.
It runs when you or your tool ask for a review. For every pull request, add the GitHub Action.
Tip: say what worries you, or name a skill, for a more focused review.
A review takes a few minutes and checks the code and context your tool sends.
Pricing
Standard reviews
Free to start
3 reviews free, no card. Applies to Standard reviews. Then 5 credits for $2.99.
Plus, Pro and Max
Monthly plans
Plans: Plus $19 a month for 20 credits, Pro $69 a month for 80 credits, Max $199 a month for 250 credits. Or pay as you go at $1.25 a credit, from $5. A Standard review uses 1 credit and a Deep review uses 8. Cancel any time.
How model costs are paid
On a plan, credits come with it every month. Otherwise, pay as you go with credits that never expire. See all plans and rates
Check your code before it reaches git history.
Ask for a MegaLens review inside Claude Code. You can create an account with no card.