codex-exec-automation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited codex-exec-automation (Agent Skill) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Bundled commands use $PLUGIN_ROOT ($env:PLUGIN_ROOT in PowerShell; same path suffix) for the plugin root. Set it once: use the host's plugin-root variable when defined (Claude Code: PLUGIN_ROOT="$CLAUDE_PLUGIN_ROOT"), otherwise the absolute path of this plugin's root directory.
Use this skill for non-interactive Codex CLI work: codex exec, codex e, codex exec resume, codex exec review, top-level codex review, JSONL event streams, final-message capture, output schemas, prompt stdin, images, cwd selection, and CI-like checks.
Before relying on a flag, verify the installed CLI:
python3 "$PLUGIN_ROOT/scripts/codex_cli_inspector.py" --commands exec review doctor --jsonIf the user supplied a binary path, pass --codex "$CODEX_CLI_PATH".
Build commands from these decisions, in this order:
-C <repo> or run from the intended repository.--sandbox and --ask-for-approval.--profile, -c key=value, --enable, --disable, or --strict-config only when needed.-, or pipe a structured prompt.--json, --output-schema <file>, or -o <file> when automation must parse results.--ephemeral only when the run should not persist session files.Common safe patterns:
codex exec -C "$PROJECT" --sandbox workspace-write --ask-for-approval on-request "Implement the requested fix and run targeted tests."
codex exec -C "$PROJECT" --sandbox read-only --ask-for-approval never --json "Inspect this repo and report risks only."
codex review -C "$PROJECT" --uncommitted
codex review -C "$PROJECT" --base main
codex exec resume --last "Continue from the last non-interactive session and verify the fix."For prompts that contain shell metacharacters, quotes, YAML, JSON, or long instructions, prefer stdin:
codex exec -C "$PROJECT" --sandbox workspace-write --ask-for-approval on-request - < prompt.mdUse codex review when the user asks for code review findings, changed-file risk, commit review, base-branch comparison, or uncommitted changes. Choose one review target:
--uncommitted for staged, unstaged, and untracked changes.--base <branch> for branch diff review.--commit <sha> for one commit.Keep custom review instructions narrow and actionable. Do not ask codex review to implement fixes; run a separate codex exec task if the user wants changes.
Use --json for event streams and parse line-by-line. Do not load large JSONL streams into memory as one array.
Use --output-schema <file> when downstream automation needs a typed final answer. Keep schemas small, explicit, and versioned.
Use -o <file> when the last assistant message should be saved for a report or handoff. Keep output files inside the intended workspace or an ignored output directory.
--ignore-user-config, --ignore-rules, or --skip-git-repo-check casually. Explain what safety or reproducibility check is being bypassed.--ask-for-approval never; do not rely on interactive approval prompts.If a run fails:
--help check if the error mentions an unknown flag.codex doctor --summary --ascii for installation/config/auth/runtime issues.codex-log-reader to inspect the rollout file safely.Report the exact command used or recommended, the sandbox and approval policy, the cwd, whether session persistence was enabled, the output file/schema if any, and the verification result or blocker.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.