<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MUHAMAD ASIF NAZEER</title>
    <description>The latest articles on DEV Community by MUHAMAD ASIF NAZEER (@asifnazeer24).</description>
    <link>https://dev.to/asifnazeer24</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4244060%2F4c0b761a-87bc-46bc-9a99-c3af7b7e0c6e.jpg</url>
      <title>DEV Community: MUHAMAD ASIF NAZEER</title>
      <link>https://dev.to/asifnazeer24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asifnazeer24"/>
    <language>en</language>
    <item>
      <title>I tested an AI-slop PR filter on 972 real pull requests. Here's what it can and can't catch.</title>
      <dc:creator>MUHAMAD ASIF NAZEER</dc:creator>
      <pubDate>Fri, 27 Nov 2026 13:52:53 +0000</pubDate>
      <link>https://dev.to/asifnazeer24/i-tested-an-ai-slop-pr-filter-on-972-real-pull-requests-heres-what-it-can-and-cant-catch-1l53</link>
      <guid>https://dev.to/asifnazeer24/i-tested-an-ai-slop-pr-filter-on-972-real-pull-requests-heres-what-it-can-and-cant-catch-1l53</guid>
      <description>&lt;p&gt;Open-source maintainers have a new kind of inbox problem: pull requests written by AI agents that look polished, pass a quick glance, and don't actually work. They import packages the project doesn't use, leave &lt;code&gt;// ... existing code ...&lt;/code&gt; where real code should be, or add a &lt;code&gt;SUMMARY.md&lt;/code&gt; nobody asked for.&lt;/p&gt;

&lt;p&gt;The common response is blunt: auto-close PRs from new accounts, or ban AI-assisted contributions entirely. That stops some spam, but it also turns away real first-time contributors, the people every project depends on.&lt;/p&gt;

&lt;p&gt;I wanted something fairer, so I built &lt;strong&gt;FairPR&lt;/strong&gt;, and then tested it on 972 real pull requests to see if it actually holds up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftni9pctm7z8ib1gpxhyy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftni9pctm7z8ib1gpxhyy.gif" alt="FairPR demo" width="800" height="507"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: judge the PR, not the person
&lt;/h2&gt;

&lt;p&gt;FairPR works on both sides of a pull request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For maintainers&lt;/strong&gt;, it's a GitHub Action. On every PR it checks two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Your own contribution policy&lt;/strong&gt;, written in a small YAML file: do you require an AI disclosure line, a linked issue, tests for code changes, a maximum size?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concrete slop signals&lt;/strong&gt;: imports of packages your project doesn't have, placeholder code, agent summary files, descriptions pasted straight from a chatbot, and first-time PRs that modify CI workflows.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then it labels the PR &lt;code&gt;verified&lt;/code&gt;, &lt;code&gt;needs info&lt;/code&gt; or &lt;code&gt;on hold&lt;/code&gt;, and leaves one friendly comment that says exactly what to fix. It &lt;strong&gt;never closes anything&lt;/strong&gt;; a human always decides.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For contributors&lt;/strong&gt;, there's one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx fairpr check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs the same checks locally, runs the project's tests, asks three short questions, and writes a PR description. That description includes a fingerprint of the exact files you changed. The Action recomputes the fingerprint from GitHub's data, so the maintainer can see that the self-check really ran on &lt;em&gt;this&lt;/em&gt; code. Push a new commit and the proof goes stale.&lt;/p&gt;

&lt;h2&gt;
  
  
  The benchmark
&lt;/h2&gt;

&lt;p&gt;Claims like "catches AI slop" are easy to make, so I measured it.&lt;/p&gt;

&lt;p&gt;I took &lt;strong&gt;closed PRs from first-time contributors&lt;/strong&gt; (created since June 2025) in 10 well-known projects: Godot, curl, Ghostty, Excalidraw, n8n, LangChain, Next.js, VS Code, Home Assistant and React. I ran each one through FairPR exactly as the Action would, then compared the result with what the maintainers actually did.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What maintainers did&lt;/th&gt;
&lt;th&gt;PRs&lt;/th&gt;
&lt;th&gt;Put on hold&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Merged&lt;/td&gt;
&lt;td&gt;316&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;0.0%&lt;/strong&gt; (95% CI 0–1.2%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Closed without merging&lt;/td&gt;
&lt;td&gt;628&lt;/td&gt;
&lt;td&gt;3.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Labeled spam / invalid / AI slop&lt;/td&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;14.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What it does well
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It almost never gets in the way of good contributions.&lt;/strong&gt; Zero of 316 merged first-time PRs were put on hold. For me, that's the number that matters most: a filter that annoys real contributors does more harm than the spam it stops.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it can't do (and why that's fine)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It caught only 4 of the 28 PRs that maintainers labeled as spam.&lt;/strong&gt; I could have tuned it to catch more, but that would have meant flagging good PRs too.&lt;/p&gt;

&lt;p&gt;When I looked at the misses, most of them were clean, well-formed agent PRs: sensible titles, reasonable diffs, nothing obviously broken. There's nothing in the code itself that separates them from a human's work. I don't think any tool can reliably detect that from the diff alone, and I'd be suspicious of one that claims to.&lt;/p&gt;

&lt;p&gt;That's why FairPR doesn't try to guess who wrote the code. Instead, it shifts the effort back to the contributor:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Disclosure:&lt;/strong&gt; projects can require an &lt;code&gt;AI-Assisted: yes / partial / no&lt;/code&gt; line. Many projects are fine with AI help; they just want honesty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proof of effort:&lt;/strong&gt; the self-check fingerprint shows the contributor ran the checks and tests on the exact code they submitted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Detection catches the lazy cases. Disclosure plus proof handles the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It's safe with &lt;code&gt;pull_request_target&lt;/code&gt;: it never checks out or runs PR code, and it reads the policy from the base branch, so a PR can't change its own rules.&lt;/li&gt;
&lt;li&gt;No server, no account, no LLM calls. Everything runs in your Action or on your laptop.&lt;/li&gt;
&lt;li&gt;The full report and all 972 per-PR results are in the repo, so you can check every number yourself.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Add &lt;code&gt;.github/workflows/fairpr.yml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;FairPR&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request_target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;types&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;opened&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;edited&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;synchronize&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;reopened&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;ready_for_review&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;issue_comment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;types&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;created&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;pull-requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
  &lt;span class="na"&gt;issues&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;fairpr&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;github.event_name != 'issue_comment' || (github.event.issue.pull_request &amp;amp;&amp;amp; startsWith(github.event.comment.body, '/fairpr'))&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;fairpr/fairpr@v0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Not sure yet? Set &lt;code&gt;mode: dry-run&lt;/code&gt; in &lt;code&gt;.github/fairpr.yml&lt;/code&gt; to see results in the Actions log without commenting on anyone's PR.&lt;/p&gt;

&lt;p&gt;Repo, docs and benchmark: &lt;strong&gt;&lt;a href="https://github.com/fairpr/fairpr" rel="noopener noreferrer"&gt;https://github.com/fairpr/fairpr&lt;/a&gt;&lt;/strong&gt; (MIT licensed)&lt;/p&gt;

&lt;p&gt;If you maintain an open-source project, I'd really like to hear what you'd want a tool like this to check, or where it got something wrong.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>github</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
