Skip to content

Add Claude Code provider#5

Open
svyatogor wants to merge 1 commit intoaweis89:mainfrom
svyatogor:claude_code_provider
Open

Add Claude Code provider#5
svyatogor wants to merge 1 commit intoaweis89:mainfrom
svyatogor:claude_code_provider

Conversation

@svyatogor
Copy link

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.

  • 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

p.s. I am not an experienced lua developer so most of this code was written by claude and then manually tested and reviewed.

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant