alfredjeanlab/ripcloc
ripcloc
alfredjeanlab/ripcloc
ripcloc
A fast line-of-code counter that attributes lines as source, test, or comment, supports monorepos, and is designed for use in git hooks or agent tool calls.
Visit project- First shared
- Nov 21, 2026
- HN activity
- 20
Show HN@kevstenNov 21, 2026
Show HN: Ripcloc – cloc every edit your agent makes
Hey HN. ripcloc exists because I ask agents to consider line cost in feedback early and often when they're doing work to help constrain unnecessary complexity and to trigger discussions about code smells that lead to bad architecture. It is fast enough that you can add it to a git commit hook. It is fast enough that your agent harness can run it after every tool call. The other reason it exists is to help _count your tests_. Ripcloc attributes each line as either a source line, a test line or a comment/doc line, so that you can have a better idea quickly how much your codebase is _implementation_ vs _tests_. It does this even for inline tests like `#[cfg(test)] mod tests { ... }` in Rust (and is still faster than its predecessors!).
Community