Triage issues and open fix PRs with a GitHub bot
A cookbook shows a GitHub bot that triages issues, reviews PRs, answers questions with citations, flags AI-slop contributions, and opens patch PRs for human review.
Done with a custom-built or unnamed agent
- What they did
- The bot runs on OpenCode in GitHub Actions with Muse Spark. Each agent is a markdown file with its own tool allow-list. Events route to agents: a PR runs review, a new issue runs triage, and an agent-fix label runs bugfix. A maintainer's /oc comment goes to an orchestrator agent. Bugfix reproduces the bug, patches it, adds a test, runs pytest and opens a PR. It cannot merge.
- How it went
- Sample outputs show triage asking for a repro, review flagging emoji churn as slop, and a prompt injection being flagged. No benchmark is reported yet. Long review turns sometimes return empty, so re-run.
- Worth knowing
- Prompts are tuned for Python, pytest and uv, so adapt AGENTS.md and the agent files. The allow-lists are not a sandbox; human gates and branch protection are the real boundary.
Try it yourself with Claude Code
Help me set up a GitHub bot for [owner/repo] that triages new issues with labels, reviews pull requests, answers questions with citations to the repo's docs or code, and flags low-effort AI-generated contributions. For clear small bugs it should open a patch PR for human review only. Build it, test it on a few existing issues in dry-run mode, and show me the output before it posts any comments or opens any PRs.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
1 more account of this
Source: dev.meta.ai · Undated
Related use cases
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Autonomously test an entire iOS app and report bugs
A tool lets Claude Code drive an iOS app through the accessibility tree, tap every screen, and return a structured bug summary.
Audit a feature's issues and hand them to an engineer's agent
An AI agent listed all issues with a feature and sent them to an engineer, whose own agent then addressed most of them automatically.
Custom agent
Build small features and integrations with Cursor agent mode
A commenter uses Cursor agent mode for smaller features, third-party integrations, background jobs, notifications and activity tracking, and has it log key findings to a worklog file for the next run.
Cross-check coding agent answers with a second agent
The poster built a tool that automatically sends Claude Code responses to Codex for a second opinion, replacing manual copy-pasting.
Upgrade vulnerable dependencies via automated pull request
Devin opened a PR on a Spring Boot and Next.js sample app upgrading dependencies to fix listed CVEs, including 103 npm vulnerabilities on the frontend.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.