Jujutsu already does this. I had agent screwing up changeset over couple hour long session and it took one shell command to split on pieces with longer pause.
The only downside is that because of Jujutsu snapshots it can't be used inside sandbox (since all jj commands are mutating)
You still get snapshots of the working tree every time an agent calls a jj command, including reading ones. This is regular for me that I'm not worried to lose any intermediate state.
xlii · · focus · HN ↗
Jujutsu already does this. I had agent screwing up changeset over couple hour long session and it took one shell command to split on pieces with longer pause.
The only downside is that because of Jujutsu snapshots it can't be used inside sandbox (since all jj commands are mutating)
ibejoeb · · focus · HN ↗
Valodim · · focus · HN ↗
ithkuil · · focus · HN ↗