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!).
Comments URL: https://news.ycombinator.com/item?id=50593391
Points: 1
# Comments: 0

