4 ms·
Glad 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 integra
by anotherpaulg 2y ago
Glad 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?