
Psychoscript: Bytecode VM Enables Pause/Resume for AI Agent Scripts
OpenCode's Psychoscript compiles agent scripts to bytecode, capturing execution position, variables, and promise wait chains into snapshots that can be restored in a different process, solving the challenge of resuming long-running agent tasks after restarts.