🤖 The Modern AI Developer · Modern Code Review

Which Code Reviews Can AI Do? A Capability Quadrant

Hand the mechanically decidable to AI, keep the context-dependent for yourself

一句话先懂 · TL;DR

Split review work with one line: hand mechanically decidable checks to AI and keep context-dependent judgment calls for humans, with a practical quadrant.

One Line Splits Tasks in Two

The most useful dividing line for deciding whether to hand a review task to AI is: is it mechanically decidable, or does it need contextual judgment?

🔆Like an exam: multiple-choice has a standard answer the machine grades in a second; an essay needs the prompt's intent and writing flair, so a teacher must read it. AI is good at the former; the latter still needs you.

Mechanically decidable = there's a clear rule and you can conclude without context; needs contextual judgment = you must understand the business goal and weigh trade-offs to make a call.

Work Suited to Handing the AI

Any check that's rule-clear, repetitive, and doesn't require understanding the business is fast and stable to hand to AI (or automated tools): formatting and layout, obvious typos, whether a null check is missing, whether doc comments are absent, common security anti-patterns.

💡These are tiring and easy to miss for a human—exactly AI's home turf: it doesn't tire and won't skip line 200. (Detecting SQL injection depends on context far more than "unused variable" does, so AI/tool results still need a human to double-check.)
适合 AI 的:
- 这里的变量声明了却没用
- 这个函数缺返回值类型标注
- 这个除法没防 0
- 这段拼 SQL 有注入风险

Work You Must Shoulder Yourself

Any question that asks "is this design good for the business" can only take AI's answer as reference: whether to split into microservices, whether this abstraction is premature, whether this change breaks a downstream team's dependency, whether this product logic matches the real requirement.

These all require the context in your head: business goals, historical baggage, team understandings. AI can't see these—it can only guess from the text you give it.

⚠️Don't outsource judgments like architectural trade-offs and business correctness wholesale to AI—it lacks the context you hold, and the one who makes the final call must be you.

自测 · 学完检查一下

想真正动手做题、记进度、攒连胜?到互动课里练。

When dividing up review work, what's the core dividing line this lesson uses to classify?

答案:Mechanically decidable vs. needs contextual judgment

The core dividing line is whether a task "has a clear rule and is mechanically decidable" or "needs weighing in context."

Which task is best suited to hand to AI for automatic review?

答案:Checking for variables that are declared but never used

Unused variables are a rule-clear, mechanically decidable check—just right for AI; the other three all need business and architectural context.

Which task should you decide yourself rather than outsource wholesale to AI?

答案:Whether this architectural change breaks downstream teams' dependencies

Downstream impact must be judged with team-collaboration and business context the AI lacks; the other three are mechanically decidable checks suited to AI.

Judge: "whether to split into microservices" is hard to hand to AI mainly because it needs business goals, historical baggage, and other context the AI can't see.

答案:Correct

Architectural trade-offs depend on lots of off-scene context; the AI can only guess from the text you give, so such judgments rest with humans.

Judge: a check like "does this SQL string have an obvious injection anti-pattern," with rules to follow, is mechanically decidable and suited to hand to AI.

答案:Correct

Common security anti-patterns have clear rules, are mechanically decidable, and are exactly the batch-stable checks AI is good at.

Judgments like business intent and architectural trade-offs are hard to hand to AI fundamentally because the AI lacks the ____ you hold in your head (a term for the background of a situation).

答案:context

The AI can't see context like business goals, historical baggage, and team understandings—it can only guess from the text you give, so such judgments must rest with humans.

想边练边学,而不只是读?

到互动课里答题、记进度、攒连胜——游客即可试学,无需注册。

进入互动课程 →

Learn something new — don't miss updates

New courses, features and learning tips. Occasional emails, unsubscribe anytime.