1
1
Fork
You've already forked slopcheck
0
forked from liberty/slopcheck
Check for signs of LLM agents in git repositories - Rewrite of https://codeberg.org/liberty/slopcheck in POSIX shell
  • Shell 100%
Y. Meyer-Norwood cb90481c0a
All checks were successful
Run Linters / Run Linters (push) Successful in 38s
Fix false positives ( #21 )
Signed-off-by: Y. Meyer-Norwood <norwd@noreply.codeberg.org>
Reviewed-on: #21 
2026年07月02日 22:52:26 +02:00
.forgejo/workflows Complete REUSE Compliance ( #2 ) 2026年06月29日 00:43:33 +02:00
LICENSES Complete REUSE Compliance ( #2 ) 2026年06月29日 00:43:33 +02:00
tests Add suport for git modules and vendor testing repos ( #15 ) 2026年06月30日 12:03:27 +02:00
.gitmodules Add suport for git modules and vendor testing repos ( #15 ) 2026年06月30日 12:03:27 +02:00
README.md Update README.md ( #20 ) 2026年07月02日 05:07:40 +02:00
slopcheck.sh Fix false positives ( #21 ) 2026年07月02日 22:52:26 +02:00

SlopCheck.sh

SlopCheck.sh is a POSIX shell rewrite of SlopCheck.scm

Check for signs of LLM agents in git repositories.

This does not use any AI models or statistical inference. It simply checks common signs of LLM-generated code in a repository and reports them. Such signs include: contributions directly from LLM agents, common mistakes only commonly made by LLMs, and the existence of files like AGENTS.md.

SlopCheck.sh aims to minimize false positives. Most of the criteria checked assume developers are not trying to hide their usage of LLMs. False negatives are inevitable with this approach. Those who need more are encouraged to use a tool that leverages statistical inference.

Requirements

  • sh(1)
  • git(1)

Usage

Check the main branch of a repository for signs of LLM agents:

./slopcheck.sh --path path/to/repo

Example output:

Checking repository at: llm-generated-code
AGENTS.md exists
CLAUDE.md exists
Found co-author Claude for commit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Found co-author Claude for commit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy
Found co-author Copilot for commit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxz

Open Slopware is a good place to look for testing this tool.

Known Issues

  • Likely missing some identifiers

Future Ideas

  • Check individual files for clear signs of LLM-generated code
  • Allow cloning into current directory (i.e. make this a drop-in-replacement for git clone)

Contributing

Please contribute!

If you are able, consider contributing to SlopCheck.scm first. Features added there will tend to end up here as well.

Some contributions that you could make in particular include:

  • Updates to lists of signs of LLMs

License

  • Copyright © 2026 Anna Liberty
  • Copyright © 2026 Y. Meyer-Norwood

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.