Loop-Suite GitHub avatar

Code-Review-Loop

Loop-Suite

Code-Review-Loop is a deterministic-first CLI for persona-based PR diff review with a structured pipeline and multiple subcommands.

Stars

4

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-30

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It combines local deterministic checks with LLM-driven persona lenses and discourse analysis, emphasizes auditability and traceability, and supports prior-run fix tracking.

Who it is for

  • Rust developers and toolchain users
  • Code reviewers seeking structured PR analysis
  • Teams wanting deterministic CI/CD review integration
  • Developers needing reproducible review outputs

Use cases

  • Run a full PR review pipeline with persona lenses and discourse
  • Generate PR summary metadata (title, walkthrough, labels)
  • Produce concrete patch suggestions with before/after snippets
  • Ask free-form questions about a diff

Strengths

  • Clear deterministic/LLM boundary for auditability
  • Persona-based lenses reduce bias and provide multiple perspectives
  • Anonymous discourse mode reduces conformity bias
  • Prior-run reconciliation tracks fixes across iterations

Considerations

  • Heuristic policy signals can produce false positives
  • Severity penalties are hardcoded and not configurable via spec
  • Fixed persona mapping is opinionated and may not suit all projects
  • Claim matching can be noisy with frequent file renames

README quick start

Code-Review-Loop

A deterministic-first, persona-based review CLI for PR diffs.

Code-Review-Loop runs a structured review pipeline:

  1. select personas/lenses,
  2. review each lens independently,
  3. cross-check findings with discourse (AGREE/CHALLENGE/CONNECT/SURFACE),
  4. optionally verify against requirements/conventions, and
  5. summarize score/effort/verdict in deterministic tables.

The tool is implemented in Rust. Default LLM backend is Claude Code CLI (claude -p --output-format json); an OpenRouter backend (--backend openrouter + OPENROUTER_API_KEY) is also available and does not require the claude CLI.

What this repository is for

This CLI is designed for PR-level review and post-review remediation checks.

  • review : full PR pipeline (primary mode)
  • describe : generate PR summary metadata (title, summary, walkthrough, labels)
  • improve : produce concrete patch suggestions with before/after code snippets
  • ask : free-form Q&A against a diff

It favors traceability and auditability:

  • deterministic checks are locally computed,
  • LLM output is limited to judgmental parts, and
  • fixed schemas keep outputs reviewable by scripts.

This repository is the private implementation counterpart and aligns operationally with the public full-review skill ecosystem where applicable.

Build and requirements

Requirements

  • Rust toolchain (for building CLI)
  • claude CLI in PATH (for LLM-backed review modes, default backend) — or --backend openrouter with OPENROUTER_API_KEY set, which needs no claude CLI
  • optional: semgrep for local deterministic SAST/secrets/semi-static checks

Build

cargo build --release

# Built binary:
# target/release/codereview

If you want to keep a local debug binary:

cargo build

Core usage

All commands expect a diff patch and a spec file.

git diff > diff.patch

review (primary pipeline)

codereview review \
  --spec specs/default.toml \
  --diff diff.patch \
  --requirements requirements.md \
  --conventions conventions.md \
  --deterministic-results deterministic-results.json \
  --human-voice \
  --out runs/pr123

requirements, conventions, and deterministic-results are optional. If omitted, the tool emits explicit “not provided” sections rather than inventing assumptions.

Output (normally under runs/pr123):

  • `repo

Description

Reproducible full-review benchmark with clean English setup and runner documentation.

Related repositories

Similar projects matched by category, topics, and programming language.

7-e1even
Featured
7-e1even GitHub avatar

learn-agent

A collection of notes on building coding agents, derived from the production development of the desktop agent Reina, with each mechanism simplified into a zero-dependency, single-file Node.js demo.

AI & Machine LearningLarge Language Models
218
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
jamesob
Featured
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI & Machine LearningLarge Language Models
1,660