Best process I have found so far is
1 write your issue in GH
2 write a process doc locally for your AI to follow so that on a new session its bootstrap is:
1 reads process doc
2 reads GH issue and all comments
3 checkout new branch
4 code
5 add commit and push new branch with comment
Then you engage to review at that time
If it needs tweaks or whatever, make them
If its context is starting to blow out, start a new session and have it read comments and diffs in its bootstrap
If it has failed too badly:
1 have it write a post mortem and add as comment to the GH issue
2 delete branch and session
3 start again, and its bootstrap will be enhanced by the post mortem of the failed session
nostr:nevent1qqsvxlllaxhud6j9u448xazcksar5rm06frp5e3kqmtg44kfx8eeh4spzemhxue69uhhyetvv9ujumt0wd68ytnsw43z7q3qnje4ghpkjsxe5thcd4gdt3agl2usxyxv3xxyx39ul3xgytl5009qxpqqqqqqznrmly9