https://github.com/thiswillbeyourgithub/simpleaiccommits
Simple shell script to use an LLM to write your commit messages
https://github.com/thiswillbeyourgithub/simpleaiccommits
Last synced: 10 days ago
JSON representation
Simple shell script to use an LLM to write your commit messages
- Host: GitHub
- URL: https://github.com/thiswillbeyourgithub/simpleaiccommits
- Owner: thiswillbeyourgithub
- License: gpl-3.0
- Created: 2023-11-14T16:17:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T11:49:33.000Z (12 months ago)
- Last Synced: 2025-04-03T18:35:38.055Z (11 months ago)
- Language: Shell
- Size: 56.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# saic.sh (SimpleAICcommits)
Dead simple zsh script to use an LLM to write your commit messages
# Features
- Gets your diff either using `git add --patch` or directly from your `--staged` diff
- Conventional commit format
- Specify a prefix to the commit message to identify the commits made using saic.sh
- Customizable number of commit message suggestions
- Option to include previous commit messages for context (this makes the LLM adapt to your habits!)
- Flexible output modes: print or directly commit
- Selectable AI models (e.g., GPT-3.5-turbo, GPT-4)
- User interface options: fzf, select or dialog
- Ability to add extra context to AI prompt
- Displays AI's reasoning process
- Failsafe: automatically crash if has more than 100_000 characters
- Multiple backend: call either using openai or using [llm](https://github.com/simonw/llm/) (more extensible and supports many providers)
## How to
1. `git clone https://github.com/thiswillbeyourgithub/SimpleAICcommits`.
2. make sure you have either `openai` or `llm` installed and keys setup
3. `./saic.sh --help`