Writing commit messages was killing me. So I built Commity.
A tiny CLI tool that looks at your staged git changes, asks OpenAI what the hell you just did, and gives you a clean, emojiβd commit line you can actually be proud of.
No more Update or fixes lol.
- Reads your
git diff - Sends it to OpenAI
- Spits back a commit message that makes sense
- Drops in a matching emoji (because vibes matter)
- You hit enter. Boom. Committed.
- π§ Smarter than you on bad days β AI writes your commit messages
- π― Emoji sniper β Tags it right: π for bugs, β¨ for features, etc.
- π Safe β Your API key stays in
.env, not flying around - π¬ Talks to you β Edit, confirm, cancel. Like a chill assistant.
- π¨ Sexy CLI β Colors, prompts, feedback. Feels alive.
1. Install
npm install -g commity-ai-commit-tool2. Add your OpenAI key
echo "OPENAI_API_KEY=sk-..." > .envβ Grab key from here
β Yes, free tier works too
3. Use it
git add .
commityπ€ Commity - AI Commit Tool
π Reading staged changes...
π§ Generating commit message with AI...
π¬ Suggested commit message:
"π Fix authentication validation and error handling"
? What would you like to do?
β― Yes, use this message
Edit the message
Cancel commit
β
Committed successfully!You just saved 2 minutes and looked smart doing it.
| Type | Emoji |
|---|---|
| New Feature | β¨ |
| Bug Fix | π |
| Docs | π |
| Performance | β‘ |
| Refactor | β»οΈ |
| Tests | π§ͺ |
| Config | βοΈ |
| Security | π |
| UI | π¨ |
| DB | ποΈ |
| API | π |
| Deploy | π |
| Packages | π¦ |
| Env Variable | What it does | Default |
|---|---|---|
OPENAI_API_KEY |
Your OpenAI key (duh) | β |
OPENAI_MODEL |
Which model to use | gpt-4o-mini |
Supported Models:
gpt-4o-mini(default)gpt-4ogpt-4-turbogpt-3.5-turbo
- API key not found? β You forgot the
.envfile - "No staged changes"? β Run
git add . - Not in a repo? β
git init, friend
commity/
βββ cli-wrapper.js // handles terminal
βββ ai.js // OpenAI stuff
βββ git.js // git logic
βββ prompt.js // CLI questions
βββ package.json // npm life
βββ README.md // this file
Yes please. PRs welcome.
- Fork it
git checkout -b cool-feature- Code
git commit -m 'β¨ adds cool stuff'- Open PR
Bugs? Feature ideas? β Open an issue
MIT. Steal with style.
- Powered by OpenAI (shoutout)
- Inspired by late-night coding guilt
- Built by Muhammad Ameen with coffee, rage, and love
No more cringe commit messages. Let Commity talk.
Install now β npm install -g commity-ai-commit-tool



