1. Headless mode Headless mode allows you to use the AI as a command-line utility for automation and scripting. In Claude Code you run it with the -p flag: claude -p, in codex - exec, opencode - run.

Source: [Hacker News](https://news.ycombinator.com/item?id=48520757)

Sponsored