little cups of claude

tips and techniques for Claude and Claude Code

Cups tagged “Workflows”

Today we'll look at running Claude Code without the interactive UI, which turns it into a building block for scripts, CI, and cron jobs. The -p flag (short for --print) is the key. It sends one prompt, lets Claude work, prints the result, and exits. The same engine powers the Agent SDK, so anything we learn here...

Read cup #4: Headless Mode