Wrap Claude Code in a PTY session for process-based print mode output with JSON or stream compatibility.