CLI tool for commit messages/code reviews using ChatGPT
Top 28.9% on sourcepulse
CodeGPT is a Go-based CLI tool designed to automate the generation of Git commit messages and code review summaries using AI models like GPT-4o. It targets developers seeking to streamline their Git workflow and improve commit message quality, offering integration with Git hooks for seamless operation.
How It Works
CodeGPT leverages large language models (LLMs) to process code diffs and generate human-readable summaries. It supports various AI providers including OpenAI, Azure OpenAI, Gemini, Anthropic, Groq, and Ollama, allowing users to choose their preferred backend. The tool can be configured to adhere to conventional commit specifications, customize prompt templates, and control the context lines included in diff analysis.
Quick Start & Requirements
brew install codegpt
), Chocolatey (choco install codegpt
), or download pre-compiled binaries.Highlighted Details
prepare-commit-msg
hook for automatic commit message generation.Maintenance & Community
The project is actively maintained by appleboy. Community support channels are not explicitly mentioned in the README.
Licensing & Compatibility
The project is released under the MIT License, permitting commercial use and integration with closed-source projects.
Limitations & Caveats
The README does not detail specific performance benchmarks or known limitations regarding model accuracy or handling of very large codebases. Users must manage their own API keys and associated costs for the AI services used.
20 hours ago
Inactive