ai-code-buddy 0.1.0

An AI-powered code review tool that analyzes Git repositories and provides intelligent feedback
ai-code-buddy-0.1.0 is not a library.
Visit the last successful build: ai-code-buddy-0.4.20

AI Code Buddy

Crates.io License: MIT

An AI-powered code review tool that analyzes Git repositories and provides intelligent feedback on code quality, security, performance, and maintainability.

Features

  • ๐Ÿ” Intelligent Code Analysis: Uses AI to analyze code patterns and provide meaningful suggestions
  • ๐ŸŒฒ Git Branch Comparison: Compare commits between branches (e.g., feature branch vs. develop)
  • ๐ŸŽฏ Multi-Language Support: Supports Rust and general programming patterns
  • ๐Ÿ“Š Detailed Reporting: Categorized issues by severity (Critical, High, Medium, Low, Info)
  • ๐Ÿ–ฅ๏ธ Dual Interface: Both CLI and interactive TUI modes
  • ๐Ÿ“‹ Comprehensive Reports: Generate detailed code review reports

Installation

From crates.io

cargo install ai-code-buddy

From source

git clone https://github.com/edgarhsanchez/ai_buddy.git
cd ai_buddy
cargo build --release

Usage

CLI Mode

# Analyze current branch against develop
ai-code-buddy --cli

# Analyze specific branches
ai-code-buddy --cli --source feature-branch --target main

Interactive TUI Mode

# Launch interactive interface
ai-code-buddy

The interactive mode provides:

  • Overview of all findings
  • Navigate through issues by category
  • Detailed view of each issue
  • Generate comprehensive reports

Issue Categories

  • ๐Ÿ”’ Security: Potential security vulnerabilities
  • ๐Ÿ› Potential Bugs: Code patterns that might cause issues
  • โšก Performance: Performance optimization opportunities
  • ๐Ÿ“š Documentation: Missing or inadequate documentation
  • ๐ŸŽจ Style: Code style and formatting issues
  • ๐Ÿ”ง Maintainability: Code maintainability improvements
  • ๐Ÿ“– Readability: Code readability enhancements
  • ๐Ÿงช Testing: Testing-related suggestions

Configuration

AI Buddy automatically detects:

  • Repository technology stack
  • Programming languages used
  • Code patterns and anti-patterns
  • Git branch structure

Examples

CLI Output

๐ŸŽฏ Code Review Summary
Repository: /path/to/repo
Branches: feature-branch โ†’ main
Technology: Rust, JavaScript

๐Ÿ“Š Issues Found: 15
๐Ÿ”ด Critical: 0
๐ŸŸ  High: 2
๐ŸŸก Medium: 5
๐Ÿ”ต Low: 6
โ„น๏ธ  Info: 2

Interactive Features

  • Arrow keys: Navigate through issues
  • Enter: View detailed issue information
  • R: Generate comprehensive report
  • Q: Quit application

Requirements

  • Rust 1.70+
  • Git repository
  • Network connection for AI processing

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Roadmap

  • Support for more programming languages
  • Custom rule configuration
  • Integration with CI/CD pipelines
  • Web interface
  • Team collaboration features

Acknowledgments

  • Built with Kalosm for AI language processing
  • Uses git2 for Git repository analysis