by miracodeai
Self-hosted AI code reviewer with indexed PR reviews, walkthroughs, vulnerability scanning, dependency graphs, custom rules, and a learning loop.
# Add to your Claude Code skills
git clone https://github.com/miracodeai/miraLast scanned: 11/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-30T14:41:29.853Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}mira is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by miracodeai. Self-hosted AI code reviewer with indexed PR reviews, walkthroughs, vulnerability scanning, dependency graphs, custom rules, and a learning loop. It has 432 GitHub stars.
Yes. mira passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/miracodeai/mira" and add it to your Claude Code skills directory (see the Installation section above).
mira is primarily written in Python. It is open-source under miracodeai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mira against similar tools.
No comments yet. Be the first to share your thoughts!
Self-host every feature: full review engine, codebase indexing, vulnerability scanning, custom rules, org-wide package search, dashboard, learning loop. No paid tier, no license key, no SaaS upsell.
Mira reviews your pull requests using your choice of LLM (via OpenRouter, which fronts Anthropic, OpenAI, Google, DeepSeek, and more) and posts concise, actionable feedback. The noise filter, confidence clamping, and learning loop ensure you only see comments that matter. See FEATURES.md for the full surface.
.mira.yaml or from the dashboard.@miracodeai questions inline across GitHub, GitLab, Forgejo (incl. Codeberg), and Bitbucket Cloud. The engine, indexer, and dashboard are provider-agnostic, so a new host is a data entry plus one provider class.
Most AI reviewers are SaaS: your diffs (and often the full surrounding code) leave for a third-party server, and the only "view" you get is the comments that come back on a PR. Mira flips both halves of that:
[email protected]?" in one query. Stack it next to your CVE feed for instant blast-radius checks.If your engineering team needs answers like "which of our repos are exposed to this CVE?" or "what's the blast radius of changing this function?", those questions stop being multi-day investigations and start being one-click dashboard pages.
On the full 50-PR offline set of the public Martian Code Review Bench, Mira running an inexpensive model (DeepSeek v4.1 flash) ranks first on F1 of 23 published reviewers and posts the fewest unmatched comments of any tool above 50% recall. Run on 6 November 2026.
| Reviewer | Precision | Recall | F1 | TP / FP / FN |
|---|---|---|---|---|
| Mira · DeepSeek v4.1 flash | 75.0% | 55.1% | 63.5 | 87 / 29 / 71 |
| Cubic v2 | 56.5% | 60.8% | 58.5 | 96 / 74 / 62 |
| Qodo Extended v2 | 56.2% | 57.0% | 56.6 | 90 / 70 / 68 |
| Augment | 52.4% | 61.4% | 56.6 | 97 / 88 / 61 |
| Devin | 67.3% | 41.8% | 51.6 | 66 / 32 / 92 |
| Qodo v2 | 47.1% | 56.3% | 51.3 | 89 / 100 / 69 |
| Cursor Bugbot | 54.3% | 44.3% | 48.8 | 70 / 59 / 88 |
| GitLab Duo | 47.5% | 48.1% | 47.8 | 76 / 84 / 82 |
| Greptile v4.1 | 46.9% | 48.1% | 47.5 | 76 / 86 / 82 |
| GitHub Copilot v2 | 34.3% | 62.0% | 44.1 | 98 / 188 / 60 |
| CodeRabbit | 33.8% | 58.2% | 42.8 | 92 / 180 / 66 |
| Claude Code | 36.5% | 41.1% | 38.7 | 65 / 113 / 93 |
The full ranking of all 23 reviewers, per-PR results, head commits and settings are in benchmark-results.json.
Mira sits furthest up on the precision axis at a recall most tools don't reach: the tools that find a few more bugs (Cubic, Augment, Copilot, CodeRabbit) post two to six times as many comments that match nothing in the reference set.
Median review time was 106 seconds per PR; all 50 reviews completed.
Methodology: all 50 PRs of the Martian Code Review Bench offline dataset, reviewed once each with Mira's default settings (reasoning effort
medium, 16k-token output budget) and scored with the benchmark's own matching prompts and Claude Sonnet 4.5 as the judge; competitor rows are the benchmark's published results on the same PRs. Settings, per-PR results and commit pins are inbenchmark-results.json.
Run Mira self-hosted to auto-review every PR and merge request and answer @miracodeai questions inline. GitHub (as a GitHub App), GitLab (via a group/project access token), Forgejo/Codeberg (via an access token), and Bitbucket Cloud (via an access or API token) are all supported.
1. Deploy — one-click on Railway, or with Docker:
# mira.yaml — deployment-wide defaults. Every key is optional.
llm:
model: "anthropic/claude-sonnet-4-6"
indexing_model: "anthropic/claude-haiku-4-5"
# .env — secrets only.
MIRA_GITHUB_APP_ID=123456
MIRA_GITHUB_PRIVATE_KEY="$(cat private-key.pem)"
MIRA_WEBHOOK_SECRET=your-secret
OPENROUTER_API_KEY=sk-or-...
docker run -p 8000:8000 --env-file .env \
-v "$(pwd)/mira.yaml:/app/mira.yaml" \
ghcr.io/miracodeai/mira:latest --config /app/mira.yaml
2. Install the app on your repos — every PR gets reviewed.
Bitbucket Cloud — instead of the GitHub App creds, set:
# A workspace/project/repository access token (Bearer), or an API token as email:token.
# Scopes: repository read, pull requests read+write, webhooks read+write.
MIRA_BITBUCKET_TOKEN=ATCTT3x...
MIRA_BITBUCKET_WEBHOOK_SECRET=your-secret
MIRA_BITBUCKET_WORKSPACE=your-workspace # optional: dashboard repo discovery scope
MIRA_BITBUCKET_BOT_USER=mira # optional: bot nickname if the token can't read /user
Then add a workspace (or repository) webhook pointing at https://<mira-host>/bitbucket/webhook with the same secret and the triggers Repository: Push, *Pull request: Cr