LLM pull request risk review on GitHub — a Claude Managed Agent assesses each PR, upserts a PR comment, optionally requests reviewers, and notifies Discord.
- Assess PR Risk (
claude.runAgent) — Claude Managed Agent clones the repo, reviews the diff, returns structured JSON - Format PR review (
runnerJS, tiny) — parse JSON, build comment body and Discord message - Create/Update PR comment — GitHub integration (posts as the integration bot)
- Record check — saves results to the console table
- Discord review posted — notification on completed review
- Claude integration with API key on SuperPlane
- A Managed Agent and Environment in Anthropic (for checkout + review)
- GitHub integration on triggers, reviewers, and comment nodes
GITHUB_TOKENsecret (app-codeowners) injected into the agent session for private repos- Optional: Discord integration on Discord review posted
- Create a Claude Managed Agent + environment that can clone GitHub repos and review PR diffs.
- Connect Claude and bind it on Assess PR Risk.
- Connect GitHub and bind the integration on trigger, reviewer, and comment nodes.
- Add
GITHUB_TOKENto theapp-codeownerssecret (used by the agent via session secret injection). - Optional: Connect Discord on Discord review posted and pick a channel.
Checks run for PRs targeting main or master only (manual checks always run). Draft PRs are skipped until marked ready for review (or updated with a new push).
[Fix auth middleware](<https://github.com/acme/api/pull/42>) - alice - Risk 15/100 (low)
A check passes when Claude returns "approved": true in its JSON review.
Risk score (0–100) and level (very low / low / medium / high / critical) are shown in the PR comment and console.
| File | Role |
|---|---|
scripts/format_review.js |
Parse Claude output, build comment fields |
canvas.yaml |
Embedded workflow |
MIT