A code suggestion is an AI-proposed modification to source code, usually offered during pull-request review to address an issue or improve implementation. It can give an author a head start on reviewer feedback or help a reviewer express a change that is difficult to articulate. section 13.3
Use code suggestions as an assistive review step:
- Comment on selected lines with a requested refactoring, then inspect and accept the generated change. section 13.3
- Run an improvement command to propose maintainability improvements or overlooked best practices. section 13.3
- Use extended analysis for larger pull requests so suggestions remain proportionate to segmented changes. section 13.3
- Let humans validate every suggestion and make the final decision, because AI can miss context and nuance. section 13.6
From review comment to change
A reviewer selects code and describes the desired refactoring with What The Diff’s /wtd command. The tool proposes a pull-request change that the author can inspect and accept with one click. The author may instead use Qodo’s /improve command to perform a broader first review. section 13.3
Figure 13.3 What The Diff generated suggestion to register selected code as a singleton
Inspect the generated suggestion to register selected code as a singleton. section 13.3
Figure 13.4 Output of Qodo /improve command with the --extended flag
Inspect extended improvement output for a larger pull request. section 13.3

