Hacker News new | ask | show | jobs
by 2001zhaozhao 41 days ago
> Headless mode (-p) allows easily running agents inside scripts and automations. The CLI also provides full ACP support to build your own bots and agent orchestration apps.

Good, they are explicitly supporting automation similar to OpenAI.

2 comments

Pretty sure they all do.

$ claude -h

Usage: claude [options] [command] [prompt]

Claude Code - starts an interactive session by default, use -p/--print for non-interactive output

$ gemini -h

Usage: gemini [options] [command]

Gemini CLI - Defaults to interactive mode. Use -p/--prompt for non-interactive (headless) mode.

$ copilot -h

Usage: copilot [options] [command]

GitHub Copilot CLI - An AI-powered coding assistant.

Start an interactive session to chat with Copilot, or use -p/--prompt for non-interactive scripting.

Anthropic has made a recent change that Claude Code will only bill extra usage for the print / non-interactive mode:

> Starting June 15, 2026, Claude Agent SDK and claude -p usage no longer counts toward your Claude plan’s usage limits. Your subscription usage limits stay the same and stay reserved for interactive use of Claude Code, Claude Cowork, and Claude.

What does "no longer counts" mean here? Is it going to be free on automated runs? Is it going to be banned entirely on sub and will work with credits only?
Counted separately, and you get an included amount of tokens equal to the cost of your subscription.

https://support.claude.com/en/articles/15036540-use-the-clau...

Billing is a separate issue from whether automation is explicitly supported.
Not in this context, obviously "Claude" support automation as it's also available since always via API, it's obvious poster was talking about subsidized usage.
yes! we wanted to make sure that the binary works in your editors or via `-p`, no point in standing guard to how you would want to use it.