@[email protected] @[email protected] Please, please. As a couple of years ago I wrote an agentic framework (before the surrounding landscape got rather better defined) I can tell you that you're missing the true depth and complexity here.
It's a loop that runs so slowly and unreliably you need to persist steps to have a hope of it running successfully, and which needs subloops to repeatedly tell it to try again when it attempts to use other software until it gives valid input. Then you rewrite the stack trace so that only the correct trigger is stored in the hope you don't run out of effective memory before actually doing whatever it is you're trying to do. It's so much more than a loop!