Software Engineering

Diff analysis and test scaffolding

Codex CLI is used from the command line to analyze diffs, generate test scaffolding for uncovered paths, and batch-review multiple files from a specific perspective.

Why the human is still essential here

The engineer still determines which risks are real, which tests are worth keeping, and how the final implementation and review outcome should be handled.

How people use this

CLI diff risk scan

AI reviews a git diff from the terminal and produces a focused list of potentially breaking changes, regression hotspots, and follow-up checks.

Codex CLI / Claude Code

Generated test skeletons

AI creates starter unit or integration tests for newly added branches and uncovered paths so engineers can quickly refine the assertions and fixtures.

Codex CLI / GitHub Copilot

Batch file review pass

AI applies the same review lens across many files at once, such as checking error handling, logging consistency, or API contract usage from the command line.

Codex CLI / Aider

Related Prompts (4)

Community stories (1)

Medium
6 min read

How I Use AI in My Code Review and PR Workflow Right Now

Not the idealized version. The actual one.

I lead a distributed engineering team at Kaz Software. We ship across multiple projects simultaneously, which means PR queues pile up fast. Two years ago, every review was entirely human. Today, roughly 60% of the first-pass review work is handled by AI before a human engineer ever opens the diff.


This is not a post about what AI could do for your review workflow. This is a walkthrough of what I actually do, the tools I rely on, and where I still refuse to let AI make the call.


Three tools do almost all the work:


GitHub Copilot handles in-editor, inline review and the PR summary layer directly inside GitHub.


Claude Code handles deep architectural review, spec alignment checks, and the pre-commit audit that I run before any significant PR goes up.


Codex CLI handles the command-line tasks: automated diff analysis, generating test scaffolding for uncovered paths, and batch processing when I need to review multiple files with a specific lens.

NF
Nur FaraziEngineering Team Lead at Kaz Software
Apr 4, 2026