Skip to main content

AI-augmented code review CLI tool

Project description

Vaahai

Agentic Coding, Review, Audit and Generation

Overview

Vaahai is an AI-augmented code review CLI tool that combines static analysis with LLM capabilities to provide comprehensive code reviews, suggestions, and automated fixes.

Installation

# Install from PyPI
pip install vaahai

# Verify installation
vaahai --version

Quick Start

# Set up your configuration
vaahai config init

# Review a single file
vaahai review main path/to/file.py

# Review a directory recursively
vaahai review main src/

# Review with specific include/exclude patterns
vaahai review main src/ --include="*.py" --exclude="*_test.py"

# Review with specific focus and depth
vaahai review main important_module.py --depth thorough --focus security

Features

  • Code Scanning: Scan directories with customizable filters for file extensions, patterns, and content
  • Static Analysis: Integrate with static analysis tools for code quality checks
  • LLM Integration: Leverage LLMs for contextual code review and suggestions
  • Interactive Fixes: Apply suggested fixes interactively
  • Multiple Output Formats: Generate reports in terminal, markdown, or HTML formats

Implementation Status

Component Status Description
Configuration System ✅ Complete Modular configuration with environment variables, validation, and migration
Code Scanner ✅ Complete File scanning with filtering by extension, pattern, size, and content
CLI Application 🔄 In Progress Command structure with review command implemented
Static Analysis ⏳ Planned Integration with static analysis tools
LLM Integration ⏳ Planned Support for multiple LLM providers
Interactive Fixes ⏳ Planned Interactive application of suggested fixes

For detailed implementation status, see the Implementation Status documentation. For the complete development roadmap, see the Implementation Roadmap.

Available Commands

review

Review code files with customizable filters and analysis.

vaahai review main [PATH] [OPTIONS]

Arguments:

  • PATH: Path to file or directory to review (required)

Options:

  • --depth {quick,standard,thorough}: Review depth (default: standard)
  • --focus {all,security,performance,style}: Focus area (default: all)
  • --output {terminal,markdown,html}: Output format (default: terminal)
  • --output-file FILE: Save output to a file
  • --include PATTERN: Patterns to include (can be used multiple times)
  • --exclude PATTERN: Patterns to exclude (can be used multiple times)
  • --max-file-size SIZE: Maximum file size in bytes (default: 1MB)
  • --interactive: Enable interactive fix application
  • --save-history: Save review results to history
  • --private: Use only local resources

config

Manage Vaahai configuration.

vaahai config [ACTION] [OPTIONS]

Actions:

  • init: Initialize configuration
  • get KEY: Get a configuration value
  • set KEY VALUE: Set a configuration value
  • list: List all configuration values
  • reset: Reset configuration to defaults
  • locations: Show configuration file locations

Options:

  • --global: Apply to global configuration
  • --local: Apply to local configuration
  • --env: Show environment variable override

analyze

Run static analysis on code files.

vaahai analyze [PATH] [OPTIONS]

Arguments:

  • PATH: Path to file or directory to analyze

Options:

  • --analyzer {pylint,eslint,all}: Analyzer to use
  • --format {text,json,html}: Output format
  • --output-file FILE: Save output to a file

Documentation

Comprehensive documentation is available in the /docs directory:

To view the documentation in your browser:

# Install Docsify (if not already installed)
npm install -g docsify-cli

# Start the documentation server
docsify serve docs

# Access at http://localhost:3000

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

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

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

vaahai-0.2.4.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

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

vaahai-0.2.4-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file vaahai-0.2.4.tar.gz.

File metadata

  • Download URL: vaahai-0.2.4.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0

File hashes

Hashes for vaahai-0.2.4.tar.gz
Algorithm Hash digest
SHA256 5a7ae9ef7325414c28929936f0169ded7326d61f42b70b08e7b445dfc02339cc
MD5 04c04b1ad6be4e6d3833aad4a944081c
BLAKE2b-256 b0ef2ececd8b183571e76f4cc118eb4c5baaa18f25e4b957a75b9b299917bef0

See more details on using hashes here.

File details

Details for the file vaahai-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: vaahai-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 36.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0

File hashes

Hashes for vaahai-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7be86d9562a74f5b5beb0ec0ca80649e553a675ff7f3acf0d7738c473a92e16c
MD5 a4cbbacf987ec684cd062b1345b7ad3a
BLAKE2b-256 67daa4ba1a1eecf1b1ad536d7d4017d1e38495e3e5c4866131187ff8e016f225

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