AI agents as explicit state machines | Hacker News Reader