New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aicommits

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aicommits

Writes your git commit messages for you with AI

0.0.9
Source
npm
Version published
Weekly downloads
336
-9.92%
Maintainers
1
Weekly downloads
 
Created
Source

AI Commits - work in progress

AI Commits is a tool that writes your git commit messages for you. Never write a commit message again.

AI Commit Screenshot

Installation and usage

  • npm install -g autocommit to install the CLI
  • export OPENAI_KEY=sk-xxxxxxxxxxxxxxxx to specify your OpenAI API Key
  • autocommit after you run git add . to generate your commit

How it works

This CLI tool runs a git diff command to grab all the latest changes, sends this to OpenAI's GPT-3, then returns the AI generated commit message. Video coming soon where I rebuild it from scratch to show you how to easily build your own CLI tools powered by AI.

Limitations

It currently can only support git diffs of up to 200 lines of code. I'm working on version 2.0 which will be TypeScript-first, support conventional commits, and support long diffs.

Remaining tasks

Now:

  • Rewrite this in node to publish as an npm package
  • Fix screenshot on npm
  • add an npm ignore and add demo to README as well

Future tasks:

  • Experiment with openai curie and/or codex
  • Add conventional commit support
  • Try supporting more than 200 lines by grabbing the diff per file
  • Rewrite in TypeScript
  • Build landing page for the 2.0 launch

FAQs

Package last updated on 13 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts