'history' paint mode in GIMP


Any tips for making a ‘history’ brush paint mode in GIMP? I’m attempting to paint directly, on one layer only. A history brush would solve an issue. Something that clones the image as it was in two actions before the history brush is applied.

For example, you have a finished bit of paintwork, you paint a highlight on top of it, you select the history paint mode, you shape the highlight with another few history strokes, then return to painting.