{"meta":{"title":"Requesting a code review with GitHub Copilot CLI","intro":"Use Copilot CLI to review your code changes directly from the terminal.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/how-tos","title":"How-tos"},{"href":"/en/copilot/how-tos/copilot-cli","title":"Copilot CLI"},{"href":"/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents","title":"Use Copilot CLI agents"},{"href":"/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/agentic-code-review","title":"Agentic code review"}],"documentType":"article"},"body":"# Requesting a code review with GitHub Copilot CLI\n\nUse Copilot CLI to review your code changes directly from the terminal.\n\n## About agentic code review\n\nYou can use the `/review` slash command to have Copilot analyze code changes without leaving the CLI. This lets you get quick feedback on your changes prior to committing.\n\n1. Type `/review` and optionally specify a prompt, path, or file pattern to narrow the review scope, then press <kbd>Enter</kbd>.\n2. If Copilot proposes running a command (for example, to inspect a diff or verify a file), review the command, then use the arrow keys to choose an option and press <kbd>Enter</kbd>.\n   * Select **Yes** to run the command.\n   * Select **No** to skip the command and tell Copilot what to do differently.\n3. Read the feedback that Copilot provides about your changes and apply any suggested improvements in your code editor.\n\n## Further reading\n\n* [Automating tasks with Copilot CLI and GitHub Actions](/en/copilot/how-tos/copilot-cli/automate-with-actions)\n* [Adding custom instructions for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/add-custom-instructions)"}