Skip to content

thiswillbeyourgithub/SimpleAICcommits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 (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

About

Simple shell script to use an LLM to write your commit messages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages