# Code review — Detent

> A pull request where the agent answers your comments with a change you can apply in one press.

Canonical: https://detentui.com/blocks/code-review
Last updated: 2026-11-10

## About

A pull request where the agent answers your comments with a change you can apply in one press.

## Details

- A comment sits on the line it’s about. The agent answers in the thread, a word at a time, with the reasoning first.
- Its suggested change is shown in full before you take it, and its space is held while it writes, so nothing jumps when it appears.
- Apply it and the line lands in the diff as a marked edit with one sweep of green; the lines below glide down to make room.
- The thread resolves to one line you can reopen, and the file counts as viewed.
- A new commit means every check runs again, one segment at a time, and the review turns from changes requested to approved.
- The files already viewed sit folded above the one being discussed, and the activity only ever grows at the bottom, in room held for it, so nothing on the page moves.
- Below 768px the file list folds away; below 1152px the summary moves under the diff.

## Install (Pro required)

```bash
npx shadcn add @detent-pro/code-review
```

## Related
- [All blocks](https://detentui.com/blocks)
- [Pro](https://detentui.com/pro)
