Claude Code as a library. A small agent you can paste and run, how permissions really behave when there is no human to ask, and when claude -p is the better answer. Verified against SDK 0.3.223.