Skip to main content

Module code_review

Module code_review 

Source
Expand description

🔍 Code Review Module - AI-powered code review

“Let the machines judge your code!” - The Cheet 😺

Supports multiple review modes:

  • Local: Just show the diff with syntax highlighting
  • Grok: Use X.AI’s Grok for witty, thorough reviews
  • OpenRouter: Access 100+ models for reviews
  • Any configured LLM provider

Structs§

CodeReviewConfig
Code review configuration
CodeReviewResult
Code review result

Enums§

ReviewProvider
Code review provider selection

Functions§

display_review
Display code review result in a nice format
review_local
Quick helper to run a local review
review_with_grok
Quick helper to run a Grok review
review_with_openrouter
Quick helper to run an OpenRouter review
run_code_review
Run code review with the given configuration