> ## Documentation Index
> Fetch the complete documentation index at: https://agent.minimax.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Review

> Use the built-in Review command to inspect local code changes.

<div className="code-docs">
  MiniMax Code includes a Code Review command for reviewing local changes in the current workspace. The Agent understands the diff and checks for potential issues across correctness, security, and maintainability.

  ## When to Use It

  * Run an automated first pass before submitting code
  * Check whether local diffs contain obvious correctness issues
  * Focus on security, compatibility, maintainability, or boundary cases
  * Let a separate session handle review to keep the current development task focused

  ## How to Use It

  <Steps>
    <Step title="Prepare local changes">
      Make code changes in the workspace so the Changes panel or Git diff has something to review.
    </Step>

    <Step title="Run the Review command">
      Use the built-in Code Review command, or ask MiniMax Code to review the current local changes. You can review all uncommitted changes, or only the changes created by the Agent in the previous turn.
    </Step>

    <Step title="Add review criteria">
      Add your own focus areas, such as security, performance, compatibility, test coverage, or risks in a specific module.
    </Step>

    <Step title="Handle findings">
      Findings are linked to specific code lines when possible. Open the original file and continue editing. Files that look correct can be marked as viewed.
    </Step>
  </Steps>

  ## Review and Filter Changes

  Code Review supports switching between different Diff scopes:

  * All uncommitted changes
  * Changes created by the Agent in the previous turn
  * Viewed and unviewed files

  Diff display preferences are preserved across projects and tasks, so you do not need to adjust them repeatedly.

  <Tip>
    Code Review is useful as an automated first pass before submission. Critical changes should still be validated with tests and human judgment.
  </Tip>
</div>
