How I closed one third of all Plasma bugs
Here's the graph of open Plasma bug reports in the last year:

Bugs dropped by roughly 31% in the last month and a half, and we're now at the very lowest point ever since Jan 2018, more than 8 years ago! It's quite satisfying to see the bug count being so low. So, what happened?
Mostly, I came back from my KDE development break and decided to experiment a bit with newer triaging methods; I wasn't the only one closing bugs, but I did manage to be in first place for quite a big (KDE-wide, not just Plasma!). I ended up closing 479 bug reports at the time of writing.

And, mind you, I did this entirely in my free time, whilst also working full time in a completely different kind of job. Whilst making videos every couple of days on my YouTube channel. (I did not have much free time at all).
Of course, I used Claude to help me out, and I did not keep that a secret at all. In fact, I had two goals with this:
- Close a lot of Plasma bug reports (through fixes and triaging)
- Show that you can use AI tools to improve a project instead of DDoSing it with slop merge requests; and, with this writeup, I hope to act as a positive reference for others to copy!
Having done the first part, let me attempt the second one too! How can one use Claude to help out, instead of submerging other maintainers underneath large piles of, err, slop?
Duplicate bugs
Let's start with the easy step: I ran a duplicate search. This is the ideal task for LLMs, which are able to scan and classify large amount of media very quickly and cheaply.
The search returned hundreds of candidates. I went ahead and checked every one of them. It's quite helpful here to make Claude build custom UIs for these things: I went with something very simple, telling me briefly why Claude thought it was a duplicate, with a bit of context from each bug report.

Of course, it still took a fair amount of time to go through all of the reports; I'd spend a bit of time each day, with a goal of closing 15 to 20 every time. I ended up finding 194 duplicates, almost 40% of all bugs I ended up closing, and it was by far the (computationally) cheaper step!
Overall I was left impressed by the idea that most (KDE?) projects would highly benefit from an automatic duplicate checker for all new bug reports. It would cost less than a couple bucks a day, something that KDE can easily afford, and it would avoid the number of duplicates to grow over time as triagers simply don't notice them. Of course a human still has to make the final call, but when I explicitly ask to only present me options that Claude is highly confident in, I found them to be >97% correct.
Only 3 bug reports were reopened after I had closed them here.
Already-fixed bugs
Another big cause of stale bug reports are bugs that were fixed and nobody noticed. These are of course harder to verify, since the bug report itself doesn't contain enough information to know if the bug is still valid: actually testing them on master is also necessary.
Luckily, Claude nowadays has great computer use. I asked it to set up 6 builds of KDE Plasma, and I made it run headless every single bug report that had enough information to be reproducible.
Out of those that Claude didn't manage to reproduce, it would then go look into the commit history of the project to search for possible commits where the bug might've been fixed. It would then revert back the project to that commit (when possible), build again, and try to reproduce the bug. Sometimes this is impossible, and it would just give me the likely commit with lower confidence.
This resulted in another list with hundreds of candidates that were already fixed, with varying levels of confidence. Again I went through that list day by day; what I thought was reasonable from Claude I simply closed (people can just reopen if I'm wrong), whereas when I was less confident I just asked the reported to try again on a newer version.
Most of the times I was quickly greeted by an email of the reporter confirming that the bug was indeed fixed. I found 149 bugs that were already fixed this way.
The error rate was slightly higher: 7 were reopened (out of 156), so 4.5%. Of course, I take the blame for not noticing that Claude had triaged the bug incorrectly; nonetheless, I think making 7 people reopen the bug report is well worth getting rid of the 149 that were not still applicable today.
Larger sweep
After working on the above, I just asked Claude to give me a high-level picture of all remaining bugs. How many did you reproduce? How many you didn't, but couldn't find a cause? How many should we ask more information in...?
Again, I made it build a custom UI to deliver all of the information to me. As usual Claude as awful design taste (it would give subheaders to subheaders if it could) but nonetheless I could navigate the information and find some worksforme bugs, some intentional bugs, and in general some things that I might've missed.

Fixing bugs
Of course, all of the above so far is housekeeping that doesn't result in improvements in Plasma directly (though, hey, more organized bug reports do help maintainers). I also wanted to directly go ahead and fix a share of the open bug reports.
To do so, I used the same approach for the reproducible bugs: out of all bugs that Claude could reproduce, I asked it to categorize the ~150 that it thought were the easiest to fix. Then I asked to fix them, verifying them in the headless Plasma builds.
I also asked to produce screenshots or video recordings of (a) the bug, and (b) the bug no longer happening after the fix, which would help a lot to understand exactly what was going on. I explicitly asked to keep the fixed somewhat simple and self-contained too.
This worked well-ish. I did get a list, and many of the bugs were indeed correct out of the box, well documented with photos or videos, and generally well explained. It helps to ask Claude to be short in its explanations, and generally speaking I asked to always provide me with commit messages that were three lines long and two sentences: though I'd edit them, those end up being the best way to effectively convey the necessary information for the fix.
A quick fun fact: I once spun up a Claude session whose only job was to rewrite a commit in three lines (hadn't introduced the two sentences rule yet). It gave three short and shitty sentences. It did such a bad job that I angrily replied with "I asked for a commit, not a haiku". A later session, reading the transcript, complained that the entire session's job was to write three lines of text, and that it really tried to do its job by getting into poetry. I was not particularly amused by this line of defense.
Anyhow: I asked to add a new section to my dashboard with all of these bugfixes, summarizing the important information from the Gitlab's UI, which can be very confusing. This helped me a lot to keep track of the bugs I was opening.

The fix page also has everything I'd need: reviewers comments, the diff, MR text, commit, images, plus a Claude sidebar that can edit all of the above, or the dashboard itself. It helps to be able to quickly say, "uh Claude did you try X?", "wait, does that regress Y?", "remove the code comments", "is the reviewer right about the regression?", etc.

I have lots of thoughts about this trend of making custom dashboards or small apps via Claude (TechHut recently talked about his in his Omarchy review), but you'll have to wait for an upcoming article!
All in all, I managed to get in 86 bugfixes in a month and a half. The bottleneck is reviewing, of course, and I was particularly mindful to pretty much only create new MRs when the old ones got merged, to "proceed at the pace" of reviewers even whilst having a backlog of good (I think?) bugfixes already made.
Indeed, I ended up implementing a "pre-approve" button for fixes; those would get opened automatically as soon as any of my MRs got merged. I also have lots of thoughts about reviews, but I again have another blogpost planned for that.

Newly reported bug reports
Of course, an important part of triaging is to keep triaging newly reported bug reports.
All bug reports currently reported to Plasma automatically get picked up by a bot of mine, auto-triaged, and (where applicable) auto-reproduced, and (where reproducible) auto-fixed. Then I get a Telegram message with the triage of each bug report.

Again, I think this is very useful information that is extremely cheap to achieve and that could be shared publicly with all maintainers. Why should the bug report info only be available to me? Most likely, other Plasma maintainers would also benefit from a compact, well written triage of new bug reports; they wouldn't have to blindly trust it (I don't!), but it can be a helpful starting point for them.
That said, I mostly did not submit fixes for newly reported bugs. That's because they're often more complex compared to my "the easiest hundred to get through review", and I'm trying to keep the pace up.
How much did it cost?
If I were paying API prices, which is the only way to reliably put prices on tokens, the experiment would have been a grand total of drum roll $4,000!
Obviously that's bullshit. I don't have four grands to spend on this. API prices, especially Claude's, are heavily inflated compared to the real price of serving models, and compared to subscriptions.
Technically companies (and user facing products) simply have to use API and thus Anthropic makes some extra (extra) cash on that. But AFAIK subscriptions are already profitable for them, and a $200 sub gives roooughly ~$13,000 of API-equivalent usage.
Let me share a thought: given that the $200 is already profitable, imagine how crazy high the margins are on API prices; that, plus the fact that ~80% of revenue is from API, means that if Anthropic shut the fuck up and stopped trying to create the Machine God by investing insane amounts in new datacenters, they would be crazy profitable overall. But no. AAAAA
Anyhow this experiment was ~$61. Feel free to donate by subscribing to the website if you want me to keep going: I am now bankrupt. \s.
What about the environmental impact?
Throughout this experiment I was particularly mindful of my environmental impact.
We do not have exact numbers for the impact per token of newer models, so we really can only see an estimate of the total energy and water impact of the project. This entire section has very napkin-kind of math; don't quote me here, but I inserted it to understand the orders of magnitude.
My very rough estimate is 130kWh, 0.55 m³ of water, and 40kg of CO2 per month (× 1.5 months).
For reference, that's ~6% of total energy/CO2/water monthly impact of the average monthly person's impact (roughly!). This means that by increasing my impact just by 6% (for a month and a half) I was able to close one third of all bug reports (and make hundreds of fixes, some of which merged) to an international project, and everyone will benefit. The impact from now on will be much lower, since it was very high for this project as I had to triage the backlog of 2150 (now 1686) bug reports.
Note that I'm also vegetarian, and that offsets all of the above! If you want to critique me for my environmental impact of this project, but you eat meat, I think you are a hypocrite. Same applies if you go on long flights you could've avoided (e.g. for fun).
On a more serious note: doing this kind of work "by hand", manually checking hundreds of bug reports and duplicates, would've had required much more energy, CO2 and water. AIs are extremely efficient compared to humans compared on the same amount of work. The "trick", of course, is that I still exist, and my existence doesn't scale proportionally to the amount of work that I do (most of our energy is spent simply being alive).
Effectively, this means that AI are able to do work more efficiently, but if they pick up that work from humans, then the humans will still do something else: human's energy expenditure is a lower bound that we can't really decrease. So, all in all, AIs can help us do more and achieve things we wouldn't have had the time to do otherwise, and our overall energy efficiency will increase, but our overall impact will also increase, because indeed we do much more!
One last thing before closing this section. People will often look at the total environmental impact of AIs and blame users like me. However, this doesn't consider three extremely important facts:
- Most of the compute at Anthropic is used to develop new and more capable models. They already have much more capable models unreleased (we know that for a fact, see METR's report), but they want to push towards RSI. The rest of the world doesn't want that, though, at least not at this pace. Opus is a great model and there's no need to spend insane amount of compute in an attempt to create the Machine God. Please stop.
- Most of the remaining compute an Anthropic (ignoring training) is used by big companies who are buying insane amount of tokens. They are only now realizing they overdid that and scaling down.
- Most of the remaining compute at Anthropic (ignoring training and companies) is used by Anthropic staff itself. They use an insane amount of compute. Usage by subscription is just not really what's causing the environmental impact.
Again, we could just stop with this crazy race towards recursive self-improvement and we'd end up with a technology that is actually very cheap, profitable to sell, and with very limited environmental impact (or other negative externalities: scraping, underpaid third world country workers, etc etc).
I recently joined the volunteer community of PauseAI in Italy and I'm doing my best to convince people that this technology is dangerous and that development has to stop before we do real damage. Me triaging bug reports with Claude in me free time isn't what's going to kill us all.
So, what's next for Plasma?
I feel like the previous section got sidetracked. Sorry about that.
I will probably scale down my triaging effort and mostly focus on newly reported bugs, though I'll continue submitting fixes. That said, my work won't stop here:
- There's a new and (IMO) very cool Plasma project that I will talk about very soon; stay tuned for a new blogpost.
- There's a new and less cool Plasma project that I'm trying to get to work, though it's taking a bit more time, and if you dislike AI you won't like this one. Sorry. Otherwise, stay tuned for another blogpost.
- Finally, this article is too long already but I have another one with more in-depth thoughts and worries about software development. Stay tuned, I guess?
Feel free to contact me if you have questions or suggestions; please don't send insults my way as I've already gotten enough from Mastodon lately :)
We only run on donations. If you liked this piece, help us reach 300 subscriptions.
no ads · no trackers · cancel whenever