Generate a commit message in VS Code Git sidebar using a local LLM
This extensions adds a button to the Git extension sidebar - clicking it sends a Git diff to a local LLM (default Ollama) and uses a generated commit message in the box.
- This extension is not available in the extensions library. You can build and install it locally though.
- This was developed with Cursor quickly, the code and quality has not been verified.
- This extension has only been tested in VS Code and not in Cursor.
- The extension button is a long name - this needs to be shortened or made into an icon.
- Free (does not require ChatGPT account and subscription)
- Secure (does not send your code over the internet like the builtin button or ChatGPT-related extensions)
- Choose from a server and model
- Ensure Ollama in installed.
- In VS Code, open a Git repository and stage your changes.
- Click
Generate Commit Message (LLM)
in the Source Control title bar (or run the command via the Command Palette). - Edit if needed, then commit.
- MichaelCurrin/llm-commit-msg-py
CLI tool to generate a commit message with an LLM then commit it
Released under MIT by @MichaelCurrin.