Meta and PyTorch Advance Automated Code Review with RADAR and GreenLight
PyTorch brings Meta's RADAR auto-approval model to open source with GreenLight, automating low-risk code reviews as AI-generated PRs flood development workflows.

As generative AI accelerates software creation, tech organizations are facing a bottleneck at the code review stage. In response, PyTorch has introduced GreenLight, an open-source automated review system inspired by Meta’s internal RADAR (Risk Aware Diff Auto Review) framework. GreenLight allows an AI reviewer to automatically approve pull requests (PRs), but restricts full approval authority strictly to existing PyTorch maintainers.
The push toward automated approvals stems from a sharp rise in code volume. Meta detailed in a May paper that lines of code per human-landed diff grew by 105.9% year over year, while monthly diffs per developer rose by 51%. Meta attributes more than 80% of this growth to agentic AI assistance. Because traditional review processes could not keep up, the percentage of diffs reviewed within 24 hours began to decline. RADAR was created to resolve this capacity issue by automatically approving conservative, low-risk code changes.
How RADAR and GreenLight manage risk
RADAR relies on a multi-layered evaluation pipeline rather than replacing code review entirely. Deterministic codemods pass via blanket policies, whereas AI-generated changes and automated runbooks undergo hard safety limits, a Diff Risk Score, and evaluation by an LLM-based Review Agent. High-risk areas like SOX-scoped code or open-source files remain ineligible for internal auto-approval. Qualified runbooks must maintain a clean 60-day operational record with zero production incidents and are capped at 2,000 diffs per day. Furthermore, the RADAR Review Agent requires a confidence score of at least 8 out of 10 and restricts approval to safe patterns like logging, refactoring without logic changes, dead code cleanup, or test additions. Approved diffs enter a configurable landing queue—typically set to 24 hours—giving human engineers a final window to reject them.
PyTorch’s GreenLight implements these concepts under a framework of author trust. Writing in a PyTorch devlog, Edward Yang noted that internal RADAR approvals performed well, establishing that GreenLight approvals would apply only to maintainers who already possess merge rights for the modified files. For all other contributors, GreenLight operates in a shadow mode where reviews are conducted without generating actual approvals. The system runs scans every five minutes to process eligible PRs, revoking approvals if a PR fails subsequent checks, while any reverted PR is permanently removed from auto-approval paths.
Industry shifts toward automated approvals
Meta is not alone in shifting toward automated code approval. At QCon San Francisco 2026, OpenAI technical staff member Brian Yang explained that a team building ChatGPT Ads with Codex accumulated zero human-written production code. OpenAI targets an auto-approval rate of at least 90% for routine PRs, using sandbox validation against replicated production traffic for critical changes while continuously tuning its automated reviewers based on historical performance.
Similarly, Anthropic incorporates risk-scoped action controls into its Antique code review framework, and Sonar highlights this evolution as part of an "agentic software factory." According to Manish Kapur, VP of product marketing and developer relations at Sonar, modern pipelines must automatically distinguish between changes that pass on automated evidence and those requiring human oversight. A Sonar survey of over 1,000 developers found that 76% generate AI code faster than they can verify it, with only 39% checking code every time before committing. For teams looking to build or test custom code review agents, developers can try top AI models cheaply through one API at https://apixoai.online.
What it means for developers
For developers, the rollout of tools like GreenLight signals a fundamental shift in how pull requests are handled in large codebases. Rather than spending time on routine refactoring or mechanical updates, maintainers can offload trivial approvals to calibrated AI agents while retaining full oversight of high-risk architectural changes.
However, these automated approval pipelines depend heavily on trust boundaries and rigorous safety criteria. By combining author verification, risk percentiles, delay queues, and continuous feedback loops, frameworks like GreenLight demonstrate how teams can manage high-volume AI code generation without sacrificing software stability.
Source: Meta Brings Code Review Auto-Approval More Mainstream with PyTorch GreenLight — InfoQ AI & ML. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

