My extension in vscode have auto resume already, you use GUI to write workflows and run them right them.
https://marketplace.visualstudio.com/items?itemName=Codingwo...
You can even pause. I will public a CLI that is doing same base on same syntax. And it use github claude action yaml syntax: https://github.com/codingworkflow/claude-runner/blob/main/.g...