How it works
From your history and staged diff to one message.
The pipeline
- Read gitThe log, the branch and
git diff --staged. - Infer the styleConvention, scopes and ticket format, from your commit subjects. Messages are in English.
- Compact the diffFiles are fitted into a token budget.
- Build the promptA system message and a user message.
- Ask the modelOn the chosen device, with greedy decoding.
- SanitizeThe reply is cleaned up; bad replies are rejected.
Failures and fallbacks
A bad reply gets one retry, then a message built from the file list. Merges, reverts and cherry-picks keep git's message. A hook error is a warning, and the commit goes on.
The full description is in the architecture guide.