Open
Conversation
- integrate claude CLI as a new provider for generating commit messages with local model execution - introduce SMALL_MODEL_SYSTEM_PROMPT optimized for compact models (Haiku, nano, lite) to improve output quality and reduce latency - auto-detect small model names and apply concise prompt format to maximize quality without user intervention
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As so many developers already use claude code leveraging existing subscription makes a lot of sense. Whats more, a lot of companies have strict policies on which AI tools can be used so BYOK might not always be feasible. This PR adds support for using local claude cli.
Another improvement this introduces is an optimized system prompt for small models. When I compared result produced by gemini-2.5-flash vs claude models I noticed that while sonnet generated great message, haiku struggled to follow instructions. Generally small models might struggle with larger system prompts, so I include a small version that at least for me in my limited testing worked really well with haiku.
p.s. I am not an experienced lua developer so most of this code was written by claude and then manually tested and reviewed.