Using LLMs for Code Review: A Practical Cheat Sheet
LLM Code Review Cheat Sheet With a top model like Argon in high thinking mode, you can instruct it to perform specific logic checks that eliminate the main tedium of diff checking: Control Flow: Check logic control flow across relevant modules, focusing on the most recent changes made. Regressions: Check for any code that may have been broken by the recent changes. Compatibility: Check for any existing code that is incompatible with the recent changes and needs to be updated. Swallowed Exceptions: Check for exceptions or errors trapped in nested scopes that do not bubble up properly (e.g., a catch block that suppresses an error). Object Contracts: Check for objects passed across the target call hierarchy that are not forwarded properly, and flag code that needs updating to handle the latest object structure. Async Execution: Check for any unawaited async methods. Timing & Initialization: Check for timing errors—especially code that needs to wait or...