Skip to content

Keys prc2?

All projects

SERVICE 04

RULES ONLY

Automated Code Review Pipeline

  • 80%routine review automated
  • -45%median PR cycle
  • <3mpipeline time

Stack Python · LLM APIs · GitHub Actions · Docker · ESLint · Semgrep

Explain at

A GitHub Actions workflow evaluates every PR diff and posts inline feedback. Findings are classified across OWASP Top-10, logic bugs, performance, style and maintainability into five severity tiers. Structured LLM review is combined with ESLint and Semgrep inside a Dockerized stage. Result: 80% of routine review overhead automated across a 12-engineer repository, median PR cycle down 45%, pipeline under 3 minutes.

In plain words Paste a few lines of JavaScript and the page reads them the way a code reviewer would, sorting what it finds into five levels of seriousness.

The reviewer runs in a web worker in your browser. Seeded diffs and pasted code get the same rules, in five tiers.

  • T1 Critical ◆
  • T2 High ▲
  • T3 Medium ●
  • T4 Low ■
  • T5 Info ○

Seeded diffs: express-route.js, async-worker.js, profile-card.jsx.

Rules only. The production pipeline added an LLM stage; here the Semgrep-style rules and a small AST pass run entirely in your browser. Five tiers, same shapes.

Work trace

Decisions
Structured output from the LLM so it can be merged with deterministic tools; five tiers so severity is a decision, not a vibe; Docker so the stage is reproducible.
Trade-offs
A tighter time budget means fewer rules per run. I accept that to keep the whole pipeline under three minutes.
What I guard against
Free-form review text cannot be deduplicated against ESLint and Semgrep output, so one issue could be reported three ways. Structured findings are what let the three sources merge into one list.
What I'd change
Track precision per tier over time so false positives in the lower tiers can be pruned with evidence.
PR diff
GitHub Actions
Docker stage
ESLint
Semgrep
LLM(structured)
tier
inline comments
Click a part of the drawing to read about it.

Pipeline

  1. parse—
  2. lint patterns—
  3. AST pass—
  4. tier—
  5. post—

Run it to see the real timing of each stage.