|  | 
|  | 1 | +--- | 
|  | 2 | +title: "Staging Review for Optimizations" | 
|  | 3 | +description: "Review and manage optimizations before creating pull requests with staging mode" | 
|  | 4 | +icon: "layer-group" | 
|  | 5 | +sidebarTitle: "Review Optimizations" | 
|  | 6 | +keywords: | 
|  | 7 | +  [ | 
|  | 8 | +    "staging review", | 
|  | 9 | +    "optimization preview", | 
|  | 10 | +    "pro feature", | 
|  | 11 | +    "batch review", | 
|  | 12 | +    "pull request management", | 
|  | 13 | +  ] | 
|  | 14 | +--- | 
|  | 15 | + | 
|  | 16 | +# Staging Review for Optimizations | 
|  | 17 | + | 
|  | 18 | +<Note> | 
|  | 19 | +  This is a Pro feature available exclusively to Codeflash Pro users. [Upgrade to | 
|  | 20 | +  Pro](https://app.codeflash.ai/billing) to access it. | 
|  | 21 | +</Note> | 
|  | 22 | +Staging Review allows you to preview and evaluate all optimizations before creating pull requests. This | 
|  | 23 | +feature provides a centralized review interface where you can examine proposed changes and selectively | 
|  | 24 | +create pull requests for approved optimizations. | 
|  | 25 | + | 
|  | 26 | +## Benefits of Staging Review | 
|  | 27 | + | 
|  | 28 | +- **Preview without PRs:** Review all optimization suggestions without cluttering your repository with multiple pull requests | 
|  | 29 | +- **Batch review:** Examine all optimizations in one centralized location | 
|  | 30 | +- **Selective PR creation:** Choose which optimizations to convert into pull requests | 
|  | 31 | +- **Reduced noise:** Keep your repository's PR list clean while evaluating changes | 
|  | 32 | + | 
|  | 33 | +## Using Staging Review | 
|  | 34 | + | 
|  | 35 | +To optimize your codebase with staging review enabled, run: | 
|  | 36 | + | 
|  | 37 | +```bash | 
|  | 38 | +codeflash --all --staging-review | 
|  | 39 | +``` | 
|  | 40 | + | 
|  | 41 | +This command will: | 
|  | 42 | + | 
|  | 43 | + | 
|  | 44 | +1. Start to optimize your project, and if it finds any optimizations, it will save them to [Review Optimizations Page](https://app.codeflash.ai/review-optimizations) instead of creating PRs immediately | 
|  | 45 | + | 
|  | 46 | +    | 
|  | 47 | + | 
|  | 48 | +2. Provide you with a staging interface to review all proposed changes | 
|  | 49 | + | 
|  | 50 | +    | 
|  | 51 | + | 
|  | 52 | +## Managing Staged Optimizations | 
|  | 53 | + | 
|  | 54 | +Once optimizations are staged, you can: | 
|  | 55 | +- Review each optimization individually | 
|  | 56 | +- Compare original and optimized code side-by-side | 
|  | 57 | +- Edit the code of staged optimizations  | 
|  | 58 | +- Create pull requests for selected optimizations directly from the staging interface | 
|  | 59 | + | 
|  | 60 | + | 
|  | 61 | + | 
0 commit comments