[{"data":1,"prerenderedAt":133},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fsafety\u002Fapprovals-and-guardrails":3},{"id":4,"title":5,"body":6,"description":125,"extension":126,"meta":127,"navigation":128,"path":129,"seo":130,"stem":131,"__hash__":132},"docs\u002Fdocs\u002Fsafety\u002Fapprovals-and-guardrails.md","Approvals & Guardrails",{"type":7,"value":8,"toc":116},"minimark",[9,13,17,22,56,61,72,76,107],[10,11,5],"h1",{"id":12},"approvals-guardrails",[14,15,16],"p",{},"TheGitAI is built so that nothing happens to your files or shell without your\nsay-so.",[18,19,21],"h2",{"id":20},"approvals","Approvals",[23,24,25,29,45],"ul",{},[26,27,28],"li",{},"TheGitAI asks before running shell commands or applying file edits.",[26,30,31,32,36,37,40,41,44],{},"At each prompt: ",[33,34,35],"strong",{},"y"," approves once, ",[33,38,39],{},"a"," approves the rest of the session,\n",[33,42,43],{},"n"," denies.",[26,46,47,51,52,55],{},[48,49,50],"code",{},"-y"," \u002F ",[48,53,54],{},"--yes"," at startup auto-approves every shell command and file edit for\nthe whole session — use it with care.",[57,58,60],"h3",{"id":59},"password-prompts","Password prompts",[14,62,63,64,67,68,71],{},"If an approved ",[48,65,66],{},"sudo"," command needs a password, the terminal UI shows the exact\ncommand and keeps the password ",[33,69,70],{},"masked and local",". The password is never sent\nto the model or the server.",[18,73,75],{"id":74},"guardrails","Guardrails",[23,77,78,84,98],{},[26,79,80,83],{},[33,81,82],{},"Repo containment"," — file and shell operations are confined to the target\nrepo root.",[26,85,86,89,90,93,94,97],{},[33,87,88],{},"Ignore rules"," — vendor, generated, and sensitive directories (like\n",[48,91,92],{},".git",", ",[48,95,96],{},"node_modules",", and build output) are never indexed.",[26,99,100,103,104,106],{},[33,101,102],{},"Command safety"," — shell commands require confirmation unless ",[48,105,50],{}," is used,\nand background or long-running server processes are blocked.",[108,109,110],"tip",{},[14,111,112,113,115],{},"Prefer Default mode for unfamiliar work so you can review each command and edit\nas it comes up. Reserve ",[48,114,50],{}," for tasks you've already scoped and trust.",{"title":117,"searchDepth":118,"depth":118,"links":119},"",2,[120,124],{"id":20,"depth":118,"text":21,"children":121},[122],{"id":59,"depth":123,"text":60},3,{"id":74,"depth":118,"text":75},"How TheGitAI asks before touching your machine, and the guardrails that keep work contained.","md",{},true,"\u002Fdocs\u002Fsafety\u002Fapprovals-and-guardrails",{"title":5,"description":125},"docs\u002Fsafety\u002Fapprovals-and-guardrails","yBm3jYCpX4VZagUx0elJo2oU9zQg7UE4hFZgGI7eeeY",1781261135026]