\

Show HN: Giz, AI Git commits with easy to modify system prompt (in 140 lines)

3 points - yesterday at 8:07 PM


I tried setting up an AI git commit tool this weekend and it was hell.

All the tools are either not maintained, outdated, or make it a total pain to customize the system prompt. All I wanted was simple AI commit messages, that I can customize!

Introducing Giz: A tiny, drop in replacement for `git commit`, with ai commit messages.

`giz commit` behaves exactly like `git commit` with one exception:

The commit message is AI generated when no `-m` or `--message` argument is passed. User is asked for confirmation first. Its behavior is otherwise identical.

Easy to modify system prompt:

The prompt is stored in a textfile located at: `giz prompfile`. The diff (`git diff --staged`) is pasted two newlines below whatever you put in this file.

Quickstart:

- `pip install giz`

- `giz set_openai_api_key <your-api-key>`

- `giz commit ...`

Go to the link to see a demo!

Source
  • chillfox

    today at 1:52 PM

    Cool, I made something similar last week for automating conventional commits, using fish/gum/curl/jq with claude. Installed it on the path as git-cc so it could be invoked with `git cc [-a]`