[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"tb-v-35-2057383077520343040":3},{"detail":4,"manual":19,"playlist":20,"tool":83},{"id":5,"title":6,"coverUrl":7,"url":8,"level":9,"description":10,"publishDate":11,"views":12,"isCollect":13,"isLike":13,"vipRequired":14,"vipFlag":9,"price":15,"contentType":16,"station":15,"seq":17,"readMinutes":15,"toolIds":18,"relatedVideo":15},"2057383077520343040","9-Claude Code权限模式详解","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057426801067556864","https:\u002F\u002Faicxd.com\u002FfileStorage\u002F0000\u002FBASE_FILE\u002F2026\u002F05\u002F21\u002Fe6c1d396935a425f8a6ca1c04cb25540.mp4","1","09-Claude Code权限模式详解","2026-05-21",0,"0",false,null,3,90,[],"\u003Cdiv style=\"padding:0 4px 24px;font-size:14px;color:#333;line-height:1.85;word-break:break-word\">\n\n  \u003Cdiv style=\"background:#F8FAFC;border-radius:12px;padding:14px;margin:8px 0 16px;font-size:14px;line-height:1.8;color:#475569\">权限模式是你给 Claude Code 挂的“档位”——同一个 AI，挂几档跑，决定了它在你电脑上每动一步要不要先停下来征求你的同意。\u003C\u002Fdiv>\n\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469551150366720\" style=\"width:100%;border-radius:10px;margin:0 0 16px;display:block\" \u002F>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:8px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>一、为什么有“权限”这回事\u003C\u002Fdiv>\n\n  \u003Cp style=\"margin:0 0 12px\">Claude Code 跟普通聊天机器人不一样——它\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">真的会在你电脑上动手\u003C\u002Fstrong>：读文件、改代码、跑命令、装依赖、提交 git。每个动作有自己的风险等级，\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">权限模式就是告诉 Claude Code：做到哪种程度之前要不要先停下来问你\u003C\u002Fstrong>。\u003C\u002Fp>\n\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469552387686400\" style=\"width:100%;border-radius:10px;margin:0 0 16px;display:block\" \u002F>\n\n  \u003Cp style=\"margin:0 0 14px\">Claude Code 一共 \u003Cstrong style=\"font-weight:700;color:#1a1a1a\">6 档\u003C\u002Fstrong>权限模式：5 档是日常人在屏幕前操作用的，1 档（\u003Ccode style=\"background:#F1F5F9;color:#EA580C;padding:1px 6px;border-radius:4px;font-size:13px\">dontAsk\u003C\u002Fcode>）专门给 CI\u002FCD 自动化场景用。从最稳到最野：默认 → 自动改文件 → 计划模式 → 自动模式 → 全权放行，再加一个特殊的 dontAsk。\u003C\u002Fp>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:26px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>二、6 档模式速览\u003C\u002Fdiv>\n\n  \u003Cp style=\"margin:0 0 12px\">打开 Claude Code，按 \u003Ccode style=\"background:#F1F5F9;color:#EA580C;padding:1px 6px;border-radius:4px;font-size:13px\">Shift+Tab\u003C\u002Fcode> 循环切——切完底部状态栏会显示当前模式（默认模式不显示标签）。\u003C\u002Fp>\n\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:3px\">1　默认\u003Cspan style=\"font-weight:400;color:#94A3B8;font-size:12px;margin-left:6px\">无标签\u003C\u002Fspan>\u003C\u002Fdiv>\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">每个工具调用都问你一声\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:3px\">2　自动改文件\u003Cspan style=\"font-weight:400;color:#94A3B8;font-size:12px;margin-left:6px\">Auto-accept edits\u003C\u002Fspan>\u003C\u002Fdiv>\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">改文件不问，跑终端命令仍然问\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:3px\">3　计划模式\u003Cspan style=\"font-weight:400;color:#94A3B8;font-size:12px;margin-left:6px\">Plan mode\u003C\u002Fspan>\u003C\u002Fdiv>\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">只读、只想、只输出方案，一行代码都不动\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:3px\">4　自动模式\u003Cspan style=\"font-weight:400;color:#94A3B8;font-size:12px;margin-left:6px\">Auto mode（新）\u003C\u002Fspan>\u003C\u002Fdiv>\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">Claude 自己判风险，安全的放行、可疑的拦下来\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FFF5F5;border:1px solid #FFE4E4;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:14px;font-weight:700;color:#DC2626;margin-bottom:3px\">5　全权放行\u003Cspan style=\"font-weight:400;color:#F87171;font-size:12px;margin-left:6px\">Bypass \u002F YOLO\u003C\u002Fspan>\u003C\u002Fdiv>\u003Cdiv style=\"font-size:13px;color:#991B1B;line-height:1.7\">一律不问，需启动参数才能进\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 14px\">\u003Cdiv style=\"font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:3px\">6　dontAsk\u003Cspan style=\"font-weight:400;color:#94A3B8;font-size:12px;margin-left:6px\">自动化专用，不在 Shift+Tab 循环\u003C\u002Fspan>\u003C\u002Fdiv>\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">未预授权的操作一律拒绝，配 allow 列表跑无人值守\u003C\u002Fdiv>\u003C\u002Fdiv>\n\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469553364959232\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n\n  \u003Cp style=\"margin:0 0 14px\">下面把日常用得最多的 3 档讲透，再补 3 档进阶（含 dontAsk）。\u003C\u002Fp>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:26px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>三、3 档主力详讲\u003C\u002Fdiv>\n\n  \u003Cdiv style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:20px 0 8px\">3.1　默认模式 —— 最稳\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 10px\">它每要动一下就停下来问你，每次弹窗给三种选择：\u003C\u002Fp>\n  \u003Cdiv style=\"display:flex;margin:0 0 6px\">\u003Cspan style=\"background:#FF8916;color:#fff;width:20px;height:20px;border-radius:50%;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:10px;margin-top:2px\">1\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">这次允许\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 6px\">\u003Cspan style=\"background:#FF8916;color:#fff;width:20px;height:20px;border-radius:50%;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:10px;margin-top:2px\">2\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">这一类以后都允许\u003C\u002Fstrong>（按操作类型记忆）\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 12px\">\u003Cspan style=\"background:#FF8916;color:#fff;width:20px;height:20px;border-radius:50%;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:10px;margin-top:2px\">3\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">拒绝，并告诉它换个做法\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469554023464960\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n  \u003Cp style=\"margin:0 0 12px\">第 2 项是\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">精华\u003C\u002Fstrong>——按“操作类型”记忆。第一次允许“在 src\u002F 下新建文件”选第 2 项，以后所有在 src\u002F 下新建文件都自动放行，但在 data\u002F 下新建还是会问。前 10 次确认完，后面 95% 的操作都自动放行——\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">默认模式其实没那么烦\u003C\u002Fstrong>。\u003C\u002Fp>\n  \u003Cdiv style=\"background:#F8FAFC;border-left:3px solid #CBD5E1;border-radius:6px;padding:10px 14px;margin:0 0 14px;font-size:13px;line-height:1.7;color:#475569\">注：读文件这个操作 Claude 启动时会一次性对工作目录整体授权，不走单次弹窗。所以“按操作类型记忆”主要体现在写文件、跑命令这两类动作上。\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 14px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">什么时候用\u003C\u002Fstrong>：新项目第一次跑、碰生产代码、不熟悉的领域。\u003C\u002Fp>\n\n  \u003Cdiv style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:20px 0 8px\">3.2　自动改文件（Auto-accept edits）—— 主力模式\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 12px\">按一下 \u003Ccode style=\"background:#F1F5F9;color:#EA580C;padding:1px 6px;border-radius:4px;font-size:13px\">Shift+Tab\u003C\u002Fcode> 切到这一档，状态栏底部出现 \u003Ccode style=\"background:#F1F5F9;color:#EA580C;padding:1px 6px;border-radius:4px;font-size:13px\">accept edits on\u003C\u002Fcode>。\u003C\u002Fp>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469554619056128\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n  \u003Cp style=\"margin:0 0 10px\">它干的事：\u003C\u002Fp>\n  \u003Cdiv style=\"display:flex;margin:0 0 6px\">\u003Cspan style=\"color:#FF8916;margin-right:8px;flex-shrink:0;font-weight:700\">•\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">改文件 → 自动放行\u003C\u002Fstrong>（编辑、新建、删除文件都不问）\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 6px\">\u003Cspan style=\"color:#FF8916;margin-right:8px;flex-shrink:0;font-weight:700\">•\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">常见文件系统命令 → 也自动放行\u003C\u002Fstrong>（mkdir、touch、rm、mv、cp、sed 这类整理文件的命令）\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 12px\">\u003Cspan style=\"color:#FF8916;margin-right:8px;flex-shrink:0;font-weight:700\">•\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">其他终端命令 → 仍然问\u003C\u002Fstrong>（npm install、git push、curl、跑测试这类都要确认）\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469555172704256\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n  \u003Cp style=\"margin:0 0 12px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">这样切分是有意的\u003C\u002Fstrong>——改文件和整理文件操作最多让代码出错（可以 \u002Frewind），但装依赖、推 commit、调外部接口这类命令影响不可逆，必须留刹车。\u003C\u002Fp>\n  \u003Cdiv style=\"background:#FFF7ED;border:1px solid #FFEDD5;border-radius:12px;padding:12px 14px;margin:0 0 14px;font-size:13px;line-height:1.7;color:#9A3412\">⚠️ 这里有个\u003Cstrong style=\"font-weight:700\">新手常困惑的点\u003C\u002Fstrong>：开了 auto-accept edits 后发现“它 mkdir 怎么也没问我”——不是 bug，是设计如此。文件系统命令在它“自动放行”的范围里。\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 14px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">什么时候用\u003C\u002Fstrong>：写代码主战场、重构大块代码、刚明确告诉它要改哪些文件之后。\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">别用的时候\u003C\u002Fstrong>：不熟的项目、改 data\u002F 或 .env 这种敏感文件之前——临时切回默认。\u003C\u002Fp>\n\n  \u003Cdiv style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:20px 0 8px\">3.3　全权放行（Bypass \u002F YOLO）—— 危险二字写在脸上\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 12px\">这一档\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">改文件、跑命令、装依赖、删目录一律不问\u003C\u002Fstrong>。进它不能 Shift+Tab 切——必须启动时加参数：\u003C\u002Fp>\n  \u003Cdiv style=\"background:#1E293B;border-radius:8px;padding:12px 14px;margin:0 0 14px;font-size:13px;color:#E2E8F0;font-family:monospace;line-height:1.8\">claude --dangerously-skip-permissions\u003C\u002Fdiv>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469555751518208\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n  \u003Cp style=\"margin:0 0 12px\">注意这个参数名——\u003Ccode style=\"background:#F1F5F9;color:#EA580C;padding:1px 6px;border-radius:4px;font-size:13px\">dangerously\u003C\u002Fcode>（危险地）。\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">官方把“危险”两个字写在了参数名上\u003C\u002Fstrong>，意思非常明确：要进就进，出事别说没提醒。启动后状态栏显示 Bypass permissions on，接下来你说啥它干啥，全程零确认。\u003C\u002Fp>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469556259028992\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n  \u003Cp style=\"margin:0 0 12px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">真的有用的场景\u003C\u002Fstrong>：跑一次性脚本（批量改名、批量转格式）、完全隔离的沙盒（Docker \u002F 临时虚拟机 \u002F 专门实验目录）、重复性强的批处理。\u003C\u002Fp>\n  \u003Cdiv style=\"background:#FFF5F5;border:1px solid #FFE4E4;border-radius:12px;padding:14px;margin:0 0 14px\">\n    \u003Cdiv style=\"font-size:14px;font-weight:700;color:#DC2626;margin-bottom:8px\">坚决不能用的场景（红线）\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:13px;color:#991B1B;line-height:2\">❌　直接在生产代码目录\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:13px;color:#991B1B;line-height:2\">❌　碰真实客户数据 \u002F 财务文件 \u002F 邮件附件\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:13px;color:#991B1B;line-height:2\">❌　联网部署的服务上（它可能 git push --force 覆盖线上）\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:13px;color:#991B1B;line-height:2\">❌　磁盘根目录、桌面、用户目录这类大范围\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:26px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>四、3 档进阶\u003C\u002Fdiv>\n\n  \u003Cdiv style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:20px 0 8px\">4.1　计划模式（Plan mode）\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 12px\">\u003Ccode style=\"background:#F1F5F9;color:#EA580C;padding:1px 6px;border-radius:4px;font-size:13px\">Shift+Tab\u003C\u002Fcode> 切到 Plan mode on，进入\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">只读 + 只想\u003C\u002Fstrong>：可以读文件、出方案，但不能改文件、不能跑命令。大需求开工前、改混乱代码前、不确定方案选哪条时用。详细用法见第 08 章 \u002Fplan 命令。\u003C\u002Fp>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469556846231552\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n\n  \u003Cdiv style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:20px 0 8px\">4.2　自动模式（Auto mode）\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 12px\">2026 年新加的一档，介于“自动改文件”和“全权放行”之间——\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">Claude 自己判断每个操作的风险\u003C\u002Fstrong>：安全的（读文件、改你刚说要改的代码）自动放行，可疑的（要删的文件你没明确说删、要装的依赖你没明确说要）停下来问你。\u003C\u002Fp>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469557420851200\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n  \u003Cp style=\"margin:0 0 12px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">谁能用 + 用什么模型\u003C\u002Fstrong>：截至当下对 Max、Team、Enterprise、API 用户开放，需要 Sonnet 4.6 或 Opus 4.6 模型，且仅支持 Anthropic 官方 API（不支持 Bedrock \u002F Vertex \u002F Foundry）。Max 订阅用户可直接用。\u003C\u002Fp>\n  \u003Cp style=\"margin:0 0 12px\">听起来很美，\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">两个注意点\u003C\u002Fstrong>：① Claude 的判断不是 100% 准，它认为安全你认为不安全的可能直接被放行；② 第一次切到 Auto mode 会弹一次性确认——弹窗不处理 Shift+Tab 就一直被拦着。\u003C\u002Fp>\n  \u003Cp style=\"margin:0 0 14px\">我的用法：\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">只在小型实验项目和长时间无人值守的批处理\u003C\u002Fstrong>用 Auto mode，正经项目仍然 Auto-accept edits 起步——AI 判断的“安全”边界还没经过足够长的实战验证。\u003C\u002Fp>\n\n  \u003Cdiv style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:20px 0 8px\">4.3　dontAsk（自动化专用）\u003C\u002Fdiv>\n  \u003Cp style=\"margin:0 0 12px\">dontAsk 跟 Bypass \u003Cstrong style=\"font-weight:700;color:#1a1a1a\">完全相反\u003C\u002Fstrong>——Bypass 是“一律放行”，dontAsk 是“\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">未预授权的一律拒绝\u003C\u002Fstrong>”。你在配置文件里写好哪些操作允许、哪些禁止，跑起来后 Claude 只能干授权范围内的事，规矩外的一律直接拒绝，不弹窗不问你。\u003C\u002Fp>\n  \u003Cimg src=\"https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057469558033219584\" style=\"width:100%;border-radius:10px;margin:0 0 14px;display:block\" \u002F>\n  \u003Cp style=\"margin:0 0 12px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">为什么有这一档\u003C\u002Fstrong>：CI\u002FCD 流水线、定时任务、服务器跑批这些场景压根没人坐在屏幕前点确认按钮，弹窗弹出来就把流程卡死了。dontAsk 的逻辑就是——人不在，按事先写好的规矩办。\u003C\u002Fp>\n  \u003Cp style=\"margin:0 0 12px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">怎么进\u003C\u002Fstrong>：不能 Shift+Tab 切，必须在 settings.json 里把 \u003Ccode style=\"background:#F1F5F9;color:#EA580C;padding:1px 6px;border-radius:4px;font-size:13px\">permissionMode\u003C\u002Fcode> 设成 dontAsk，再配合 allow 列表写明白允许哪些操作。\u003C\u002Fp>\n  \u003Cp style=\"margin:0 0 14px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">什么时候用\u003C\u002Fstrong>：CI\u002FCD 自动跑测试、夜里定时任务批处理、服务器上跑 Agent。日常一个人在电脑前写代码，用不到这一档。\u003C\u002Fp>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:26px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>五、Shift+Tab 循环切换\u003C\u002Fdiv>\n\n  \u003Cp style=\"margin:0 0 10px\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">默认循环只有 3 档\u003C\u002Fstrong>：默认 → Auto-accept edits → Plan mode → 回到默认。Auto、Bypass、dontAsk 都不在默认循环里：\u003C\u002Fp>\n  \u003Cdiv style=\"display:flex;margin:0 0 6px\">\u003Cspan style=\"color:#FF8916;margin-right:8px;flex-shrink:0;font-weight:700\">•\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">Auto mode\u003C\u002Fstrong>：满足“谁能用”条件后，首次切到这一档要点一次 opt-in 确认，确认完它才加入循环\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 6px\">\u003Cspan style=\"color:#FF8916;margin-right:8px;flex-shrink:0;font-weight:700\">•\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">Bypass permissions\u003C\u002Fstrong>：Shift+Tab 永远进不去，必须启动时加 --dangerously-skip-permissions\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 12px\">\u003Cspan style=\"color:#FF8916;margin-right:8px;flex-shrink:0;font-weight:700\">•\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">dontAsk\u003C\u002Fstrong>：Shift+Tab 永远进不去，必须在 settings.json 里配 permissionMode + allow 列表\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FFF7ED;border:1px solid #FFEDD5;border-radius:12px;padding:12px 14px;margin:0 0 14px;font-size:13px;line-height:1.7;color:#9A3412\">⚠️ \u003Cstrong style=\"font-weight:700\">Auto mode opt-in 弹窗的坑\u003C\u002Fstrong>：4 个选项，不打算用就选第 4 项 No, don't ask again 一劳永逸跳过——否则每次 Shift+Tab 转到 Auto mode 都被拦一次。\u003C\u002Fdiv>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:26px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>六、决策表：什么场景用哪档\u003C\u002Fdiv>\n\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">新项目第一次跑、不熟的领域　→　\u003Cstrong style=\"color:#1a1a1a\">默认\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">写代码主力场景、信任的项目　→　\u003Cstrong style=\"color:#1a1a1a\">Auto-accept edits\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">大需求开工前、想方案　→　\u003Cstrong style=\"color:#1a1a1a\">Plan mode\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">小型实验项目、长时间无人值守的批处理　→　\u003Cstrong style=\"color:#1a1a1a\">Auto mode\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">改 data\u002F \u002F .env \u002F 生产配置前　→　\u003Cstrong style=\"color:#1a1a1a\">临时切回默认\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">重复性强的批处理、隔离沙盒　→　\u003Cstrong style=\"color:#1a1a1a\">Bypass（启动参数）\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 8px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">跑生产部署、推线上 commit　→　\u003Cstrong style=\"color:#1a1a1a\">永远默认\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FAFAFA;border-radius:10px;padding:12px;margin:0 0 12px\">\u003Cdiv style=\"font-size:13px;color:#475569;line-height:1.7\">CI\u002FCD、定时任务、服务器无人值守跑 Agent　→　\u003Cstrong style=\"color:#1a1a1a\">dontAsk\u003C\u002Fstrong>\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"background:#FFF7ED;border:1px solid #FFEDD5;border-radius:12px;padding:12px 14px;margin:0 0 14px;font-size:13px;line-height:1.7;color:#9A3412\">💡 \u003Cstrong style=\"font-weight:700\">一句口诀\u003C\u002Fstrong>：信任程度跟敏感程度走，越敏感越往默认靠。\u003C\u002Fdiv>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:26px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>七、Bypass 模式的 4 条铁律\u003C\u002Fdiv>\n\n  \u003Cp style=\"margin:0 0 12px\">最后单独把 bypass 拎出来——这一档用错真会出事，4 条铁律记牢：\u003C\u002Fp>\n  \u003Cdiv style=\"display:flex;margin:0 0 10px\">\u003Cspan style=\"background:#DC2626;color:#fff;width:22px;height:22px;border-radius:50%;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:10px;margin-top:2px\">1\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">永远在专门的实验目录用\u003C\u002Fstrong>——跟正经项目隔开，它再放飞也只影响这个沙盒。\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 10px\">\u003Cspan style=\"background:#DC2626;color:#fff;width:22px;height:22px;border-radius:50%;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:10px;margin-top:2px\">2\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">碰真实数据前先关掉 bypass\u003C\u002Fstrong>——重新开一个不带参数的会话再处理，多敲一次启动命令的代价比误删客户数据库小一万倍。\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 10px\">\u003Cspan style=\"background:#DC2626;color:#fff;width:22px;height:22px;border-radius:50%;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:10px;margin-top:2px\">3\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">别用 bypass 跑“动外部世界”的命令\u003C\u002Fstrong>——git push --force \u002F npm publish \u002F 调外部 API \u002F 部署生产，要动外部立刻关掉。\u003C\u002Fdiv>\u003C\u002Fdiv>\n  \u003Cdiv style=\"display:flex;margin:0 0 14px\">\u003Cspan style=\"background:#DC2626;color:#fff;width:22px;height:22px;border-radius:50%;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:10px;margin-top:2px\">4\u003C\u002Fspan>\u003Cdiv style=\"flex:1\">\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">用好 git 等版本管理\u003C\u002Fstrong>——每次进沙盒跑 bypass 前先 git commit 一次干净版本，跑完不对劲一句 git reset --hard 就回来了。补充：bypass 是会话级的，关掉终端重新启动就回到默认。\u003C\u002Fdiv>\u003C\u002Fdiv>\n\n  \u003Cdiv style=\"font-size:17px;font-weight:800;color:#111;margin:26px 0 14px;display:flex;align-items:center\">\u003Cspan style=\"width:6px;height:18px;background:#FF8916;border-radius:6px;margin-right:8px;flex-shrink:0\">\u003C\u002Fspan>本章小结\u003C\u002Fdiv>\n\n  \u003Cp style=\"margin:0 0 14px\">6 档权限从“每步确认”到“全权放行”再到“未授权一律拒绝”覆盖了所有场景，\u003Cstrong style=\"font-weight:700;color:#1a1a1a\">默认是底线、Auto-accept edits 是主力、Plan mode 想方案用、Auto mode 谨慎尝鲜、Bypass 只在沙盒里玩、dontAsk 给自动化跑无人值守\u003C\u002Fstrong>——Shift+Tab 一秒切换日常 3 档，越敏感的事越往左走。\u003C\u002Fp>\n\n  \u003Cdiv style=\"background:#FFF7ED;border-radius:12px;padding:12px 14px;margin:20px 0 0;font-size:13px;color:#EA580C;font-weight:600\">➡️ 下一章：第 10 章 CLAUDE.md 介绍与编写\u003C\u002Fdiv>\n\n\u003C\u002Fdiv>\n",[21,29,36,42,48,54,62,68,74,76],{"id":22,"title":23,"coverUrl":24,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":26,"contentType":16,"station":15,"seq":27,"relateId":15,"toolId":28,"readMinutes":15},"2057380571880882176","1-Claude Code介绍","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057427209324331008","ClaudeCode",[],10,"35",{"id":30,"title":31,"coverUrl":32,"duration":15,"level":9,"publishDate":33,"views":12,"aiSoftapp":25,"tags":34,"contentType":16,"station":15,"seq":35,"relateId":15,"toolId":28,"readMinutes":15},"2041712533768765440","2-Claude-Code是什么?","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057427263082725376","2026-04-08",[],20,{"id":37,"title":38,"coverUrl":39,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":40,"contentType":16,"station":15,"seq":41,"relateId":15,"toolId":28,"readMinutes":15},"2057381690870857728","3-Claude Code在哪里跑？","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057427161010143232",[],30,{"id":43,"title":44,"coverUrl":45,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":46,"contentType":16,"station":15,"seq":47,"relateId":15,"toolId":28,"readMinutes":15},"2057382144665190400","4-Claude Code应该怎么安装？","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057427108359045120",[],40,{"id":49,"title":50,"coverUrl":51,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":52,"contentType":16,"station":15,"seq":53,"relateId":15,"toolId":28,"readMinutes":15},"2057382327213883392","5-Claude Code官方订阅与登录","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057427062230089728",[],50,{"id":55,"title":56,"coverUrl":57,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":58,"contentType":16,"station":60,"seq":61,"relateId":15,"toolId":28,"readMinutes":15},"2057382487776034816","6-Claude Code接入国产大模型","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057426980734763008",[59],"Claude Code2","004",60,{"id":63,"title":64,"coverUrl":65,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":66,"contentType":16,"station":15,"seq":67,"relateId":15,"toolId":28,"readMinutes":15},"2057382737534255104","7-Claude Code主界面与状态栏","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057426909809082368",[],70,{"id":69,"title":70,"coverUrl":71,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":72,"contentType":16,"station":15,"seq":73,"relateId":15,"toolId":28,"readMinutes":15},"2057382906313048064","8-Claude Code必会斜杠命令","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057426852691050496",[],80,{"id":5,"title":6,"coverUrl":7,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":75,"contentType":16,"station":15,"seq":17,"relateId":15,"toolId":28,"readMinutes":15},[],{"id":77,"title":78,"coverUrl":79,"duration":15,"level":9,"publishDate":11,"views":12,"aiSoftapp":25,"tags":80,"contentType":16,"station":60,"seq":82,"relateId":15,"toolId":28,"readMinutes":15},"2057383281116053504","10-Claude.md介绍与编写","https:\u002F\u002Faicxd.com\u002Fapi\u002Ffile\u002Ffile\u002FremoteViewByFileId?fileId=2057426742531850240",[81],"Claude Code",100,{"id":28,"createTime":84,"createdBy":13,"updateTime":85,"updatedBy":86,"echoMap":87,"slug":88,"name":81,"categorySlug":89,"subCategory":90,"region":91,"website":92,"appName":90,"description":93,"tags":94,"sortOrder":99,"state":100,"tenantCode":101,"tutorialContent":90,"resourceType":102,"accessTypes":103,"installCmd":104,"logo":90,"hotScore":82,"githubStars":12,"category":89},"2026-01-06 22:15:28","2026-07-09 10:05:47","1744248479271616512",{},"claude","content-gen","","国外","claude.ai\u002Fcode","Anthropic推出的AI编程智能体，在终端直接运行，深度集成Git和CLI工具链。能理解整个代码库上下文，自主完成代码重构、测试编写和PR提交，是专业开发者的高效协作伙伴。",[95,96,97,98],"终端原生运行深度集成Git工作流","理解整个代码库上下文","自主执行代码重构与Bug修复","自动编写测试并提交PR",350,1,"0000","tool","desktop,cli,web,app","22"]