the-swarm-corporation/Slop Detector

Analyses every commit with a Swarms AI agent and automatically reverts it if the slop rating (missing types, missing docs, placeholder code) exceeds the configured threshold.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
gemini_api_keyGemini API key (store as a repo secret)yes
thresholdSlop rating threshold between 0.0 and 1.0. Commits rated above this value are automatically reverted. no0.5
model_nameOpenAI model to use for analysisnogemini-2.0-flash
github_tokenGitHub token used to push the revert commit (defaults to GITHUB_TOKEN)no${{ github.token }}
fail_on_slopIf "true" the step exits with a non-zero code when slop is detected (in addition to reverting). Set to "false" to only revert silently. notrue
namedescription
ratingNumeric slop rating between 0.0 and 1.0
verdict"PASS" or "FAIL"
summaryOne-sentence summary from the agent
reverted"true" if the commit was reverted, "false" otherwise