> ## 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.
    </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 referenced location in the current workspace and continue editing.
    </Step>
  </Steps>

  <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>
