
Anthropic chosen as example. System prompts read on 10-Oct-2026

flowchart LR A[Gather<br/>the diff] --> B[Start n<br/>sub-agents] B --> S["`Sub-agents report (upto & first) k findings`"] S --> C[Collate<br/>and dedupe] C --> R[Report<br/>x findings] NOTE["'n' (angles), 'k' (cap per angle) & 'x' (cap on final report) are decided upfront based on the effort level"]:::note B -.- NOTE S -.- NOTE R -.- NOTE classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3

Run
git diff @{upstream}...HEAD(orgit diff main...HEAD/git diff HEAD~1if there’s no upstream) to get the unified diff under review. If there are uncommitted changes, or the range diff is empty, also rungit diff HEADand include the working-tree changes in scope — the review often runs before the commit. If a PR number, branch name, or file path was passed as an argument, review that target instead. Treat this diff as the review scope.
flowchart LR F[Start] --> A[A: line by line] F --> B[B: removed behavior] F --> C[C: cross-file] F --> D[D: language traps] F --> E[E: wrappers] F --> G[F: Efficiency] A --> R[Findings] B --> R C --> R D --> R E --> R G --> R
block-beta columns 3 L["Low<br/><br/>0 angles"] M["Medium & high<br/><br/>8 angles"] X[">= Extra-high<br/><br/>10 angles"] style L fill:#dfd,stroke:#0a0 style M fill:#ffd,stroke:#a80 style X fill:#fdd,stroke:#c00
flowchart LR A -.- NOTE NOTE["`'k' (cap per angle) decided upfront based on the effort level. `"]:::note NOTE2["`Medium & High: 6. Extra-high & Max: 8`" ]:::note NOTE3["`Agent can stop after first k are found &/or not report any others it finds`" ]:::note NOTE -.- NOTE2 NOTE2 -.- NOTE3 A[All angles:<br/>up to k each] --> P[Pool] --> D[Merge same defect,<br/>same location, same reason] --> S[Sort by<br/>severity] classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3
findingsis at most ${MAX_FINDINGS} entries ranked most-severe first; each entry hasfile,line,summary,short_summary,failure_scenario, andcategory. If more than ${MAX_FINDINGS} survive, keep the ${MAX_FINDINGS} most severe. If nothing survives verification, call it with an empty array. Do not also print the findings as text.
flowchart LR F[Found<br/>n findings] --> C[Collate<br/>and dedupe] --> K[Keep the most<br/>severe, up to the cap set for effort threshold] --> R[Reported<br/>x findings] NOTE[Even if more than x issues have been found & though the effort to find them is already spent, these additional issues are dropped,<br/>not shown]:::note R -.- NOTE classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3
mindmap
root((Agentic <br/> review))
What information does the agent have? What does it NOT have?
:::step1
What would the agent do well? What would it NOT do well?
:::step2
What agentic review operations would be expensive?
:::step3
Can we help agents do a better job?
:::step4
How would you design your own custom review process? What would it focus on?
:::step5
Are manual reviews needed? If yes, what should the manual review focus on?
:::step6
mindmap
root((Agentic <br/> review))
What information does the agent have? What does it NOT have?
:::focus
What would the agent do well? What would it NOT do well?
What agentic review operations would be expensive?
Can we help agents do a better job?
How would you design your own custom review process? What would it focus on?
Are manual reviews needed? If yes, what should the manual review focus on?
* unless given enough tokens, context & explicit
instructions
** they do allow you to specify
them in a file & will read them if provided
mindmap
root((Agentic <br/> review))
What information does the agent have? What does it NOT have?
What would the agent do well? What would it NOT do well?
:::focus
Is the agent doing things it need not do?
What agentic review operations would be expensive?
Can we help agents do a better job?
How would you design your own custom review process? What would it focus on?
Are manual reviews needed? If yes, what should the manual review focus on?
* unless given enough tokens, context & explicit instructions

flowchart LR
A[Countries<br/>Dropdown] --> |fetched using| B["query"]
C[States<br/>Dropdown] --> |fetched using| D["query"]
A --> |affects| C
NOTE["Query responses are cached"]:::note
D -.- NOTE
B -.- NOTE
classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3
flowchart LR
A[Countries<br/>Dropdown] --> |fetched using| B["query"]
C[States<br/>Dropdown] --> |fetched using| D["query"]
A --> |affects| C
NOTE["Query responses are cached"]:::note
D -.- NOTE
B -.- NOTE
classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3
flowchart TB
A[Application A] --> |uses| B["Platform"]
C[Application B] --> |uses| B
flowchart TB
A[Application A] --> |uses| B["Platform"]
C[Application B] --> |uses| B
Developer: Adds component directly to A
flowchart TB
J[JSON config] --> U[UI]
U --> L[List]
U --> C[Create]
U --> E[Update]
U --> D[Delete]
F[Feature flags]
flowchart TB
J[JSON config] --> U[UI]
U --> L[List]
U --> C[Create]
U --> E[Update]
U --> D[Delete]
F[Feature flags]
mindmap
root((Agentic <br/> review))
What information does the agent have? What does it NOT have?
What would the agent do well? What would it NOT do well?
What agentic review operations would be expensive?
:::focus
Can we help agents do a better job?
How would you design your own custom review process? What would it focus on?
Are manual reviews needed? If yes, what should the manual review focus on?
mindmap
root((Agentic <br/> review))
What information does the agent have? What does it NOT have?
What would the agent do well? What would it NOT do well?
What agentic review operations would be expensive?
Can we help agents do a better job?
:::focus
How would you design your own custom review process? What would it focus on?
Are manual reviews needed? If yes, what should the manual review focus on?
mindmap
root((Agentic <br/> review))
What information does the agent have? What does it NOT have?
What would the agent do well? What would it NOT do well?
What agentic review operations would be expensive?
Can we help agents do a better job?
How would you design your own custom review process? What would it focus on?
:::focus
Are manual reviews needed? If yes, what should the manual review focus on?
sequenceDiagram
box rgb(200,240,200) Scripts
participant O as Script: Orchestrator
participant S1 as Script: diff
participant S2 as Script: determine sub-agents
end
box rgb(250,200,200) Agents
participant A1 as Sub-agent via CLI: Tests
participant A2 as Sub-agent via CLI: Code
end
box rgb(200,240,200) Script
participant S3 as Script: Concatenate
participant S4 as Script: Report Pass/Fail
end
O->>S1: get diff
S1-->>O: diff split by file type
O->>A1: tests diff + checklist
O->>A2: code diff + checklist
A1-->>O: findings
A2-->>O: findings
O->>S3: concatenate
S4-->>O: Pass / Fail
Note over A1,A2: reuses a common prompt,`<br/>`wrapped by ccusage

flowchart LR A[Agent] --> D[Run diff] --> F[Find files] --> C[Apply principles<br/>and checklists] NOTE["One agent does everything"]:::note A -.- NOTE NOTE2["One large checklist"]:::note C -.- NOTE2 classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3 style A fill:#fdd,stroke:#0a0
flowchart TB O[Agent: Orchestrator] --> S[Script: diff] O --> T[Sub-agent: Tests] O --> C[Sub-agent: Code] NOTE["split diff & separate by file type"]:::note S -.- NOTE NOTE2["checklist for tests"]:::note T -.- NOTE2 NOTE3["checklist for code"]:::note C -.- NOTE3 O --> D[Sub-agent: Collate & Report Pass/Fail] NOTE4["template for output"]:::note D -.- NOTE4 classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3 style O fill:#fdd,stroke:#0a0 style S fill:#dfd,stroke:#0a0 style T fill:#fdd,stroke:#0a0 style C fill:#fdd,stroke:#0a0 style D fill:#fdd,stroke:#0a0
sequenceDiagram
box rgb(200,240,200) Scripts
participant O as Script: Orchestrator
participant S1 as Script: diff
participant S2 as Script: determine sub-agents
end
box rgb(250,200,200) Agents
participant A1 as Sub-agent via CLI: Tests
participant A2 as Sub-agent via CLI: Code
end
box rgb(200,240,200) Script
participant S3 as Script: Concatenate
participant S4 as Script: Report Pass/Fail
end
O->>S1: get diff
S1-->>O: diff split by file type
O->>A1: tests diff + checklist
O->>A2: code diff + checklist
A1-->>O: findings
A2-->>O: findings
O->>S3: concatenate
S4-->>O: Pass / Fail
Note over A1,A2: reuses a common prompt,`<br/>`wrapped by ccusage
flowchart TB U[Verbose 'always read' Checklists] -.->|broken into| I["Index-like"] U -.->|& into| S["`Situational checklists (_apply only when a criteria is met_)`"] I -.->|only if unclear| D[Detail document<br/>per item]
flowchart LR C[Claude CLI call] --> P["Proxy (using Jev)"] P -->|simple code| L[Cheap model,<br/>low effort] P -->|complex code| H[Strong model,<br/>high effort]
mindmap
root((Agentic <br/> review))
What information does the agent have? What does it NOT have?
What would the agent do well? What would it NOT do well?
What agentic review operations would be expensive?
Can we help agents do a better job?
How would you design your own custom review process? What would it focus on?
Are manual reviews still needed? If yes, what should the manual review focus on?
:::focus
flowchart LR
A[Agent findings] --> D[One document]
M[Manual findings] --> D
D --> Q{Automatable?}
Q -->|one file| E[ESLint rule]
Q -->|several files| S[Script]
Q -->|no| C[Checklist item]
NOTE["Each step down costs more AI or human judgment"]:::note
NOTE -.- C
classDef note fill:#ffc,stroke:#aa0,stroke-dasharray:3