Skip to content

Instantly share code, notes, and snippets.

View alwin-augustin-dev's full-sized avatar
💭
I may be slow to respond.

Alwin Augustin alwin-augustin-dev

💭
I may be slow to respond.
View GitHub Profile
@alwin-augustin-dev
alwin-augustin-dev / code_review.py
Created February 26, 2025 07:29
Code Review Prompt
prompt = f"""
# Code Review Request
PR Number: {context.pr_number}
## Changes
```diff
{context.diff}
Files Changed
{json.dumps(context.files_changed, indent=2)}
@alwin-augustin-dev
alwin-augustin-dev / code_review.sh
Created October 17, 2024 06:31
Automated code review using local LLMs
#!/bin/bash
# Define variables
REPO_PATH=""
PR_NUMBER=""
OLLAMA_API_URL="http://localhost:11434/api/generate"
OUTPUT_FILE="code_review_output.md"
MODEL="llama3.1:8b"
MAX_CONTEXT_LINES=20000