Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 5 min read

Can you prevent AI Workslop as soon as you receive a Pull Request?

You can stop part of it the moment a pull request opens. The gates that work at that moment check the pull request itself, not who or what wrote it, and they hand the checking back to the author before a reviewer reads a

You can stop part of it the moment a pull request opens. The gates that work at that moment check the pull request itself, not who or what wrote it, and they hand the checking back to the author before a reviewer reads anything. On GitHub some of them can also hold the merge. None of them tells you whether the change should exist.

The word comes from BetterUp Labs: "Workslop is AI-generated content that looks good, but lacks substance." Their research with the Stanford Social Media Lab defines the term in Harvard Business Review, and the cost it describes is effort moved from the person who makes the work to the person who receives it, which in a pull request is the reviewer.

The person who asked this on Stack Overflow wants to know how a team of peers can stop unverified AI-generated pull requests as early as possible. They ask whether to look for files that have nothing to do with the issue, and whether to ask authors for tests written by hand. I would make the first a rule and change the second. Before either, I want the author to check the pull request and say in writing what was checked.

Draft until the author has checked it

Ask for every pull request to be opened as a draft. A draft cannot be merged, and GitHub does not request its code owners until someone marks it ready for review. If one arrives unready anyway, convert it back; GitHub lets you do that at any time without closing it.

What was checked goes into the description. Start from the items GitHub suggests a pull request template could ask for, and add a line for what the author checked before opening it. As a pull_request_template.md:

Issue: the related issue
Changes: a description of the changes proposed in this pull request
Checked before opening: which tests were run, and whether the change stays within the issue
Review: the person or team responsible for the review

Once the template is merged into the default branch, collaborators see its text in the body of a new pull request. Leave out any line that asks whether an AI wrote the code. The same gates hold either way.

The files that have nothing to do with the issue are where I am strict. In my own repositories one pull request is one concern. When a diff mixes two, I split it before anything else goes on top. A pull request that pulls in files from outside its issue is that case: send it back as a draft and ask for the split, and do not review it as it stands. Put the rule in CONTRIBUTING.md, since GitHub shows a link to that file to anyone who opens a pull request.

GitHub can make those files visible before anyone opens the diff. Code owners are requested for review automatically when someone opens a pull request that modifies code they own, or when such a draft is marked ready for review, so a change in an unexpected directory brings in the people who answer for it. The actions/labeler action labels new pull requests by the paths of the files they change. A linked issue gives the reviewer the scope to compare against. CodeRabbit has a built-in pre-merge check, Issue Assessment, that compares a pull request with its linked issues and looks for changes outside their scope.

On the tests: keep them, and drop the requirement that they be written by hand. If the tests run as a required status check, the pull request cannot merge until they pass. GitHub's coverage rule, Restrict code coverage, counts line coverage, that is, how much of the code the tests run. It holds the merge while the aggregated line coverage of the branch is below a set percentage, or while it drops by more than a set number of points against the default branch. It is in public preview and needs GitHub Code Quality and uploaded coverage data, and "The rule evaluates only coverage data that has already been uploaded and does not wait for coverage uploads to complete." So make the status check of each expected coverage upload a required status check, as GitHub advises, and turn the threshold on together with those checks or not at all.

The more useful question is which tests are missing. GitHub's tutorial on reviewing AI-generated code gives it as a prompt for an AI assistant: "What functional tests to validate this code change do not exist or are missing?"

If you add an AI reviewer

My own rule for a change is one proportionate check and one independent review, and nobody reviews the reviews. Applied to AI reviewers, that means picking one to run before a person looks, not stacking several. Many of them document a way to start on their own when a pull request opens.

On GitHub, a repository ruleset with the branch rule "Automatically request Copilot code review" requests a Copilot review on pull requests to the branches it targets. The rule has an option for drafts, and GitHub's note on it gives the reason to use it: "This can be a useful option for catching errors early, before requesting a human review." Claude Code Review from Anthropic has a Review runs setting in each repository, and in the mode Once after PR creation "a review runs when a pull request is opened, reopened, or marked ready for review". CodeRabbit validates every pull request against its pre-merge checks automatically. Sigma reviews pull requests from GitHub, and its documentation says "On request starts reviews only when asked; Automatic can also start them after PR events."

This is when each of them starts. Whichever one you pick, match that moment to how your team uses drafts, so the findings reach the author before a person is asked to look.

Whether a failed check holds the merge is decided by the repository's required checks and rules. For CodeRabbit the mode of the check decides as well: by default a failed check shows a warning and does not block the merge, while in error mode, together with Automatic Approvals, it blocks the merge until the problem is resolved or someone overrides the check.

I care more about who that someone is. Among peers, the author should not wave a failed check through on their own pull request. CodeRabbit can be set, per repository, to let only requested reviewers override failed checks; the setting is off by default, and with it on, "The pull request author cannot override the checks, and CodeRabbit records who performed the override for auditability."

The pages below are quoted and described as they stood when I read them, on 9 November 2026.

Sources: GitHub's Setting guidelines for repository contributors, Creating a pull request template for your repository, Pull requests, About code owners, Available rules for rulesets, Linking a pull request to an issue, Configuring code review by GitHub Copilot and Review AI-generated code; actions/labeler; CodeRabbit's Pre-merge checks; Anthropic's Set up Code Review. The Sigma quotation is from its docs.

I build Sigma, which is among the AI reviewers above.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.