Skip to main content

AI-powered CLI to generate commit messages, review code, and suggest fixes

Project description

CodeBuddy AI CLI Tool

CodeBuddy AI is a powerful Python CLI tool designed to save developers valuable time by automating critical aspects of the development workflow. From generating precise commit messages to delivering AI-powered code reviews and actionable fix suggestions, CodeBuddy AI helps engineers ship cleaner code and close pull requests faster.

🚀 Why CodeBuddy?

Software engineers spend a significant amount of time writing commit messages, reviewing their code for best practices, and fixing common issues. CodeBuddy AI automates these steps using AI so that:

✅ Your commit messages are professional and context-aware.

✅ You get comprehensive code reviews before pushing.

✅ You receive intelligent, line-by-line fix suggestions.

✅ You can close PRs faster and maintain high code quality.

✨ Features

🔸 Automated Commit Messages

Generates clear and concise commit messages based on your staged Git diff. This helps you maintain a clean and informative Git history with minimal manual effort.

🔸 AI-Powered Code Reviews (✨USP Feature)

Quickly analyze your code for potential issues, best practices, and code smells using AI. Unlike traditional linters or static analysis tools, CodeBuddy AI reviews your actual logic and structure, providing a more human-like perspective.

Each review includes:

✅ Best practice adherence checks (naming, logic structure, modularity).

✅ Identification of code smells (e.g., deep nesting, duplicated logic).

✅ Clear explanations with severity levels (low, medium, high).

✅ Line-by-line annotations so you know exactly where to improve.

✅ Actionable insights—not just what’s wrong, but why and how to fix it.

Think of it as an AI engineering buddy who reviews your code with context and insight, not just rules.

🔸 Line-by-Line Code Fix Suggestions (✨USP Feature)

After reviewing your code, CodeBuddy AI can suggest improvements or complete fixes for problematic sections. These suggestions are tailored to your code and context, not just generic linting hints.

Each suggestion includes:

📌 The problematic line.

💡 The improved version with rationale.

📊 Severity classification so you can prioritize easily.

🧠 AI-generated context explaining the fix.

This feature is ideal for junior developers learning best practices or senior developers aiming for faster turnarounds.

Installation

You can install CodeBuddy AI directly from PyPI using pip:

pip install codebuddy-ai

Usage

Basic Workflow

  • Stage Your Changes:

Begin by staging your changes in Git using:

git add .
  • Generate the Commit Message:

Execute the Commit-Gen tool to generate your commit message:

codebuddy generate-commit

The CLI tool will:

  1. Extract the staged Git diff.
  2. Communicate with the commit-generation server.
  3. Output a generated commit message that summarizes your changes.
  • Run Code Review:

You can run the code review process to analyze the quality of your code:

codebuddy run-code-review

Run a detailed code review to analyze the quality of your code. This process examines your code for potential issues, best practices, code smells, and areas for improvement. The review includes:

✅ Best practice violations

✅ Code smells

✅ Severity ratings

✅ Line-by-line improvement suggestions

  • Suggest Code Fixes:

To get suggestions for code improvements, run:

codebuddy suggest-code-fixes

Automatically generates improvement suggestions, including refactored versions of problematic lines along with explanations and severity.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codebuddy_ai-0.2.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codebuddy_ai-0.2.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file codebuddy_ai-0.2.2.tar.gz.

File metadata

  • Download URL: codebuddy_ai-0.2.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for codebuddy_ai-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7e3a80f4ee4b87449a9b7721e454a559aa6f5f2a91d8747485fe65e474718537
MD5 497ef0ced090ac8d2594773dbbd47bfd
BLAKE2b-256 2e95c0e9471cd2a88457fdc65776260a64a1ad87609235d0209895f5d8a4e5aa

See more details on using hashes here.

File details

Details for the file codebuddy_ai-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: codebuddy_ai-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for codebuddy_ai-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23ac5cd3baf0008b911fdb4530d7385514a6208808596c5ac10e37129414dab1
MD5 5fcecbe8d3bc99f9133382ef53d74ec5
BLAKE2b-256 b38a66eec54e55eea0cef9bb3f57c60b6dff9288856135bdb0e41c24d63a06d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page