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.
Prerequisites
- Mibyan installed — see the Installation guide
- Gateway running for cron jobs:
- GitHub CLI (
gh) installed and authenticated: - Messaging configured (optional) — Telegram or Discord
Step 1: Verify the Setup
Make sure Mibyan can access GitHub. Start a chat:Step 2: Try a Manual Review
Still in the chat, ask Mibyan to review a real PR:- Execute
gh pr diffto fetch the code changes - Read through the entire diff
- Produce a structured review with specific findings
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.~/.mibyan/skills/code-review/SKILL.md:
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:Step 5: Create the Automated Cron Job
Now wire it all together. Create a cron job that runs every 2 hours:Other useful schedules
Step 6: Run It On Demand
Don’t want to wait for the schedule? Trigger it manually: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: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. Ensuregh is in the system PATH and restart the gateway.
Reviews are too generic
- Add the
code-reviewskill (Step 3) - Teach Mibyan your conventions via memory (Step 4)
- 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?
- Webhook-Based PR Reviews — get instant reviews when PRs are opened (requires a public endpoint)
- Daily Briefing Bot — combine PR reviews with your morning news digest
- Build a Plugin — wrap the review logic into a shareable plugin
- Profiles — run a dedicated reviewer profile with its own memory and config
- Fallback Providers — ensure reviews run even when one provider is down

