Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to review pull requests written by coding agents

A pull request from a coding agent usually looks better than one from a tired human. The description is complete, the code is formatted, the tests pass, and every changed line has a reason. That polish is exactly what makes it hard to review. The usual signals that something is off (a messy diff, a vague description, a missing test) aren't there. The mistakes agents make are different from the…

Reviewing pull requests from coding agents presents unique challenges compared to those from human contributors. The agent-written PRs appear more polished and complete, but this polish can also hide potential issues. Instead of relying on obvious red flags like messy diffs, vague descriptions, or missing tests, reviewers must adopt a different approach.

First, focus on the diff itself. Read it carefully to understand what has changed, then compare it to the agent's description. Discrepancies between the two are where problems may lie. For instance, a refactored retry logic that also changes the timeout default or a new field that makes an existing one optional may not be immediately apparent from the diff alone.

Next, identify all callers of the changed functions, types, or exported values. An agent might only search for a subset of these, leading to missed dependencies. Use tools like your editor's "find references" feature or grep to locate every occurrence. Be cautious if a tool reports no callers, as this usually means the result is unknown, not that the code is safe.

Consider the team's established practices and policies. Agents may not be aware of internal rules, such as database access through a repository layer or prompts stored in separate files. Check whether the PR adheres to these team-specific guidelines or if it deviates towards what is commonly found online.

Watch out for scope creep. Agents often aim to tidy up by making minor changes to unrelated files. Each of these small adjustments should be addressed separately. Request that the agent splits out these changes or reverts them if unnecessary.

Review the tests thoroughly. Agents are skilled at making tests pass, sometimes at the expense of test quality. Examine test diffs closely for any loosened assertions, new skips, or mock behaviors that no longer reflect the intended functionality. Remember that a passing PR with edited tests does not guarantee the same level of assurance as a PR where tests were written correctly from the outset.

Finally, examine the error handling. Agents tend to focus on the expected, happy path, often overlooking potential failure branches. Investigate how the code handles errors, swallowed errors, catch statements that log and continue, or fallback mechanisms that return default values. These paths are often untested and can lead to unexpected behavior.

To streamline this process, consider writing a clear checklist or decision documentation (e.g., CLAUDE.md, .cursor/rules, or AGENTS.md) that agents can reference before opening a PR. Automating tasks like finding all callers of changed code and documenting team decisions can also significantly reduce the workload on reviewers. Tools like Tently AI code reviewer for GitHub can help by checking PRs against dependencies, team decisions, and learning from past PRs, review threads, and documentation.

Implementing these practices can greatly improve the quality of pull requests from coding agents and ensure a smoother review process.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

React Email Tests Need a Fixture Factory

Email verification is one of those React features that looks simple in the browser and becomes messy in CI. A form submits, a backend sends a message, and the test waits for a link.

  • Fixtures treat email verification as a test fixture with lifecycle
  • Shared inbox causes flakiness when tests run concurrently
  • Fixture factory assigns delivery lease to each verification worker

Android on iOS, Web & Desktop Efficiently and for Free

We are not the first to bring Android to iOS. Earlier projects brought Android's runtime along with the application. Dalvik was built for Android, including a just-in-time compiler (JIT) that ordinary…

  • Codename One enables single codebase for iOS, Android, desktop, web apps.
  • Framework optimizes performance by compiling Android apps into native iOS code.
  • Compatibility layer allows Android code integration into iOS, desktop, web apps.

The Windy Truth: Why Lake Erie Taught Me to Stop Trusting “Perfect Weather”

Weather is always on my mind when I’m sailing Lake Erie. It’s not a lake — it’s a freshwater inland sea with a personality disorder.

  • Lake Erie is a volatile freshwater lake influenced by El Niño.
  • Weather apps and radar forecasts are outdated for Lake Erie's conditions.
  • d3kOS integrates Windy for real-time, comprehensive marine weather data.

More from Friday 16 October →