Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt

Use this file to discover all available pages before exploring further.

|

Overview

Change Stack takes any pull request and reorganizes it into a small number of independent change cohorts — logical groupings of related work — each broken into ordered layers that reflect the natural reading order of the change. Every layer anchors to specific line ranges in the diff, each with its own summary. Reviewers open Change Stack from the Review Change Stack → button that CodeRabbit posts in the comment. Inside, they navigate cohorts and layers with the keyboard, drop inline comments against specific ranges, and submit a GitHub review without leaving the Change Stack tab.
Change Stack is currently available on GitHub only. Change Stack is in early access and is available to all users during launch. It will be part of the Pro+ plan going forward.

Why Change Stack

AI-assisted development has made pull requests larger and more frequent, a single AI-authored change can touch dozens of files across multiple layers of a codebase. GitHub’s or IDE’s default diff view presents those files alphabetically, without reflecting the logical dependencies between them. Change Stack reorganizes the diff into cohorts and layers that reflect the structure of the change:
  • Cohorts group related files and hunks that belong together conceptually.
  • Layers order those groups so foundational changes (data shapes, contracts) come before the code that depends on them (consumers, call sites, tests).
  • Range summaries explain each contiguous block of changed lines in plain language.
  • Diagrams are generated inline for layers where a visual earns its place — sequence diagrams for new call flows, state machines for lifecycle changes, ERDs for data model updates. Layers that do not warrant a diagram do not get one.

Opening Change Stack

Every PR review comment from CodeRabbit includes a Review Change Stack → button above the standard walkthrough. Clicking it opens the PR in the Change Stack interface.
CodeRabbit PR comment showing the Review Change Stack button alongside Walkthrough and Pre-merge checks sections
Change Stack is opt-in per reviewer. Teammates who prefer the default GitHub review experience can ignore the button — nothing about the PR workflow changes for them.

The three-panel layout

Change Stack uses a fixed three-panel layout tuned for rapid navigation:
PanelContents
LeftCohort list, and layers within the selected cohort. Each layer shows its file count and comment count.
CenterThe unified or split diff for the active layer, scoped to the relevant line ranges.
RightPer-range AI summaries for the visible diff, plus a Comments tab for inline discussion.

Keyboard navigation

Change Stack is designed to be driven from the keyboard:
ShortcutAction
JAdvance to the next layer
KGo back to the previous layer
ZToggle focus mode (hides the side panels)
Reviewers can also switch between unified and split diff views, toggle line wrapping, and step through the review order using the arrow controls in the diff header.

Reviewing in Change Stack

Change Stack supports the same review primitives as GitHub — marking files as viewed, leaving inline comments, accumulating a draft review, and submitting an approval, request-changes, or comment verdict. Reviews post back to GitHub natively, so comments and approvals land exactly where your team expects them.
Submit review dialog showing Comment selected, with Approve and Request changes options, and a Submit review button

Inline comments

Every range summary in the right panel has an Add block comment action that opens a comment against the exact line range covered by the summary. Comments accumulate into a pending review, which you submit from the Submit review menu in the top-right corner.

Files viewed

Marking a file as viewed in Change Stack syncs with GitHub’s Viewed state on the same file, so your progress is visible to other reviewers and persists if you switch back to the GitHub UI.

Snapshots and stale-state protection

Every time the PR author pushes a new commit, Change Stack generates a new snapshot of the change and retains previous ones. A snapshot dropdown in the header lets reviewers switch between snapshots to answer the question “what changed since I last looked?” — even across rebases and force-pushes.
While a new snapshot is being generated, Change Stack disables commenting on the current view and shows a banner until the new snapshot is ready. This prevents reviewers from leaving comments against a diff that no longer reflects the tip of the branch.

Access and permissions

Change Stack authenticates with a repo-scoped GitHub OAuth grant and preserves your return path through SSO, so links work end-to-end even on organizations with enforced SSO. Public-link sharing is supported within the limits of the underlying GitHub repository’s access controls — a reviewer without access to the repo will not be able to open the Change Stack.

What’s next

PR Walkthroughs

Learn how CodeRabbit’s walkthrough comment structures every review and feeds the layer summaries you see in Change Stack.

PR Summaries

See how CodeRabbit generates the plain-language summary that appears in the PR description alongside the Review Change Stack button.

Pre-Merge Checks

Enforce review requirements — linked issues, title conventions, and custom checks — before a PR can merge.