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: 6/19/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-06-19T09:05:54.141Z",
"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 209 GitHub stars.
Yes. mira passed SkillsLLM'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. SkillsLLM 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, with full feature parity across both. Bitbucket and Gitea adapters are next; 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:
lodash@4.17.20?" 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.
Mira is the fastest tool measured on the public Code Review Bench, and the only one on the speed/quality Pareto frontier: every tool that scores higher on F1 takes 5–14× longer per PR.
Plotted against every published competitor on the same subset, Mira sits in the upper-left corner: everything to the right is slower; everything above it pays 5–14× the wall time for the extra F1.
Measured on the same 50-PR offline benchmark, judged by Claude Sonnet 4.6.
| Mira | Cubic-v2 | Greptile | CodeRabbit | GitHub Copilot | |
|---|---|---|---|---|---|
| F1 | 44 | 56 | 35 | 32 | 31 |
| Precision | 43% | 50% | 32% | 24% | 24% |
| Recall | 46% | 65% | 40% | 50% | 43% |
| Median time / PR | ~77s | ~9m | ~5m | ~5m | ~10m |
Methodology: scores measured against the Martian Code Review Bench offline dataset with Claude Sonnet 4.6 as the judge.
Run Mira self-hosted to auto-review every PR and merge request and answer @miracodeai questions inline. GitHub (as a GitHub App) and GitLab (via a group/project access token) are both fully supported; Bitbucket and Gitea are next.
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.
→ Full walkthrough: creating the GitHub App & quickstart · GitLab setup · deploy options · choosing models, custom endpoints & AWS Bedrock
mira.yaml (loaded via --config) holds deployment-wide defaults. Drop a .mira.yaml in any repo — or use the dashboard — to override per-repo; both deep-merge over mira.yaml for that repo only:
# .mira.yaml — optional per-repo override
filter:
confidence_threshold: 0.5 # noisier repo → lower bar
max_comments: 10
→ Full schema and every key: Configuration docs.
git clone https://github.com/mira-reviewer/mira.git
cd mira
pip install -e ".[dev,serve]"
# Run tests
pytest tests/ -v
# Run the regression suite (hits real GitHub + LLM, ~$1, ~3 min).
# Pinned PRs whose findings have flickered across iterations. Run before
# merging changes that touch prompts, the noise filter, or the engine.
OPENROUTER_API_KEY=... GITHUB_TOKEN=... pytest -m eval -v
# Lint
ruff check src/ tests/
# Type check
mypy src/mira/ --ignore-missing-imports
Apache 2.0. See LICENSE.