Repository navigation
Restore the slop index on three axes: Noise, Lies and Soul - #108
Merged
Merged
Conversation
KarpeSlop started as a slop index: one score that says how much of a codebase is slop and what kind. 2.0.0 dropped the 1.x point total because it grew with repository size, and the three axes went with it. Every rule now belongs to an axis: noise (information utility), lies (information quality) or soul (style and taste). The summary ends with a score per axis and a total, computed from application-code findings as weight(severity) * ln(1 + findings per 1,000 lines) per rule. Scores compare across repository sizes, and one rule repeated hundreds of times cannot outweigh several different kinds of slop. The JSON report adds slopIndex and an axis on every issue and byType entry. customPatterns take an optional axis (default soul), and --help lists each rule's axis. README and package description lead with the three axes again. Refs #103 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fresh_package_version findings come from package.json, which is not application source, so they never count toward the slop index. The README and CHANGELOG now say so. The summary test required a particular rule to be listed first on the Lies line, which held only because of the alphabetical tie-break. It now checks that each expected rule appears on its axis line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Caution Review failedThe pull request is closed. Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 26, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Closes #103.
KarpeSlop started as a slop index: one score that says how much of a codebase is slop, and what kind. 2.0.0 dropped the 1.x point total because it grew with repository size, and the three axes went with it. This brings them back, normalized.
What changes
Every built-in rule has an
axis: noise (information utility), lies (information quality) or soul (style and taste).--helplists it next to the severity.Every run that scans application code ends with a score per axis and a total:
Each rule adds
weight(severity) × ln(1 + findings per 1,000 lines)to its axis, with weights 8/4/2/1. Only findings in application source count: tests and package manifests are left out.magic_css_value.The JSON report adds
slopIndexand anaxison every issue andbyTypeentry.customPatternstake an optionalaxis(defaultsoul); an unknown value makes the config invalid.The README, package description and codemeta lead with the three axes again, and the README credits Karpathy's "slop index" idea.
Numbers
--quiet): 11.9, as above, leaving out the Shorthand ambient module declarations cause hallucinated_import false positives #100 false positives. With them, Lies reads 20.0.Testing
npm test: 157 pass, 4 of them new. They cover size-independence, a repeated rule versus varied slop, axes in the report and summary, and invalidaxisvalues.npm run typecheckis clean./review(reviewer on Haiku 5.5): both commits PASS. The P2 notes from the first review are fixed in the second commit. The remaining P3 is filed as a follow-up issue.Follow-ups: #107 (taste rules for the Soul axis), #106 (
type_assertionvolume).🤖 Generated with Claude Code
CodeAnt-AI Description
Score code findings across noise, lies, and soul
What Changed
Impact
✅ Comparable scores across repository sizes✅ Clearer separation of noise, misleading code, and style findings✅ Package-age warnings stay out of code scores💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.