What I want (which I don’t think exists?) is a way to trigger turns that the user can monitor in the codex application. I.e., when event X happens, my application triggers Codex to take a turn with input Y, which the user can monitor through codex. Right now the only way to get close to this is with polling or essentially rewriting a codex-like frontend.
I just wrote my own VR harness in a weekend with Astra. It mentioned an SDK for exactly this in passing, but it was an experimental personal project so I didn’t bother to review the code.
I was doing exactly what you’re describing. I think this is a ToS violation for anything other than personal use though.
Basically how Cursor Cloud Agents work?
You can give the agent a tool (or bash script) which waits for events. Agent calls it and the tool sleeps until an event happens then returns it to the agent.
do you mean like a cloud agent provider? What we're working on at noriagentic.com may be relevant -- you can fire events from slack/web/cli to kick off an agent in a box and talk to it as if it was running local