Skip to content

tkuhemiya/commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commit

A small Bun CLI that uses AI to generate git commit messages.

Commands

commit            # generate a commit message from staged changes and commit it
commit ask        # generate message ideas from the working tree
commit login      # save OAuth credentials for a provider
commit apikey     # save API key for a provider (OpenAI, Anthropic, etc.)
commit model      # set the model for the current session

Structure

  • src/index.ts - CLI entry point and command flow
  • src/git.ts - git diff and commit helpers
  • src/ai.ts - AI prompt and response parsing
  • src/auth.ts - OAuth credential storage helpers

Notes

  • Defaults to openai/gpt-4o-mini
  • Shares credentials with pi agent via ~/.pi/agent/auth.json
  • Stores commit settings under the commit key in ~/.pi/agent/settings.json
  • Supports both OAuth (GitHub Copilot, Google Gemini CLI) and API keys (OpenAI, Anthropic, OpenRouter)
  • Requires staged changes for the default commit flow

use: https://github.com/bombshell-dev/tab

About

commit using llms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors