Skip to main content
When Blame completes a code review, it produces two synchronized deliverables on GitHub:
  1. The Executive PR Summary Comment: A modular, top-level report containing high-level architectural assessments, calibrated confidence ratings, sequence diagrams, and file breakdowns.
  2. Contextual Inline Review Comments: Line-anchored code feedback with exact replacement diffs (suggestion blocks) and hand-off prompts for coding agents.

High-Level Review Pipeline


Anatomy of the PR Summary Comment

The top-level summary comment provides engineering leads and reviewers with an immediate snapshot of code quality and risk. Every section can be enabled, disabled, or set to collapsible in Repository Settings.

1. Custom Comment Header

An optional branded or contextual header (up to 120 characters) defined by your workspace team.

2. Executive Summary (pr_summary)

A structured evaluation broken into five core sections:
  • Executive Overview: High-level problem statement and architectural approach.
  • Architectural & Design Evaluation: Assessment of coupling, modularity, and trade-offs.
  • Edge Cases & Boundary Analysis: Defensive programming invariants and potential runtime pitfalls.
  • Security & Reliability Audit: Scrutiny of data validation, auth boundaries, and failure isolation.
  • Recommended Test Coverage: Bulleted test cases needed for full confidence.

3. Calibrated Confidence Score (confidence_score)

A score from 1/5 to 5/5 accompanied by an action directive and detailed justification:

4. Important Files Changed (issue_table)

A scannable Markdown table summarizing the changes and architectural observations per modified file:

5. Mermaid Sequence Diagram (sequence_diagram)

When non-trivial multi-service interactions or async pipelines are modified, Blame automatically renders an interactive Mermaid sequence diagram visualizing the runtime data flow.

6. Review Metadata & Commit Breadcrumb

Tracks review iterations and provides quick re-trigger actions:

Anatomy of Inline Comments

Inline comments are attached directly to modified code lines within active diff hunks. Each inline comment is comprised of four elements:

1. Technical Explanation & Severity

Explains the edge case, security vulnerability, or architectural regression with full context and rationale.
  • Severities: Critical, High, Medium, Low.
  • Categories: Bug, Security, Performance, Architecture, Maintainability, Testing, Readability.

2. 1-Click Interactive Suggestion (suggestion)

Blame emits a formatted suggestion block matching the exact indentation and line coordinates of the file. Team members can apply the fix immediately by clicking Apply suggestion on GitHub.

3. “Fix with your Agent” Handoff Block

When enabled, every inline finding includes a collapsed <details> block with a ready-to-run agentPrompt:
Fix with Cursor • Fix with Claude Code • Fix with Codex

4. Duplicate Comment Suppression

Blame tracks previous review comments on the PR. If a bug was already flagged in a prior review iteration and has not yet been resolved, Blame suppresses duplicate comments to eliminate notification fatigue.

Diff Boundary Handling & Fallbacks

GitHub’s review API rejects comments targeting lines outside the pull request’s active diff hunks. Blame handles this gracefully:
  • Inside Active Diff: Placed directly as an inline comment on the line or multi-line range (start_line to line).
  • Outside Active Diff: If Blame discovers an issue in an unchanged surrounding function or upstream file, it routes the finding into the Additional Findings section of the top-level PR summary comment.