--- name: fmode-bypass-permission description: "YOLO 模式体检与设置:校验 Agent 容器的免确认自主执行配置(Hermes approvals.mode=off/yolo、Claude Code dangerously-skip-permissions),不合规才幂等修复(改前备份),合规则一行 OK 零噪音。适用:(1) 数字生命初始化后自检 (2) 集群标准化巡检 (3) 新工具接入时的执行权限配置。" description_en: "Check and enforce YOLO (autonomous execution) mode for agent containers: Hermes approvals.mode=off, Claude Code skip-permissions. Idempotent fix with auto-backup; silent pass when already compliant." --- # Fmode Bypass Permission — YOLO 模式检查与设置 ## Overview 集群标准:Agent 以 **YOLO(免确认自主执行)** 模式运行,同时关闭 approvals 交互——让 AI 有更多自主能力且可控(日志/上报在线)。本技能做两件事:**体检**(check 输出三处配置状态 JSON)与**幂等修复**(enforce 只动不合规项,改前自动备份)。 ## 快速用 ```bash node /scripts/checker.mjs check # → JSON: hermes_approvals/hermes_yolo/claude_bypass/compliant node /scripts/checker.mjs enforce # 不合规才修(备份 *.bak-),合规零动作 ``` ## 合规标准 | 检查 | 合规值 | |---|---| | Hermes `approvals.mode` | `off` | | Hermes `yolo` | `true` | | Claude Code permissions | 含 `Bash(*)` / dangerously-skip | | 环境变量 | `HERMES_YOLO=1` / `CLAUDE_YOLO=1`(任一存在即认可该侧) | ## 安全边界 只动 Agent 工具自身配置文件(hermes/claude),不碰系统 sudo/防火墙;修复前备份;YOLO 开启同时**日志上报必须在线**(配合 agent-status-reporter 使用)。 ## 凭据 **本技能无凭据依赖**——不读不写任何 token/密钥/凭据文件,仅操作本机 Agent 工具配置(hermes/claude settings)。