open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

Add a --dry-run Option to Preview Review Execution

Open HereIsMuhammad opened this issue 4 months ago • 1 comments

Problem Statement

I'm always frustrated when I want to verify how Open Code Review will process a repository before starting an actual review.

Currently, users may need to run a review to discover which files, rules, provider, or model configuration will be used. For large repositories or CI/CD environments, this can result in unnecessary LLM usage and costs when the configuration is not what the user expected.

A dry-run mode would make it easier to validate the review configuration before executing the actual review.

full review.

Proposed Solution

I'd like to be able to run a command such as:

ocr review --dry-run

The command could display a summary of the planned review without sending requests to the LLM or publishing review results.

For example, the output could include:

Files that will be included in the review Files that will be excluded Review rules that will be applied Active LLM provider and model Review execution mode Other relevant configuration details

The command should exit after displaying this information without performing the actual LLM-based review.

Alternatives Considered

Users can manually inspect configuration files and repository changes before running a review, but this does not provide a single view of how Open Code Review will actually interpret the configuration.

A dry-run mode would provide a more convenient and reliable way to validate the review plan.

Affected Area

CLI / Commands, Configuration

Additional Context

This feature could be particularly useful for large repositories and CI/CD pipelines, where users may want to verify the review scope and configuration before incurring LLM usage or running a full review.

HereIsMuhammad avatar Jul 29 '26 18:07 HereIsMuhammad

How is this different from the preview flag thats already present for the tool?

Sadiq0123 avatar Jul 29 '26 22:07 Sadiq0123

Thanks for pointing this out. I wasn't aware that the existing "--preview" flag already covered this use case. I'll close this issue to avoid duplicating existing functionality.

HereIsMuhammad avatar Jul 30 '26 07:07 HereIsMuhammad