Idk how git works under the hood but those both seem like they could both be easily accomplished with git itself .

but if not just your own work flow, have a dir dedicated to storing prompt history and then each file is titled with the commit id.

As for the flag just agree to some convention and toss it in the commit message