Descriptions:
This hands-on video from the All About AI channel explores how to run Claude Code and Codex as headless, non-interactive agents from the command line — a setup the creator argues will become increasingly important for automation and multi-agent orchestration. The core mechanics covered include Claude Code’s `-p` flag for query-based invocation, Codex’s `exec` command, and OpenCode’s `run` subcommand, all of which allow AI coding agents to operate without a GUI or persistent interactive session.
The most distinctive demonstration is a Minecraft private server where multiple headless Claude and Codex instances (running on models including GPT-4.5 mini and GLM 5.1) act as in-game companions, responding to chat commands and taking coordinated in-world actions. Alongside this, the creator built a custom “headless bridge” — a relay system that allows Claude, Codex, and OpenCode agents to exchange messages with each other and with a human operator, including safeguards to prevent infinite inter-agent loops.
Additional CLI features demonstrated include the `–system-prompt` flag for injecting custom personas (the video tests a pirate-voice system prompt) and file-path-based prompt loading. A homemade monitoring dashboard tracks input tokens, cached tokens, output tokens, reasoning tokens, and estimated per-session costs in real time across up to four concurrent agent instances — providing a practical lens on the economics of running warm headless agent pools.
📺 Source: All About AI · Published April 26, 2026
🏷️ Format: Tutorial Demo







