If you run AI agents unattended on a Mac (Claude Code in iTerm, a launchd job driving osascript , Hammerspoon clicking buttons), you've probably woken up to find nothing happened overnight. The cause is usually one dialog sitting on an unwatched screen: "Terminal" would like to control "System Events" . That's macOS TCC (Transparency, Consent and Control). Here's how to set it up once so it stops eating your nights. The key idea: permissions belong to the host app TCC grants...