AICODE Guardian
Automated pull request review for a Django codebase, built on the Claude API and GitHub Actions, with a findings portal and false-positive handling.
- context
- AIVIZ.me
- outcome
- Merges blocked until findings are cleared
Context
AITIME is a workforce management and payroll platform with a Django codebase, released through GitHub Actions and Jenkins pipelines. AICODE Guardian is the automated reviewer I built for it at AIVIZ.me.
Problem
Every pull request deserves a careful review, and careful review takes time. The issues a hurried reviewer misses are the ones that cause trouble in production.
An automated reviewer only helps if people trust it. One that raises too many false alarms gets ignored, and one that can be skipped gets skipped.
What I did
I built a code review service on the Claude API, triggered from GitHub Actions on pull requests to the AITIME codebase.
Its findings go to a portal where they can be read and dealt with. A finding that is wrong can be marked as a false positive, so the tool does not keep raising the same thing. Notifications tell the team what is open, and a pull request cannot be merged until its findings are cleared.
Architecture
Pull request
A change is proposed to the AITIME Django codebase.
GitHub Actions
The workflow starts the review for that pull request.
Claude API
Reviews the change and returns findings.
Findings portal
Where findings are listed, read and resolved.
False-positive handling
Findings that are wrong are marked as such.
Merge gate
Notifications go out, and the merge stays blocked until findings are cleared.
Outcome
Pull requests to AITIME get an automated review before they can merge, and a change with open findings does not reach the main branch.
Stack
- Claude API
- GitHub Actions
- Django