# holetexvn/review-agent architecture

> Architecture diagram of the GitHub repository holetexvn/review-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/holetexvn/review-agent
- Repository: https://github.com/holetexvn/review-agent

## Overview

`review-agent` is a small automated reviewer for open GitHub pull requests. Its documented workflow obtains each PR diff through `gh`, sends the diff to `claude -p`, and posts the review as a PR comment. A hidden marker and head-commit SHA make repeat runs skip already-reviewed revisions. The tree contains no application source excerpts, so runtime components have unknown paths and the documented workflow is the only evidence for their relationships.

## Diagram (Mermaid)

```mermaid
flowchart TD

node_scheduler(("Cron scheduler"))
node_agent["Review agent"]
node_dedup["Review idempotency"]
node_github["GitHub API"]
node_claude["Claude CLI"]

node_scheduler -->|"runs periodically"| node_agent
node_agent -->|"checks revision"| node_dedup
node_agent -->|"fetches diff"| node_github
node_agent -->|"requests review"| node_claude
node_agent -->|"posts comment"| node_github

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scheduler toneRose
class node_agent,node_dedup toneBlue
class node_github toneMint
class node_claude toneIndigo
```

## Components

### Other components

- **Cron scheduler**
- **Review agent**
- **Review idempotency**
- **GitHub API**
- **Claude CLI**

## Connections

- Cron scheduler → Review agent: runs periodically (evidence: `README.md`)
- Review agent → Review idempotency: checks revision (evidence: `README.md`)
- Review agent → GitHub API: fetches diff (evidence: `README.md`)
- Review agent → Claude CLI: requests review (evidence: `README.md`)
- Review agent → GitHub API: posts comment (evidence: `README.md`)
