Recently a friend of mine, Chong-U Lim was talking about copy and pasting git diffs into Claude. The obvious idea was: why not automate the whole process?
So I wrote magic-diff, a command-line tool that automates the process of writing git commit messages.
You stage your changes as usual, then tool generates a commit message for you using an LLM of your choice.
llm
CLI) to create contextual and descriptive messagesmagic-diff is designed to be simple to use:
git add
magic_diff
Under the hood, magic-diff captures your staged diff, sends it to an AI model via the llm
CLI, and processes the response to create a suitable commit message.
Check out the GitHub repository for full installation instructions and usage details.