Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ai-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
uses: actions/checkout@v3

- name: AI Code Review
uses: tusharshah21/ai-code-reviewer@main
uses: tusharshah21/PRowl@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_MODEL: "gpt-4o"
LLM_REVIEWER_MODEL: "gpt-4o-mini"
LLM_FIXER_MODEL: "gpt-4o"
exclude: "pnpm-lock.yaml,dist/**"
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,28 @@ Open-source AI code review for GitHub PRs. Works with **any LLM provider**.

## Architecture Overview

![AI Code Reviewer Architecture](<architecture.png>)
```mermaid
flowchart TD
subgraph GitHub["GitHub CI/CD"]
PR([Pull Request Opened / Updated])
GH[GitHub API\nFetch PR Diff]
CM[Post Inline Review\nComments with Fix Suggestions]
end

subgraph Action["AI Code Reviewer Action"]
TOON[TOON Encoder\nCompact token-efficient diff]

subgraph Orchestrator["Orchestrator Pipeline"]
A1["Agent 1 — Reviewer\n🔍 cheap / fast model\nDetects BUG · SECURITY\nPERF · BEST_PRACTICE"]
CHK{Issues found?}
A2["Agent 2 — Explainer + Fixer\n🧠 smarter model\nExplanation + fixed code\nper issue · runs in parallel"]
end
end

PR --> GH --> TOON --> A1 --> CHK
CHK -- No issues --> DONE([Done — zero fixer cost])
CHK -- Issues found --> A2 --> CM
```

## Features

Expand Down
Loading
Loading