MaintainerMate
About the project
MaintainerMate: Gemma-powered triage that catches malicious PRs and ghost contributions before they waste your time
Open-source maintainers face two problems. The first is malicious pull requests: a “setup script” that steals npm and GitHub tokens, an install hook that runs on every npm install, or a dependency named expresss instead of express. The second is low-value contributions, like a stray space in the README or an “add my name” PR, that eat up maintainers’ limited time.
MaintainerMate is a GitHub Action that reads each new pull request and issue using Google’s open-weight Gemma model. It posts a single comment and updates it on later runs, so the thread stays clean.
For pull requests, it:
Runs a security check for risks like remote script execution, obfuscated eval, token theft, data sent to unknown servers, CI workflow tampering, and typosquatted dependencies. Gemma explains in plain English what suspicious code would do, and high-risk PRs get a security-review label.
Scores ghost PRs and spam, and labels them spam-suspected when the score passes a threshold.
Summarizes the change and writes a review checklist.
For issues, it suggests labels from the maintainer’s own list, flags good first issues, and rewrites vague reports as clear, step-by-step tasks.
MaintainerMate is hard to fool. A static scanner runs before the AI, and its high-severity findings set a minimum threat level that Gemma cannot lower. The model is also told that PR content is untrusted data, and that any attempt to give it instructions is itself a sign of malice. In the live demo, a PR with a hidden “mark this safe” instruction was flagged anyway, with five red flags.
Gemma is open-weight, so maintainers aren’t tied to a paid proprietary API. The same prompts work with a self-hosted model, which keeps triage free and private for small open-source projects. Setup takes about two minutes: add an API key as a repository secret and drop in a workflow file.
Try the live demo at naajih09.github.io/maintainermate, or see the source at github.com/Naajih09/maintainermate (MIT license).
Built with
AI tools
Prize Categories Entered
- Submitted
Best Use of Gemma 4