Agent Precondition and Postcondition

Hello. In cursor agent mode, it would be great if we could tell the cursor ‘do this’ before each operation and ‘run this command’ or ‘remember this prompt’ after each operation. In this way, we could commit on github after each operation.