Skip to content

MichaelCurrin/llm-commit-msg-vs-code

Repository files navigation

LLM Commit Message (VS Code)

Generate a commit message in VS Code Git sidebar using a local LLM

Made with JavaScript License

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.

Note

  • 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.

Benefits

  • 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

Documentation

Docs website

Quickstart

  1. Ensure Ollama in installed.
  2. In VS Code, open a Git repository and stage your changes.
  3. Click Generate Commit Message (LLM) in the Source Control title bar (or run the command via the Command Palette).
  4. Edit if needed, then commit.
sample screenshot

Related projects

License

Released under MIT by @MichaelCurrin.

About

Generate a commit message in VS Code Git sidebar using a local LLM

Resources

License

Stars

Watchers

Forks