sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

[Enhancement] Letting the AI improve the commit instead of generating it

Open Nevenit opened this issue 10 months ago • 2 comments

I tried the AI commit generation a couple of times with Lama 3 and Gemma 3 and the results have been pretty disappointing. Sure it can describe what the changes were but it doesn't know why they were done. I think a much better approach would be for the commit message to be part of the prompt. Seeing what code was changed isn't enough for the LLM to know why it was changed or something what that change is doing on the larger scale. But if we could add a prompt per commit we could explain what we're doing or why we're doing it. Or we could just ask it to improve what we wrote so far instead of having it generate the whole thing.

Nevenit avatar Mar 24 '25 23:03 Nevenit

Yes, in general it would be nice if the AI had more context about the commit other than just the files that changed. Branch name, Repository name, Current user or "input commit message" could all be helpful variables

lvde0 avatar Apr 29 '25 12:04 lvde0

Yeah, and maybe write the commit in native language and AI translates it into English.

L1cardo avatar May 01 '25 03:05 L1cardo