[{"data":1,"prerenderedAt":248},["ShallowReactive",2],{"doc-features\u002Fpragma-code-review":3,"content-query-jYAxTmsweR":4},null,{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"body":11,"_type":242,"_id":243,"_source":244,"_file":245,"_stem":246,"_extension":247},"\u002Fdocs\u002Ffeatures\u002Fpragma-code-review","features",false,"","Pragma Code Review","Review diffs, comments, generated code, and changes from the AI agent inside Pragma.",{"type":12,"children":13,"toc":235},"root",[14,22,28,33,40,45,80,86,120,126,131,159,165,170,176,181,224,229],{"type":15,"tag":16,"props":17,"children":19},"element","h1",{"id":18},"pragma-code-review",[20],{"type":21,"value":9},"text",{"type":15,"tag":23,"props":24,"children":25},"p",{},[26],{"type":21,"value":27},"Pragma includes code review tools so users can inspect changes before accepting them.",{"type":15,"tag":23,"props":29,"children":30},{},[31],{"type":21,"value":32},"The review experience is designed for developers who want to inspect human edits, AI-generated edits, and Git changes in one place.",{"type":15,"tag":34,"props":35,"children":37},"h2",{"id":36},"what-code-review-is-for",[38],{"type":21,"value":39},"What Code Review Is For",{"type":15,"tag":23,"props":41,"children":42},{},[43],{"type":21,"value":44},"Code review helps users:",{"type":15,"tag":46,"props":47,"children":48},"ul",{},[49,55,60,65,70,75],{"type":15,"tag":50,"props":51,"children":52},"li",{},[53],{"type":21,"value":54},"Check AI-generated edits.",{"type":15,"tag":50,"props":56,"children":57},{},[58],{"type":21,"value":59},"Review local changes before committing.",{"type":15,"tag":50,"props":61,"children":62},{},[63],{"type":21,"value":64},"Compare old and new code.",{"type":15,"tag":50,"props":66,"children":67},{},[68],{"type":21,"value":69},"Leave comments.",{"type":15,"tag":50,"props":71,"children":72},{},[73],{"type":21,"value":74},"Ask the agent to explain a diff.",{"type":15,"tag":50,"props":76,"children":77},{},[78],{"type":21,"value":79},"Catch risky changes before they reach production.",{"type":15,"tag":34,"props":81,"children":83},{"id":82},"review-flow",[84],{"type":21,"value":85},"Review Flow",{"type":15,"tag":87,"props":88,"children":89},"ol",{},[90,95,100,105,110,115],{"type":15,"tag":50,"props":91,"children":92},{},[93],{"type":21,"value":94},"Make a change manually or with the AI agent.",{"type":15,"tag":50,"props":96,"children":97},{},[98],{"type":21,"value":99},"Open the review view.",{"type":15,"tag":50,"props":101,"children":102},{},[103],{"type":21,"value":104},"Inspect changed files.",{"type":15,"tag":50,"props":106,"children":107},{},[108],{"type":21,"value":109},"Read or add comments.",{"type":15,"tag":50,"props":111,"children":112},{},[113],{"type":21,"value":114},"Ask the agent to explain uncertain parts.",{"type":15,"tag":50,"props":116,"children":117},{},[118],{"type":21,"value":119},"Accept, revise, or discard the change.",{"type":15,"tag":34,"props":121,"children":123},{"id":122},"reviewing-ai-work",[124],{"type":21,"value":125},"Reviewing AI Work",{"type":15,"tag":23,"props":127,"children":128},{},[129],{"type":21,"value":130},"Users should not blindly trust AI-generated code. The review view is where they can check:",{"type":15,"tag":46,"props":132,"children":133},{},[134,139,144,149,154],{"type":15,"tag":50,"props":135,"children":136},{},[137],{"type":21,"value":138},"Did the agent edit the intended files?",{"type":15,"tag":50,"props":140,"children":141},{},[142],{"type":21,"value":143},"Did it change unrelated behavior?",{"type":15,"tag":50,"props":145,"children":146},{},[147],{"type":21,"value":148},"Did it add tests?",{"type":15,"tag":50,"props":150,"children":151},{},[152],{"type":21,"value":153},"Did it expose secrets?",{"type":15,"tag":50,"props":155,"children":156},{},[157],{"type":21,"value":158},"Did it change production settings?",{"type":15,"tag":34,"props":160,"children":162},{"id":161},"git-integration",[163],{"type":21,"value":164},"Git Integration",{"type":15,"tag":23,"props":166,"children":167},{},[168],{"type":21,"value":169},"The Git dialog helps users understand changes in source control. This is useful before commits, pull requests, releases, or handoff to another developer.",{"type":15,"tag":34,"props":171,"children":173},{"id":172},"best-practice",[174],{"type":21,"value":175},"Best Practice",{"type":15,"tag":23,"props":177,"children":178},{},[179],{"type":21,"value":180},"For important code, users should combine review with tests:",{"type":15,"tag":182,"props":183,"children":187},"pre",{"className":184,"code":185,"language":186,"meta":8,"style":8},"language-bash shiki shiki-themes github-dark","git diff\nnpm test\n","bash",[188],{"type":15,"tag":189,"props":190,"children":191},"code",{"__ignoreMap":8},[192,210],{"type":15,"tag":193,"props":194,"children":197},"span",{"class":195,"line":196},"line",1,[198,204],{"type":15,"tag":193,"props":199,"children":201},{"style":200},"--shiki-default:#B392F0",[202],{"type":21,"value":203},"git",{"type":15,"tag":193,"props":205,"children":207},{"style":206},"--shiki-default:#9ECBFF",[208],{"type":21,"value":209}," diff\n",{"type":15,"tag":193,"props":211,"children":213},{"class":195,"line":212},2,[214,219],{"type":15,"tag":193,"props":215,"children":216},{"style":200},[217],{"type":21,"value":218},"npm",{"type":15,"tag":193,"props":220,"children":221},{"style":206},[222],{"type":21,"value":223}," test\n",{"type":15,"tag":23,"props":225,"children":226},{},[227],{"type":21,"value":228},"or the equivalent command for the project.",{"type":15,"tag":230,"props":231,"children":232},"style",{},[233],{"type":21,"value":234},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":8,"searchDepth":212,"depth":212,"links":236},[237,238,239,240,241],{"id":36,"depth":212,"text":39},{"id":82,"depth":212,"text":85},{"id":122,"depth":212,"text":125},{"id":161,"depth":212,"text":164},{"id":172,"depth":212,"text":175},"markdown","content:docs:features:pragma-code-review.md","content","docs\u002Ffeatures\u002Fpragma-code-review.md","docs\u002Ffeatures\u002Fpragma-code-review","md",1786114917776]