What
Running Claude Code non-interactively with --environment now creates a cloud session straight from the command line. It prints the title, session id, view URL and a resume hint, or with --output-format json emits an object with ok, session_id, url and pool_id. A prompt is required, as a positional argument or on stdin, and its absence is a hard error.
Details
- previously this path needed an interactive terminal
- new counters
tengu_remote_create_session,tengu_remote_create_session_successandtengu_remote_create_session_errorare tagged withentry_point: pool_headless
Usage
claude --environment my-pool -p "fix the failing test" --output-format jsonEvidence
Error: non-interactive --environment requires a prompt (positional or stdin). Run from a TTY for an interactive cloud session.
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundle--environment