3 ms·
First off I want to thank you for Aider. I’ve had so much fun playing with it and using it for real work. It’s an amazing tool. How do you determine how much w
by joshstrange 2y ago
First off I want to thank you for Aider. I’ve had so much fun playing with it and using it for real work. It’s an amazing tool.
How do you determine how much was written by you vs the LLM? I assume it consists of parsing the git log and getting LoC from that or similar?
If the scripts are public could you point me at them? I’d love to run it on a recent project I did using aider.
- anotherpaulg 2y agoGlad to hear you’re finding aider useful! There’s a faq entry about how these stats are computed [0]. Basically using git blame, since aider is tightly integrated with git. The faq links to the script that computes the stats. It’s not designed to be used on any repo, but you (or aider) could adapt it. You’re not the first to ask for these stats about your own repo, so I may generalize it at some point. [0] https://aider.chat/docs/faq.html#how-are-the-aider-wrote-xx-of-code-stats-computed https://aider.chat/docs/faq.html#how-are-the-aider-wrote-xx-...
- joshstrange 2y agoThank you so much for linking me to that! I think an `aider stats`-type command would be really cool (it would be cool to calculate stats based activity since the first aider commit or all-time commits of the repo).
- prometheon1 2y agoSlightly longer than `aider stats` but here you go: uv run --with=semver,PyYAML,tqdm https://raw.githubusercontent.com/Aider-AI/aider/refs/heads/main/scripts/blame.py
- nyarlathotep_ 2y agodoes this mean lines/diffs otherwise untouched are considered written by Aider? If a small change is made by an end-user to adjust an Aider result, who gets "credit"?
- anotherpaulg 2y agoIt works like normal git blame -- it literally uses git blame. Whoever changed a line last gets credit. Only the new or newly changed lines in each release are considered. So no, "lines/diffs otherwise untouched" are NOT considered written by aider. That wouldn't make sense?