agp
GitHub

Ship code to production, safely.

Every change gets a panel of specialist agents that take care of best practices, design patterns, security, data privacy, architecture drift and more, across 13 quality pillars. On your machine, with the AI you already use.

Get started
owner/repo · PR #123 Illustrative run
Stage 1 · Intent & change routerwhat was this change supposed to do?
the Jira ticketqueued
the commits & PR descriptionqueued
the repository’s documentationqueued
the diff itselfqueued
Change briefassembling

GoalOrders can be exported, and refunds issued in a second currency.

Evidenceticket strong · commits moderate · diff moderate

Must be true

1. Every order field the ticket lists is in the export

2. A refund converts at the original charge’s rate

3. Existing refunds behave as before

Change routerwaiting for the brief
Change CorrectnessSecurityData Privacy & ComplianceInfrastructure & Cloud PostureRelease & Deployment SafetyCode Quality & DesignUX & AccessibilityData & PersistenceDistributed Systems & MessagingAPI & ContractsQuality AssuranceSite ReliabilityArchitecture Consistency
Stage 2 · Quality pillar swarm12 specialists · 0 done · in parallel
Change Correctness
ChangeCompletenessqueuedContractDriftqueuedIntentCoveragequeuedLogicTracequeuedFunctionalCorrectnessqueued
0/5
Security
PythonSASTSCAqueued
0/1
Data Privacy & Compliance
DataPrivacyCompliancequeued
0/1
Code Quality & Design
CodeDesignSOLIDqueued
0/1
Quality Assurance
TestEfficacyqueued
0/1
Site Reliability
PerformanceEfficiencyqueuedOTelObservabilityqueued
0/2
Architecture Consistency
ArchitectureDriftqueued
0/1
Stage 3 · Consolidation & jurysequential · 5 agents
Synthesizerdedupe & ranking

Merges duplicates across specialists, keeps the worst severity, ranks.

waiting

7 findings → 5 after dedupe

Multi-Model Juryarbitration

Prosecutor · defence · judge on the 2 contested majors.

waiting

1 kept, 1 severity lowered

Confidence Calibratormulti-signal

Grounds each finding in evidence and corroboration.

waiting

ranked by severity, then corroboration

Memory Curatorpersistent memory

Learns from what was confirmed.

waiting

curated into repository memory

Verdict Gatefail-closed

Applies the repository’s severity gate.

waiting

REQUEST CHANGES

Verdict REQUEST CHANGES · a blocker remains, so the fail-closed gate holds the PR
owner/reporequest changesFindings 5 · coverage 7/7
1 blocker1 major3 minor
BLOCKERDataPrivacyCompliancesrc/orders/export.py:58

Customer email and phone are written to the export log in plain text

MAJORChangeCompletenesssrc/billing/refunds.py:112not in this PR’s diff

convert_amount() now takes a currency, but the refund path still calls it without one

MINORArchitectureDriftsrc/orders/export.py:21severity lowered by the jury

Export reads the orders table directly instead of going through OrderRepository

In /agp, the fixer agent now fixes what you marked and the panel reviews again.

Published to GitHub ✓

Review checks that code looks right. Production needs it to be right.

A solo MVP can live without this. An organization can’t: every gap below ends up in production.

What isn’t in the diff gets skipped

Human review checks whether code looks right, under time pressure. Data privacy and compliance, architecture drift, release safety, observability, and the edit someone forgot in another file are routinely missed.

Every team sets its own bar

Standards differ from team to team and from reviewer to reviewer. Nothing enforces one bar across every repository.

Changes arrive faster than seniors can read

More and more code is written with AI assistants. Changes arrive faster than senior reviewers can read them.

agp closes the gap before production

Every change gets the same multi-specialist review against 13 pillars, verified against what the change was meant to do, before it reaches production.

Your approved AI

The provider your organization already approved, under its own account.

Your machines and CI

On laptops, in a local container, and in CI with the GitHub Action.

No vendor servers

agp has no servers. Nothing about your code or reviews is sent to us.

Open source

Apache 2.0. Read it, run it, extend it.

Enterprise support, custom specialists, rollout help, private deployments.

Adopting it is one command.

That is what makes rollout across an organization realistic. Your developers start it from the terminal, from the AI tool they already use, or let CI run it on every pull request.

Terminal

Paste a pull request link. No review keyword, no flags. Review staged changes before you commit, or your branch against its base.

$ agp https://github.com/owner/repo/pull/123
$ agp staged
$ agp diff
$ agp diff --provider ollama

Inside your AI coding tool

On your feature branch, type /agp. It finds the pull request for your branch (or offers to open a draft), runs the review, lets you mark findings in an interactive report, fixes the ones you marked, validates the fix and reviews again, for up to three rounds.

/agp
/agp ABC-123
/agp https://github.com/owner/repo/pull/123
On every pull request: the GitHub Action runs the same review in CI, with a severity gate and SARIF upload to code scanning.
See the workflow step

Agents that check before they speak

Not one model reading one prompt. An orchestrator, a panel of specialist agents with their own tools, a jury, a curator and a fixer.

An orchestrator picks the panel

It reads the change and decides which specialists run. A small PR gets a small panel.

Each specialist is its own agent

Its own role, its own slice of context, its own belt of read-only tools.

Fetch before you assert

A claim about code outside the prompt that no lookup checked is dropped.

Bounded, and in parallel

6 tool calls per agent and 60 per review. Specialists run at the same time.

A jury for what matters

Disputed and important findings go to an adversarial jury.

A curator for memory

What was confirmed is written into memory, per repository.

A fixer in /agp

It fixes the findings you marked, then the panel reviews again, up to 3 rounds.

Anatomy of a specialist

RoleSecurity: injection, auth, secrets and unsafe input handling.
ContextIts slice of the diff, what each file is for, your library versions, the ticket’s acceptance criteria, and an evidence manifest of what it was not given.
Tools read a filegrepgit blamefind a definitioncallers and calleespast review conclusions
Its ownsecret scannerauthorization chain
Budget6 tool calls for this agent, 60 for the whole review.
Rule keptA claim checked by a lookup. droppedA claim about code outside the prompt that no lookup checked.

A review panel, not a prompt.

How a change travels from pull request to verdict, and into the memory the next run starts from.

Pull request+ ticket · commits · repo docsReview cacheagp’s own clone · your copy untouchedPrompt-injection firewallPR and repo text fenced as dataIntent extractionwrites the change briefChange routerstack · file purpose · pillars touchedSpecialist panelin parallelsecuritydataAPImoreHonesty pipelinenotices · merge · anchor · rankJuryblocker · majorVerdictapprove · comment · request changesreportfixpublishticketyour feedbackMemorythe curator writes what was confirmedthe next run starts from memory
Open any step for detail. Tools are read-only; nothing reaches your PR until you publish.
Pull requestPlus the ticket, the commits and the repository’s docs.
A PR link, your staged changes (agp staged) or your branch against its base (agp diff). Pass --jira PROJ-934 for the ticket, or it is detected from the branch name or title.
Review cacheagp clones into its own cache. Your working copy is never touched.
Specialists read the code around each change from this clone, not from the checkout you are working in.
Prompt-injection firewallPR text and repository content are fenced as untrusted data, never as instructions.
Text in a PR or a file that tries to instruct the reviewer is read as content under review, not followed.
Intent extractionWorks out what the change set out to do: the change brief.
Up to five sources are reconciled into a goal, its evidence and a numbered checklist of what must be true. How intent extraction works
Change routerDetects the stack and what each changed file is for, and runs only the pillars this PR touches.
18 stack manifests. Each changed file is classed as production, local-dev, test, test fixture, CI, docs or example, so a fixture isn’t reviewed like production code. A small PR gets a small panel.
Specialist panelSpecialists run in parallel, each with its own tool belt.
Each one is its own agent with read-only tools, bounded to 6 tool calls, and 60 per review. A claim about code outside the prompt that no lookup checked is dropped.
Honesty pipelineNothing is counted that wasn’t found, and nothing is passed that wasn’t checked.
  • Run notices are split out. A specialist that timed out is never counted as a finding, and never silently passed as clean.
  • Duplicates are merged, keeping the worst severity.
  • Every finding is anchored to the diff: changed line, changed file, or off-diff.
  • Blocker and major findings go to the jury.
  • Ranked by severity, then by how many independent specialists corroborated it.
JuryBlocker and major findings are re-argued before you see them.
A prosecutor, a defence and a judge. How the jury works
VerdictApprove, comment or request changes.
An interactive HTML report grouped by severity, linked to lines on GitHub. It states which pillars were assessed, which don’t apply, and which could not be assessed.
Then you decideFix, file a ticket, publish to the PR, or dismiss.
agp fix fixes from the report. In /agp, a fixer agent fixes the findings you marked and the panel reviews again, up to 3 rounds. Nothing is posted to your PR unless you click Publish.
MemoryThe next run starts from it.
A curator writes what was confirmed. Accepted and dismissed findings are remembered per repository, so agp stops repeating what your team calls noise. Teams share it in .reviewer/, protected by CODEOWNERS against memory poisoning.
Engine: 123 specialist agents and rule packs per stack. A change router with 18 stack manifests picks the panel, so a small PR gets a small panel.
Read the docs

Did the change do what it set out to do?

Change Correctness doesn’t ask whether the visible code is well written. It asks whether the change did what it set out to do, completely. So agp first works out what that was.

Stage 1: reconcile

Up to five sources are read independently and in parallel, each graded for how much it really contains. The diff itself, with its new tests, error strings and docstrings, is the floor. The result is a change brief: the goal, the evidence with a confidence line, and a numbered list of what must be true if this worked.

  • A ticket that is only a title cannot outrank six specific commit messages.
  • Where sources genuinely conflict, the brief says so instead of averaging them.
  • When nothing states an intent, no brief is invented.

In parallel: the reference map

A deterministic pass lists, for every definition the PR changed or deleted, the call sites elsewhere that were not updated.

Stage 2: verify

Five specialists verify the diff against the brief and the reference map.

Stage 1 · reconcileread independently, in parallel, gradedJira ticketgoal + acceptance criteriaCommits · branch · PR textRepository docsREADME · design docs · ADRsAuthoring notesoptional · written by /agpThe difftests · error strings · the floorChange briefgoal · evidence · confidencewhat must be true, numberedReference mapdeterministiccall sites not updatedStage 2 · verifyFive specialists verify the diffagainst the brief and the reference mapFindings, including the edit you forgotlabelled off-diff when it is outside the diff
Authoring notes come from the /agp plugin’s session, when there is one.

The edit you forgot lives in a file you didn’t touch.

agp finds it, and labels it honestly as outside the diff.

Change briefillustrative
Goal Refunds can be issued in a second currency Evidence ticket: goal + 3 criteria · 6 commits · README Confidence high: ticket and commits agree Must be true 1. A refund converts at the original charge’s rate 2. Single-currency refunds behave as before 3. The refund API accepts a currency
Reference mapillustrative
changed convert_amount() billing/money.py not updated api/refunds.py reports/export.py finding off-diff api/refunds.py still calls convert_amount() with the old arguments

A jury for what matters

Blocker and major findings are re-argued before you see them.

Three seats

A prosecutor argues the finding is real, a defence argues it isn’t, and a judge rules. Where your provider offers more than one model family, different models take the seats, so one model’s blind spot is not the verdict.

Both directions

The jury catches real issues and also corrects over-severe false positives.

Corroboration, not self-confidence

Agents’ self-rated confidence is deliberately not used for ranking. Corroboration by independent specialists is.

Blocker or major findingProsecutorargues it is realDefenceargues it is notJudgerules on the argumentskeptseverity correcteddropped
Every blocker and major finding goes through the same three seats.

What each specialist is given

And what it was not. Reviews are honest about coverage.

Its slice of the diff

The part of the change it is there to review.

What each file is for

Production, local-dev, test, test fixture, CI, docs or example.

Your library versions

Read from your manifests and lockfiles, so suggested code compiles against the versions you build with.

The acceptance criteria

From the ticket, when there is one.

An evidence manifest

What it was and was not given, so it never reports the absence of something it couldn’t see.

The code around the change

For the design and architecture agents: the unchanged code near the change, to cite.

The report says which pillars were assessed, which don’t apply to this PR, and which could not be assessed. It never claims coverage it didn’t get.

The 13 pillars of quality

Every run states which pillars were assessed, which do not apply to the change, and which could not be assessed. It never claims coverage it did not get.

  1. 01Change CorrectnessDoes the diff do what it, and its ticket, set out to do?
  2. 02SecurityInjection, auth, secrets and unsafe input handling.
  3. 03Data Privacy & CompliancePersonal data: what is collected, logged, kept and shared.
  4. 04Infrastructure & Cloud PostureInfrastructure code, permissions and cloud configuration.
  5. 05Release & Deployment SafetySafe to ship, safe to roll back.
  6. 06Code Quality & DesignReadable, maintainable, no needless complexity.
  7. 07UX & AccessibilityWhat users see, and whether everyone can use it.
  8. 08Data & PersistenceSchemas, migrations, queries and data integrity.
  9. 09Distributed Systems & MessagingQueues, retries, ordering and partial failure.
  10. 10API & ContractsPublic interfaces and compatibility for callers.
  11. 11Quality AssuranceTests that prove the change and guard it later.
  12. 12Site ReliabilityObservability, timeouts and behaviour under load.
  13. 13Architecture ConsistencyFits the system’s structure; catches drift.

Coverage, stated plainly

Pillar coverage
from a report, illustrative
assessed      01 · 02 · 03 · 06 · 08 · 10 · 11 · 13
n/a           04 · 07 · 09 · 12
not assessed 05 (no deploy config in reach)

Each report says which pillars were assessed, which don’t apply to this PR, and which could not be assessed.

Bring your own AI

Use the provider your organization already approved, under your own account. Your code goes only to the provider you choose.

Providers

copilotGitHub Copilot CLI
claudeClaude Code CLI
cursorCursor CLI
anthropicAPI key
openaiAPI key
azureAPI key
ollamaLocal
vllmLocal

CLIs use your signed-in account. With a local model server, code never leaves your machine. Set a default with agp config provider claude.

GitHub Copilot CLI

Run the full panel inside the agent you already work in. agp init installs the /agp command.

$ agp init
/agp

Claude Code

Run the full panel inside the agent you already work in. Install the plugin once, then type /agp.

$ agp plugin install claude
/agp

Cursor

The same /agp workflow in Cursor. Install the plugin once, then type /agp.

$ agp plugin install cursor
/agp

Antigravity

/agp is also built for Antigravity.

/agp

OpenCode

/agp is also built for OpenCode.

/agp

MCP server

MCP-capable tools can call agp through its MCP server.

agp mcp

GitHub Action

The same review on every pull request. A severity gate decides what counts, and can fail the job; results upload as SARIF to GitHub code scanning.

workflow step YAML
- uses: agentic-preview/agentic-preview/.github/actions/review@main
  with:
    provider: anthropic
    severity-gate: major
  env:
    ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

Privacy and control

The engine runs on your machine, or in a local Docker or Podman container with agp config --running-mode container.

Code and diffs

Go only to your configured AI provider. With ollama or vllm, they stay on your machine.

Reports, findings, learned preferences

Stay local in ~/.reviewer/.

Your pull request

Nothing is posted unless you click Publish.

Us

agp has no servers. Nothing about your code or reviews is sent to us. Update checks go to GitHub Releases.

Leaving

agp uninstall removes everything it created.

Download

One self-contained binary for macOS, Linux and Windows. No Python needed. The installers verify the binary’s SHA-256 checksum.

curl -fsSL https://raw.githubusercontent.com/agentic-preview/agentic-preview/main/install.sh | bash

Then three commands

$ agp init # checks your setup, says what’s missing
$ agp config provider claude # or copilot, cursor, ollama, anthropic, openai, …
$ agp https://github.com/owner/repo/pull/123

Join us

agp is open source under Apache 2.0, built in the open. Read how it reviews, run it your way, and help it grow.

What you can add

New specialists, rule packs for your stack, and provider and tool integrations.

Contributor quick start
git clone https://github.com/agentic-preview/agentic-preview && cd agentic-preview python -m venv .venv && .venv/bin/pip install -e ".[all]" pytest-xdist

Frequently asked questions

One binary, with the one-line installer. Then agp init checks what you have, tells you what’s missing, and installs the /agp command into GitHub Copilot CLI. agp doctor checks your setup at any time.

copilot (GitHub Copilot CLI), claude (Claude Code CLI), cursor (Cursor CLI), anthropic, openai and azure with an API key, and ollama or vllm for a local model server. The one you configure becomes your default; --provider switches for one run.

Yes. With ollama or vllm, code never leaves your machine.

Only to the AI provider you configure. agp has no servers, reports stay in ~/.reviewer/, and nothing is posted to your pull request unless you click Publish.

Pass a Jira key or URL with --jira PROJ-934 and its goal and acceptance criteria become the checklist the correctness panel verifies the diff against. Without one, the ticket is detected from the branch name or PR title. From the report you can also file findings as Jira issues.

agp findings lists past reviews and reopens a report.

Yes. A GitHub Action runs the same review on every pull request, with a severity gate that can fail the job, and uploads SARIF to GitHub code scanning.

agp update updates, checksum-verified. agp uninstall removes everything agp created.