back to projects
codebatai
jun 2024 · personal project
overview
an ai-powered github bot that automates code reviews. it analyzes pull requests comprehensively — delivering summaries organized by file, detailed walkthroughs of modifications, and categorized change insights directly in pr descriptions. the bot also threads reviews with specific change requests and includes issue labeling capabilities.




tech stack
node.jsgithub-webhooksgroq:llama-3.1prompt-engineering
challenges
- •designing precise prompts for accurate and consistent ai outputs across diverse codebases.
- •integrating ai model json responses for structured output parsing — eventually simplified the approach after complexity grew.
- •implementing code patch commenting functionality and creating threaded review comments on specific lines.
- •formatting file-by-file changes coherently while managing ai-generated data manipulation at scale.
outcomes
- •reduced manual code review effort and duration significantly.
- •streamlined pr reviews with detailed, organized file-by-file summaries.
- •enhanced codebase management through automation of repetitive review tasks.
- •deepened understanding of ai/llms, prompt engineering, and github's webhooks api.