Hi folks,
I just stumbled across this today. I thought it might be interesting for the community and for the Canonical builders too.
Existing benchmarks measure solve rate and cost, but they don’t account for how much code an AI model adds. A solution might work well but still introduce unnecessary complexity that makes the codebase harder to maintain over time.
Parsimony measures the net amount of code added by AI models. It uses the patches already published by existing benchmarks and counts coding units, such as statements, calls, comparisons, names, and literals. Lines aren’t counted, so formatting or cramming code doesn’t affect the score. Deleted code is subtracted from added code, giving us a simple measure: net units = added − removed.
Is this something you were already aware of? Would you consider using it moving forward to help maintain a cleaner codebase? Do you have similar approaches when supporting the Canonical and open-source journey? Let us know in the comments.
