> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate a PR summary

> Qodo generates a structured pull request summary to help reviewers quickly understand the scope and impact of a change.

export const AzureIcon = () => <svg className="azure-icon" viewBox="0 0 18 18" width="12" height="12" style={{
  display: "inline",
  verticalAlign: "middle",
  flexShrink: 0,
  background: "transparent"
}}>
    <defs>
      <linearGradient id="azure-gradient" x1="9" y1="16.97" x2="9" y2="1.03" gradientUnits="userSpaceOnUse">
        <stop offset="0" stopColor="currentColor" />
        <stop offset="0.16" stopColor="currentColor" />
        <stop offset="0.53" stopColor="currentColor" />
        <stop offset="0.82" stopColor="currentColor" />
        <stop offset="1" stopColor="currentColor" />
      </linearGradient>
    </defs>
    <path d="M17,4v9.74l-4,3.28-6.2-2.26V17L3.29,12.41l10.23.8V4.44Zm-3.41.49L7.85,1V3.29L2.58,4.84,1,6.87v4.61l2.26,1V6.57Z" fill="url(#azure-gradient)" />
  </svg>;

Qodo reviews the full codebase, not just the diff, to generate a structured summary that gives reviewers meaningful context before they look at a single line of code. The summary captures the intent of the change, estimates how long the review will take, surfaces high-level suggestions, and diagrams the architecture where relevant.

<Frame>
  <img src="https://mintcdn.com/qodo/2uYzhT9AXenGwYeI/images/code-review/pr-summary-comment.png?fit=max&auto=format&n=2uYzhT9AXenGwYeI&q=85&s=2853f6e6221e53a744f0b3b744eb2346" alt="Generated PR summary comment showing tags, the Walkthroughs section, and File Changes grouped by category" width="1339" height="1174" data-path="images/code-review/pr-summary-comment.png" />
</Frame>

## What the summary includes

Qodo tags each PR and estimates how long the review will take, so reviewers can prioritize and plan before opening a single file. Tags include: Bug fix, Tests, Enhancement, Documentation, and Configuration changes.

The **Walkthroughs** section breaks down the change in detail:

* **Description:** A plain-language breakdown of what changed and why.
* **Diagram:** An architecture diagram showing the flow and connections introduced by the change.
* **High-Level Assessment:** Suggestions and alternatives for the author and reviewer to consider before or during review.

<Accordion title="Bitbucket Data Center: enable diagram support">
  On Bitbucket Data Center, Qodo needs to upload the diagram as a PNG image, which requires a user with write access to the repository. Without this, Qodo cannot attach the image and omits the diagram section silently, with no error shown in the pull request.

  To enable diagrams, create a bot user with `REPO_WRITE` permissions and add the following to your `.secrets.toml`:

  ```toml theme={null}
  [bitbucket_server]
  USERNAME="<BOT USERNAME>"
  PASSWORD="<BOT PASSWORD>"
  ```

  Do not commit `.secrets.toml` to version control.

  Bitbucket Server instances earlier than April 2020 may already have the necessary permissions in place and may not require this step. For more information, see the [Atlassian community discussion](https://community.atlassian.com/forums/Bitbucket-questions/Upload-attachment-to-bitbucket-server-with-REST-API/qaq-p/1351758).
</Accordion>

**File Changes** groups modified files by category for a cleaner overview of the change surface.

## How to generate a PR summary

### Manually

Comment on the pull request:

`/agentic_describe`

Qodo acknowledges the request and posts the generated summary directly in the pull request.

### Automatically

Qodo generates a summary automatically when a pull request is opened or updated. To adjust this behavior, configure it using `.pr_agent.toml`. For details, see [Configuration fundamentals](/install-and-configure/configuration-overview).

#### Configure where the summary is posted

By default, Qodo posts the PR summary as a standalone comment and does not modify the pull request description. To publish it in the pull request description instead, or let Qodo choose dynamically, see [Comment location](/code-review/comment-location).

#### Publish the review time estimate as a native label/tag

<div style={{ display: "flex", alignItems: "center", gap: "6px" }}>
  <Badge color="outline-provider" size="sm" shape="pill" icon="github">GitHub</Badge>
  <Badge color="outline-provider" size="sm" shape="pill" icon="gitlab">GitLab</Badge>
  <Badge color="outline-provider" size="sm" shape="pill"><AzureIcon />Azure DevOps</Badge>
</div>

As pull request volume grows, seeing the review effort directly in your Git provider's pull request list makes it easier to compare and triage which reviews to tackle first, without opening each one.

<Frame>
  <img src="https://mintcdn.com/qodo/LBjPBRUZYj2aTKvC/images/code-review/pr-list-review-time-estimate-labels.png?fit=max&auto=format&n=LBjPBRUZYj2aTKvC&q=85&s=c7afc43072a58456a676e59be5af115d" alt="GitHub pull request list showing review time estimate labels such as &#x22;Less than 10 minutes&#x22; and &#x22;10-20 Minutes&#x22; next to each pull request title" width="2934" height="930" data-path="images/code-review/pr-list-review-time-estimate-labels.png" />
</Frame>

Enable **Publish review time estimate label** in the Qodo portal (**Configurations** > **Code review** tab, under **PR Summary**) to have Qodo apply the review time estimate as a native pull request tag (Azure DevOps) or label (GitHub, GitLab), in addition to the estimate already shown inside the summary. It's visible on the pull request and in the pull request list (for example, "10-20 Minutes"), without opening the summary. Disabled by default.

See [Configure Qodo using the portal](/install-and-configure/configuration-overview/portal-configuration#code-review).

## Next steps

* [Configuration fundamentals](/install-and-configure/configuration-overview): Customize how and when summaries are generated.
* [Configuration and command reference](/install-and-configure/configuration-overview/configuration-and-command-reference): All configuration options and PR commands.
* [Comment anatomy](/code-review/comment-anatomy): Understand how Qodo structures findings in pull requests.
