@mbokinala/autocommit
v0.0.6
Published
Use an LLM to generate a git commit message based on the diff
Readme
autocommit
A small command-line utility to generate commit messages by passing the git diff to an LLM. No more "wip", "stuff", or "sdmcskdc" cluttering the commit log.
Installation
- Install with npm:
npm install -g @mbokinala/autocommit - Get an API key from OpenAI
- Set the API key using the config command:
autocommit config set OPENAI_API_KEY your-api-key-here
Usage
git add <...>
autocommitAlternatively, pass the -a flag to add all unstaged changes to the commit:
autocommit -aRoadmap:
- [ ] Add more LLM providers / model options
- [ ] Better documentation
- [ ] Customizable system prompt
- [ ] Publish/distribute on npm/brew
- [ ] Store API key / model preference in dedicated config file
- [ ] Add tests
- [ ] Proper config management in dotfile
