OpenCommit is a CLI to generate commit messages, you can try it right now by running npx opencommit
in any repo you have changed code in. I suggest you use bunx opencommit
(install Bun) or install OpenCommit globally npm i -g opencommit
and then run oco
which is a shorthand.
Anyway see the README: https://github.com/di-sukharev/opencommit
OpenCommit got 5k stars since the launch. More than 1 hundred PRs have been merged and now we support local Ollama!
Originally OpenCommit worked with OpenAI apis, but if you dont want to share your code base with 3rd party you can now use an LLM running locally, including Mixtral8x7B, llama and other open-source models.
All the latest OpenAI models are also supported if you want to trade your money for the best performance.
Anyway, OpenCommit is the most feature-rich CLI to generate git commit messages out there, i mean in the open-source.
We support tens of different languages, you can integrate opencommit into a git hook, there is a GitHub Action that can improve all the commits in a repository, you can do Conventional Commits and GitMoji, integrate with commitlint, and lots of other things!
We also got first place in DIY Deployments Track in the latest GitHub+Dev 2023 hackathon
Set it up yourself: https://github.com/di-sukharev/opencommit
follow me on twitter, khm-khm, on X! https://twitter.com/_sukharev_ for more open-source hits
Top comments (14)
Cool progress. Definitely into this sort of thing being local.
local mistral is ofc way less performative comparing to gpt-4 turbo, but it's a matter of time when they introduce a more capable model and you just switch to it with a single line like
oco config set MODEL=mistral100x1b
:)impressive
How does the local model feature impact the tool's performance?
Can OpenCommit suggest commit messages for very large codebases effectively?
yep, it can, it splits the
git diff
if it's too large, but current models anyway have extremely large contexts, so it's not an issue anymoreWowowowowowowowowowowowow
More privacy for our code! Nice!
great think
π€―π«
Thatβs what I need! πΎ
What's the feedback from the developer community on this tool?
it has been dowloaded more than 40k times and opencommit is growing organically by 1k downloads each week