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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/

parts/
sdist/
var/
Expand Down
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# codeDaddy

AI-Pr reviewer


## 🧠 High-Level System Design

The following diagram illustrates the high-level architecture of the **CodeDaddy PR Review Workflow**, showing how pull requests and commits are processed asynchronously and analyzed by multiple AI agents in parallel.

![System Design](./codedaddy.excalidraw)

### ⚙️ Flow Overview

1. **Webhook Trigger** — When a Pull Request or Commit event occurs, a webhook receives the event payload.
2. **Background Processing** — The event is pushed into a Python RQ (Redis Queue) background job (`GITHUB_PR_PROCESS`).
3. **Workers** — Multiple workers clone the repository, parse source files, build semantic graphs, and prepare contextual data.
- Each worker uploads its processed context to S3.
4. **Context Initialization** — A controller process downloads context from S3 and sets up the state for LangGraph nodes.
5. **Parallel Agent Execution** — Several agents run concurrently:
- `code_quality_agent`
- `performance_agent`
- `security_agent`
- `test_agent`
6. **Aggregation Phase** — The `aggregator_agent` combines insights from all agents.
7. **Comment Update** — The aggregated output replaces the initial loading comment with a comprehensive final PR review comment.

---

### 🧩 Key Characteristics

- **Event-driven:** Triggered by GitHub webhooks.
- **Asynchronous:** Uses background workers for parallel processing.
- **Scalable:** Each worker operates independently.
- **AI-powered:** Multi-agent architecture performs different aspects of code analysis.
- **Automated Feedback:** Automatically updates PR comments with contextual insights.

---

52 changes: 0 additions & 52 deletions client/checl.ts

This file was deleted.

Loading