LLMs have a really unfortunate habit of leaving comments that exactly describe the bug they just fixed. I keep getting code like this:
// Let Alice and Bob log in.
if user_tags is None:
Wilfred Hughes
3 Comments
@wilfredh I also often get comments like
// Calling foo() here fixes the bug
so I ask my LLM to "phrase comments so that they can be understood without the context of the current session or the commit history".
Building quick apps in Google AI Studio, when it gets too long, Gemini starts to make the improvement I ask for, but then also re-implement the most recent prior change all over again.
Feels to be a lot like models don't really get that files are usually going to be read in a different context than the conversation they were written in. Gotta hand hold them into it.
One interesting consequence of the rise of LLMs: there's more demand for tools that handle untrusted input.
Arbitrary HTML+JS can be safely run in a browser. Lean can check an arbitrary proof.
These work really well with an LLM that can be wrong, but sometimes gives exactly what you want. Are there other tools in this family?
I'm trying to teach LLMs to yak shave responsibly.
It's normal to be programming and notice other clean ups that really ought to be done. I don't want it done in that PR though.
Currently experimenting with asking the AI to just create hand-off tasks in the issue tracker.