Claude -p (print mode) is non-interactive but retains full tool access
(Edit, Write, Bash, etc.) with --dangerously-skip-permissions. Removing
-p caused Claude to enter interactive mode which requires a TTY and
produces zero output when run as a subprocess with piped I/O.
Now delivers prompt via stdin for both Claude and Codex in agentic mode.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Without -p, Claude enters interactive mode and waits for more input
indefinitely. Setting input="" closes the stdin pipe immediately,
causing Claude to process the positional prompt and then exit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The agentic invocation path inherited -p (print mode) from _CLAUDE_BASE_ARGS
but only stripped the stdin sentinel "-". Print mode makes Claude a one-shot
text completer that cannot use tools or write files, resulting in zero diffs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>