12 Claude Code and Codex CLI Flags for Running AI Agents From Scripts on Your Mac (2026)
If your agent scripts still pass --full-auto to codex exec , they're out of date. OpenAI's non-interactive mode docs now say the flag is no longer supported. Both big coding agents have quietly grown a solid set of flags for running without a chat window: in a shell alias, a git hook, a cron job or CI. Here are the 12 I'd learn first, all checked against the official docs this month. Claude Code…
As you read through the 12 Claude Code and Codex CLI flags for running AI agents from scripts on your Mac, keep in mind that some of these flags have already found their way into your shell aliases. The remaining flags offer powerful features that could streamline your workflows, but they may require some additional setup or configuration. Take a moment to review each flag and consider which ones would be most beneficial to incorporate into your scripts.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to