@mbokinala/autocommit

0.0.6 • Public • Published

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

  1. Install with npm:
    npm install -g @mbokinala/autocommit
  2. Get an API key from OpenAI
  3. Set the API key using the config command:
    autocommit config set OPENAI_API_KEY your-api-key-here

Usage

git add <...>
autocommit

Alternatively, pass the -a flag to add all unstaged changes to the commit:

autocommit -a

Roadmap:

  • [ ] 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.60latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.60
0.0.52
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @mbokinala/autocommit

Weekly Downloads

2

Version

0.0.6

License

GPL-3.0-or-later

Unpacked Size

45.9 kB

Total Files

6

Last publish

Collaborators

  • mbokinala