Repository navigation
Run-completion webhooks so outside agents don't have to poll #36052
Replies: 2 comments
|
Saw #36038 got closed in favor of MCP events, makes sense. Is there a rough shape for that yet? My use case is an outside agent that needs a push when a run finishes or gets stuck waiting on an approval, a question, or secret input, instead of polling. Happy to help build it if there's a direction you'd take. |
|
+1 from another T3 user. T3's "wake" also doesn't actually wake a thread today, and I'd like it to. I agree on the polling cost too. We measured it and events are a significant cost savings over polling. https://wakeshift.ai/blog/mcp-events-cost-of-waiting MCP Events (SEP-3415) fit this well. T3 lists its events, like a run finishing, failing or waiting on input. The outside agent subscribes and picks how they arrive: over the open connection, by webhook or by polling. However, the spec isn't final and few clients subscribe yet. Claude Code and Codex notably don't support it. I'm building Wakeshift to cover that gap. It lets AI agents subscribe to MCP Events from your server, and wakes them the moment those events happen. |
Uh oh!
There was an error while loading. Please reload this page.
I drive T3 Code from an outside agent over MCP: it launches a thread, then waits for the run to finish. Right now the only way to know a run is done is to keep calling
t3_thread_wait, about every 45 seconds. On long runs that burns real tokens and context on the agent side just to hear "still going."Idea: let an outside client subscribe to a run and get a signed HTTPS callback when it completes, fails, or needs input. The agent can then sleep until it's woken.
I built a proof of concept to see if it holds up: #36038. I know feature PRs from outside aren't wanted, so treat it as a sketch, not a merge request. The rough shape:
t3_run_webhooktool that watches the run returned by launch or sendWould love to know if this fits where outside-agent support is headed, or if there's a better approach you'd prefer.
All reactions