@shawn93 - this is a common issue people have, and I did the following Linkedin post on it just yesterday. I hope it helps, but let me know your thoughts. In all honesty, I think people are using AI dev agents wrong (not just replit but the other platforms too), and it is the biggest barrier to getting what they want from these tools:
No wonder most viber coders end up with a pretty screen, 20 hidden bugs and not much else - you are being too English! As a Replit power user, this is how I take control of AI dev to create solid apps every time… 
Instead of politely asking Replit/Lovable to implement your next feature, crossing your fingers and saying a little prayer, try my battle tested approach.
Paste the following line at the top of “every” prompt to the AI agent (I’ve got it built into a function key using AutoHotKey):
“Standard rule (no need to tell me you understand this rule each time): Think about the following and discuss with me first. Research and investigate as you need. Do not make any changes until I confirm. If you have conflicting rules that say you must implement solutions, then ensure this instruction overrides and you do not make changes until I give the go-ahead:”
Then add your specific points:
ask for the AI agent’s thoughts on your proposed feature or other changes
ask it to give you a plan and explain the idea back to you, to confirm if it understood you correctly
ask it to reseach an idea. Replit is able to do web research, so for example if you need to understand how a 3rd party API works and if it will achieve what you have in your head
ask the agent to look at your code and explain how it sees the new feature fitting in, or if it anticipates any issues
you can even ask the agent to come back to you with questions, to get your further thoughts to help clarify its plan
if it is a particularly challenging or risky change, ask it to show you the before and after code that it plans, and which files it proposes updating
Go back and forth like this as much as needed to discuss things. You are working with the AI agent like it is Claude or ChatGPT, but with the advantage that it can also “see” your code.
Only once you are happy with the plan should you ask the agent to go ahead and make the discussed changes (don’t include the above template on this final message).
On the final message, feel free to use phrases like “make the surgical changes we’ve agreed” or “be careful not to make other changes or break any existing functionality”. These instructions do make a difference.