The application discloses a
code review method and related equipment, and relates to the technical field of
software development. The method comprises the following steps: if a review triggering event for target code is detected, obtaining context information of the target code; based on the context information, calling a preset large
language model to perform primary
code review on the target code, and generating a primary review result; if the primary review result meets a preset condition, obtaining
user feedback information for the primary review result; based on the context information, the primary review result and the
user feedback information, calling the preset large
language model to perform secondary
code review on the target code, and generating a target review result. The application introduces a large
language model primary review based on context and a secondary review mechanism combined with
user feedback in the code
review process, realizes the
automation and iterative optimization of code review, reduces the dependence on manual work, improves the review efficiency, and improves the accuracy and reliability of the review result.