Heimdall is an AI code review bot for GitHub. Model-agnostic, self-hostable, and always on call β it reviews every PR with severity grading, inline comments, and executable diff suggestions.
Model freedom, private deployment, and reports you can actually act on.
Claude, GPT, Gemini, or a local Ollama/vLLM β you pick. One unified AI_API_KEY + AI_BASE_URL.
Every issue pinned to its code line, with an actionable title, a fix suggestion, and an executable diff (even 1-Click Suggestions).
PRs stay quiet until you say the word β comment @CoderHeimdall. Or set auto_review: true.
Trust-boundary, sensitive-field leakage, fake implementations, N+1, swallowed exceptions β caught and graded.
REVIEW_LANGUAGE = en (default), zh, or bilingual. One bot, every team.
.github/heimdall.yml β include/exclude files, min severity, custom instructions, whitelist, block-on-critical.
GitHub Actions (per-repo), Cloudflare Workers (installable App), or Probot self-hosted β code stays on your infra.
Triple dedup means one review per commit. No duplicate review dumps.
Change summary, severity table, focus areas, verification steps β then pinned inline comments with diffs.
One fine morning, Copilot arbitrarily revised its subscription deal: models quietly downgraded, token limits shrank, choices vanished overnight. And that $10/month fee? Collected right on schedule β yet your Code Review quota reliably ran out by mid-month, greeting you with "Quota limit reached. Please upgrade."
By month's end: paid full price, ran out of tokens halfway through, zero Code Review when PRs hit β and helped another earnings report.
Pick a mode β Actions for a single repo, Workers for a team-wide installable bot.
# Mode A β add an AI reviewer to any repo $ mkdir -p .github/workflows scripts $ cp template/heimdall-review.yml .github/workflows/ $ cp scripts/heimdall-review.js scripts/ $ # add AI_API_KEY (or ANTHROPIC_API_KEY) as a repo secret # in any PR, comment: @CoderHeimdall # want auto-review? add .github/heimdall.yml with: auto_review: true