gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Feature request: Send current commit message to llm in prompt

Open stijnvanderlaan opened this issue 1 month ago • 3 comments

Today, GitButler only sends diffs to the LLM. Without the current commit message or a short intent note, the model often misinterprets the purpose of the change. Please include the commit message (or a brief “intent” field) in the LLM prompt so it can align suggestions with the author’s goal—for example, “refactor for readability,” “fix null edge case,” or “prep for API deprecation.” Even this simple context can materially improve the quality of recommendations.

stijnvanderlaan avatar Nov 03 '25 10:11 stijnvanderlaan

Thanks a lot for the suggestion!

I assume that this is related to claude code? If not, could you clarify? The reason I am wondering is that Claude finds its own context typically.

Thanks again.

Byron avatar Nov 03 '25 12:11 Byron

Sorry, No I'm referring to the GitButler's commit message generation feature.

stijnvanderlaan avatar Nov 03 '25 15:11 stijnvanderlaan

Ah, I see!

So the idea is to allow to type some bits into the commit field, and then have the LLM take over with those bits as part of the instructions. Yes, I can see how this would make messages more aligned with intent.

CC @estib-vega as this could be a low-hanging, yet juicy, fruit.

Byron avatar Nov 03 '25 18:11 Byron