Skip to content

nikolliervin/code-unc

Repository files navigation

UNC - AI-Powered Code Review Tool

                                                                              
                                                                              
                                     ;^^^^;                                   
                             ™ÆÆÆµ=+++++++++++™ÆÆÆà                           
                        +ÆÆà++++++++++++++++++++++++µÆÆJ                      
                     ^ƶ++++++++++++++++++++++++++++++++™Æ=                   
        ÖÆ+  JÆæ;  ÆÆ++++++++++++++++++++++++++++++++++++++ÐÆ;  ¶Æ™; ^Ææ      
       Æ^        ƶ+++++++++++++++++ÌÌÌÌÌÌÌÌ=++++++++++++++++™Æ        ;Æ     
      Æ;         à++++++++++++++++++++====++++=++=====++++++++J          Æ    
     ^æ         =+++++++++++++++JÌJ=+++++++++JÌÌ+++++==++++++++µ         µÌ   
     ÖJ         à++++=ÐÆÆÆÆææææææÆÆ++++++++++ÐÆææææææÆÆÆÆæJ++++à         ^Æ   
     Æ=^      +ÐÆÆææææææÆÆÆ™++++JÆÆæÆ™àààà™ÆææÆÌ++++ÌÐÆÆÆæææææÆÆÆ=       ;Æ   
     Æ=++++ÆææææææææÆÖ+++++++++++++ÆææææææææÆ+++++++++++++àÆææææææææÆJ++++Æ   
     ¶™+++=ææÆææÆææÖ++++++++Æà+ÖÆ+++ÆæÆÆÆÆæÆ+++ÆJ+Ææ++++++++ÌææÆææÆææÌ+++=Æ   
     ÌÆ=++Ð=ÆÆÆÆæææ^+++++++Æ++++=¶++¶Æ++++ÆÆ++Æ+++++µ+++++++^ÆææÆÆÆÆÌÖ+++ÆÐ   
    ™æ++=ÌÖ+++++Æææà+++++++µ+++++J+µææà™™àÐÆÖ+µ+++++µ+++++++JææÆÌ++++ÌÌ+++µæ  
    Æ+++ÌÌÌ+++++àææÆ++++++++++++JÐÌÌÌÌÌÌÌÌÌÌÌÌÖ™++++++++++++ÆææÆ+++++=™Ì+++Æ  
    Öà++ÌÌJ++++++æææà++++++++++ÐÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÆ++++++++++JÆæÆ+++++++µÌ++ÌÆ  
     ÖÆ+++µ+++++++ææÆ++++++++++ÆÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÆ++++++++++ÆæÆ+++++++J=++¶Æ   
       ;ÌÖÆ++++++++Ðææ¶++++=ÐÆÆÆàÌÌÌÌÌÌÌÌÌÌÌÌÌÌ™ÆÆÆÆJ++++àÆæÆ++++++++Ö¶™;     
          Æ+++++++++àÆææææÆÆÆ^   ƵÌÌÌÌÌÌÌÌÌÌ™Æ    ÆÆÆææææÆÐ+++++++++Æ        
          =Æ+++++++++++J=+µ;        =à¶ÆÆæàJ         à+=J+++++++++++æà        
           Ðà++++++++++++à                            Æ++++++++++++™Æ         
            Æ™+++++++++++Æ                            Ð+++++++++++=Æ          
             ÐÐ++++++++++++ÐÌ                      JÆ++++++++++++àÆ           
              ^Æ+++++++++++++++=¶æ+          ^¶æJ+++++++++++++++ÆJ            
                ¶Æ++++++++++++++++++++++++++++++++++++++++++++ÐÆ              
                  æÆ++++++++++++++++++++++++++++++++++++++++ÆÆ                
                    ÌÆà++++++++++++++++++++++++++++++++++™Æà                  
                       àÆæ++++++++++++++++++++++++++++ÖÐÖÖÆ^                  
                      ÆÖÖÖÖÖ¶ÐæJ++++++++++++++++=ÐæÐÖÖÖÖÖÖÖæÆ                 
                    ÐÆÖÖÖÖÖÖÖÖÖÖæ    ^+ÖÆÌ^     ÐÖÖÖÖÖÖÖÐÖÖÖÖÆ                
                  ;ÆÖÖÖÖÖÖÖÖÖÖÖÖÖæ ;ƶÖÖÖÖÖÐæ +¶ÖÖÖÖÖÖÖÖ¶ÆÖÖÖ¶Æ               
             ^ÐÆÆÆÆÖÖÖÖÖ¶ÆÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÆÐÖÖÖÆ+              
           ÆÆJ++++++ÆÖ¶ÆÌÆÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÆÖÖÖÖÆ=              
         =ÆÐÐÐæÆÐµ++ÆÆ+ µÐÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖæÖÖÖÆæ               
         ÆÐÐÆÆÆÆÐÐÆÖ    æÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖæÐÆÆ;                
         ÆÐÐÆ  ^ÆÐæÆ    ÆÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÆ^                   
         µÆÆÌ  =ÆÐæÆ    ÆÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÆ=                   
               JÆÐæÆ    ÆÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÆ=                   
               ÌÆÐæÆ    ÆÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÆ+                   
               ™ÆÐæÆ    ƶÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÆ;                   
               àÆÐæÆ    ™ÆæææÆÆ¶ÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÐÆæææÆ                    
               ÖæÐæÆ    +ÆæææææææææÐæææÆÆÆÆÆÆÆææææææææææÐÆ                    
               ÐæÐæÆ     ÆæææææææææææææææææææææææææææææææÐ                    
               ÆæÐæÆ     ÆÐææÐææÐææææææææÆÐææÐææÐææÐææÐæÆÌ                    
               ÆæÐæÆ     ÆÆæææææææÐææÐƵ  ;ÆÆæææææææææææÆ;                    
               ÆæÐæÆ     ^ÆæææÐææææææÆ      JÆæææÐææÐææÐÆ                     
               ÆÐÐæÆ      ÆæææææÐææÐÆ^       ÆæææææææææÆà                     
               ÆÐÐæÆ      ¶æææææææææÆ         ÆæææÐææÐæÆ                      
               ÆÐÐæÆ      µÆÆÐæææÐæÆJ         ÆæææææÐæÆÆ;                     
               ÆÐÐæÆ    Jƶ¶¶¶¶¶¶ÆÆÆ          ÆæÆÐ¶¶¶¶¶¶¶Æ                    
               æÆæÆ=    ÆÆÆÆÆÆÆÆÆÆÆÆ          ÆÆÆÆÆÆÆÆÆÆÆÆ;                   
                                                                              
                                                                                                                                                     

AI-powered code review tool using git diff and various AI providers (OpenAI, Anthropic, Gemini, Ollama).

GitHub

Features

  • 🤖 Multiple AI Providers: Support for OpenAI, Anthropic, Gemini, and Ollama
  • 🔍 Git Integration: Automatic diff generation and analysis
  • 📊 Rich Output: Multiple output formats (rich, JSON, markdown, HTML)
  • ⚙️ Flexible Configuration: Easy setup and customization
  • 📝 Review History: Track and manage review history
  • 🎯 Focus Areas: Target specific aspects (security, performance, style)

Quick Start

GitHub Action (Recommended)

Automatically review pull requests with AI-powered feedback:

Local Installation

# Clone the repository
git clone https://github.com/nikolliervin/code-unc.git
cd code-unc

# Install in development mode
pip install -e .

# Add to PATH (if needed)
# Windows: Add Python Scripts directory to PATH
# macOS/Linux: export PATH="$HOME/.local/bin:$PATH"

# Verify installation
unc version

# Initialize configuration
unc config init

# Run your first review
unc review run-review --source feature-branch --target main

Adding to PATH

To use unc from anywhere in your terminal, add it to your system PATH:

Windows:

# Find Python Scripts directory
python -c "import sys; print(sys.executable.replace('python.exe', 'Scripts'))"
# Add the output path to your system PATH environment variable

macOS/Linux:

# Add to shell profile
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Verify installation:

unc version

Documentation

For comprehensive documentation, see the docs folder or run:

unc help

Documentation Structure

License

MIT License - see LICENSE file for details.

About

ai-powered, cli code reviewer

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages