跳到正文
北京时间
原文
Linear:Now·· 2026-05-28精选AI 评分60

Linear 发布 Diffs,主打快速聚焦的代码评审

Code review should be fast

AI 导读

Linear 推出代码评审产品 Diffs,今日起向所有 Linear 套餐开放,设置步骤见 Changelog。评审在 Linear 内打开近乎即时,并附带产生变更的 issue、项目和客户信号;Guided reviews 会按工作思路把大 diff 分成章节,先展示变更核心再讲后续影响,结构性 diff 高亮会剥离与程序行为无关的格式改动,官方称 2,000 行的 PR 可在一次阅读中看清。

推荐理由

原文阐述了 Diffs 应对大型 PR 与智能体审查积压的具体设计,读者可对照自身代码评审流程取舍。

正文 · 原文

Why we built Diffs

When we started Linear, we set out to improve the experience of building software, which had been full of friction for too long. We obsessed over making the core workflow feel fast, fluid, and enjoyable to use.

Code review has stayed painfully slow while everything else sped up. Growing PR volumes from coding agents are putting further strain on an already creaking process. So much so that the speed gained from using agents gets swallowed in review.

Diffs is designed to keep code review fast without sacrificing the rigour of the work.

We approached Diffs with a short list of beliefs about what review should be:

  • Fast. Reviews should open near-instantly
  • Focused. Reviews should show what matters and strip out the noise
  • In context. Code should sit next to the issue, project, and customer signal behind the change

To begin with, we’ve focused where the friction was loudest.

Knowing what to review first

Review requests get buried in your email inbox and the queue offers no guidance on what is urgent, because every PR in the list looks roughly the same. The requester shouldn’t have to spam your Slack DMs to get your attention.

Reviews sit inside Linear next to the rest of your work, where priority is visible because everything else competing for your attention is right there too. Each Diff is attached to the issue and project that produced it, so you can see when one is blocking something critical and weigh it against what else is on your plate.

UI showing the Reviews tab in Linear

Getting through a huge diff

Large pull requests are usually reviewed in whatever order the filesystem produced the files, with formatting churn and refactoring noise mixed into the substantive edits. Reviewer attention runs out before the diff does, and the rest gets either skimmed or rubber-stamped. Stacked diffs emerged as a workaround, but it’s a lot of overhead to compensate for tools that can’t handle a large diff.

Guided reviews in Linear break the diff into chapters that follow the order the work was reasoned through. It shows you the core of the change first, then walks you through the consequences, with auxiliary changes and glue code kept separate. A 2,000-line PR becomes legible in a single sitting.

UI showing Guided Reviews in Linear

Structural diff highlighting strips the formatting changes that have nothing to do with what the program does, so what is left on the page is the actual change rather than the noise around it.

UI showing structural diff highlighting in Linear

Piecing together why it matters

A reviewer’s main job is to figure out why the change should exist at all, rather than just checking if the code is correct. This is a slower process when context is spread across multiple tools and tabs.

Because reviews live inside Linear, the issue, project, and customer signal that inspired the change are right there alongside them. There’s no chase across tools, because Linear has already assembled the picture and structured it for you.

Linear UI showing a diff in product context

The new shape of review

Agents have absorbed most of the line-by-line correctness work that used to take up a lot of time. What’s increasingly left is the layer above the code itself, which is whether the change fits the architectural system the team has and solves the problem the customer actually reported. Diffs removes the friction around reviews, giving the reviewer the time and attention to do that judgement work.

Linear Diffs is the latest step in a workspace Linear has been building for years, where every stage of shipping a product happens in the same place. There’s more of the workflow to come.

Available on all Linear plans starting today, see the Changelog for setup steps.

来源:Linear:Now · linear.app