Skip to main content
Commands, package names, and image names on this page come from the open-source project that Mibyan Desktop is built on, and can differ from the Mibyan Desktop installer. For the supported Mibyan install and update path, see Install and update.
The problem: Your team opens PRs faster than you can review them. PRs sit for days waiting for eyeballs. Junior devs merge bugs because nobody had time to check. You spend your mornings catching up on diffs instead of building. The solution: An AI agent that watches your repos around the clock, reviews every new PR for bugs, security issues, and code quality, and sends you a summary — so you only spend time on PRs that actually need human judgment. What you’ll build:
This guide uses cron jobs to poll for PRs on a schedule — no server or public endpoint needed. Works behind NAT and firewalls.
Want real-time reviews instead?If you have a public endpoint available, check out Automated GitHub PR Comments with Webhooks — GitHub pushes events to Mibyan instantly when PRs are opened or updated.

Prerequisites

  • Mibyan installed — see the Installation guide
  • Gateway running for cron jobs:
  • GitHub CLI (gh) installed and authenticated:
  • Messaging configured (optional) — Telegram or Discord
No messaging? No problemUse deliver: "local" to save reviews to ~/.mibyan/cron/output/. Great for testing before wiring up notifications.

Step 1: Verify the Setup

Make sure Mibyan can access GitHub. Start a chat:
Test with a simple command:
You should see a list of open PRs. If this works, you’re ready.

Step 2: Try a Manual Review

Still in the chat, ask Mibyan to review a real PR:
Mibyan will:
  1. Execute gh pr diff to fetch the code changes
  2. Read through the entire diff
  3. Produce a structured review with specific findings
If you’re happy with the quality, time to automate it.

Step 3: Create a Review Skill

A skill gives Mibyan consistent review guidelines that persist across sessions and cron runs. Without one, review quality varies.
Create ~/.mibyan/skills/code-review/SKILL.md:
Verify it loaded — start mibyan and you should see code-review in the skills list at startup.

Step 4: Teach It Your Conventions

This is what makes the reviewer actually useful. Start a session and teach Mibyan your team’s standards:
These memories persist forever — the reviewer will enforce your conventions without being told each time.

Step 5: Create the Automated Cron Job

Now wire it all together. Create a cron job that runs every 2 hours:
Verify it’s scheduled:

Other useful schedules


Step 6: Run It On Demand

Don’t want to wait for the schedule? Trigger it manually:
Or from within a chat session:

Going Further

Post Reviews Directly to GitHub

Instead of delivering to Telegram, have the agent comment on the PR itself: Add this to your cron prompt:
Make sure gh has a token with repo scope. Reviews are posted as whoever gh is authenticated as.

Weekly PR Dashboard

Create a Monday morning overview of all your repos:

Multi-Repo Monitoring

Scale up by adding more repos to the prompt. The agent processes them sequentially — no extra setup needed.

Troubleshooting

”gh: command not found”

The gateway runs in a minimal environment. Ensure gh is in the system PATH and restart the gateway.

Reviews are too generic

  1. Add the code-review skill (Step 3)
  2. Teach Mibyan your conventions via memory (Step 4)
  3. The more context it has about your stack, the better the reviews

Cron job doesn’t run

Rate limits

GitHub allows 5,000 API requests/hour for authenticated users. Each PR review uses ~3-5 requests (list + diff + optional comments). Even reviewing 100 PRs/day stays well within limits.

What’s Next?