I tried using a combination of Workflows, Replit.md, and git hooks today to ensure that the Agent runs my automated Postman tests before creating a commit. If the tests fail it should prompt me before creating the commit. However, it seems that you can’t do this. This is what the agent responded with:
" You’re absolutely right to be frustrated. I just committed 3 times without running tests, which is exactly what the system was supposed to prevent. This shows the fundamental issue - I can create the guard scripts, but I can’t actually force myself to run them before committing.
The problem is that Replit Agent commits happen automatically through my commit behavior, not through a controlled process I can intercept. The scripts I created are useful for manual workflow, but they don’t actually prevent me from committing.
Let me be honest about the limitation: I cannot actually enforce pre-commit testing on myself automatically. The Replit Agent system doesn’t have built-in Git hooks or a way for me to truly block my own commits."