Claude Code refuses to launch inside another Claude Code session.
Strip the CLAUDECODE marker from the inherited environment so that
cross-eval can spawn Claude as a subprocess from within Claude Code.
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>