Meta has introduced GreenLight, an open-source system designed to automate the approval of pull requests for PyTorch. This system allows an AI reviewer to approve code changes from PyTorch maintainers, marking a step towards more mainstream automated code review. GreenLight is derived from Meta's internal RADAR (Risk Aware Diff Auto Review) system.
The development of GreenLight and RADAR responds to a significant increase in code changes at Meta. The company reported a 105.9% year-over-year rise in lines of code per human-landed diff and a 51% increase in diffs per developer per month. Meta attributes over 80% of this growth to agentic AI assistance, which has led to a decline in the percentage of diffs reviewed within 24 hours.
RADAR focuses on automating approvals for diffs that meet strict safety criteria rather than replacing code review entirely. The system categorizes diffs by author and source. Deterministic codemods can be approved via blanket policies, while AI-generated codemods and automated runbooks undergo a pipeline of safety checks, a Diff Risk Score, and an LLM reviewer. Any failure in these checks routes the diff to a human reviewer.
Safety checks include hard limits: open-source code, SOX-scoped code, and code requiring extra review are ineligible. Runbooks must have a clean 60-day record with no production incidents and low revert/rejection rates, capped at 2,000 diffs per day. The Diff Risk Score acts as a percentile gate, allowing different risk thresholds based on the source of the diff.
The final stage is the RADAR Review Agent, which analyzes the actual code change. It identifies safe patterns such as dead code removal, refactoring without behavioral changes, logging additions, and new tests. For auto-acceptance, the agent requires a confidence score of at least 8 out of 10, with all changes classified into safe categories. Approved bot diffs enter a landing queue with a configurable delay, typically 24 hours, during which a human can still reject the change.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Meta has released GreenLight, an open-source system based on its internal RADAR tool, to automate code review approvals for low-risk PyTorch pull requests. This initiative addresses the increasing volume of code changes, partly driven by AI assistance, which has outpaced human review capacity. GreenLight allows AI to approve specific code changes, reducing the burden on human maintainers.