- Shell 100%
|
Y. Meyer-Norwood
cb90481c0a
All checks were successful
Run Linters / Run Linters (push) Successful in 38s
Signed-off-by: Y. Meyer-Norwood <norwd@noreply.codeberg.org> Reviewed-on: #21 |
||
|---|---|---|
| .forgejo/workflows | Complete REUSE Compliance ( #2 ) | |
| LICENSES | Complete REUSE Compliance ( #2 ) | |
| tests | Add suport for git modules and vendor testing repos ( #15 ) | |
| .gitmodules | Add suport for git modules and vendor testing repos ( #15 ) | |
| README.md | Update README.md ( #20 ) | |
| slopcheck.sh | Fix false positives ( #21 ) | |
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/.