Instruct the agent to be in the git head of the repository in the appropriate branch
Instruct the agent to be in the git head of the repository in the appropriate branch, then to read the files it assumes it will edit, I ensure it's using the latest version of everything. This prevents many errors caused by hallucinations like outdated functions in a use case, which leads to wasted time fixing the same problem repeatedly.
It's also important to tell it to validate that the files exist and are in the correct path. This way, the chain of thought process iterates automatically until it finds the correct files.
I've been using this method since the update, and my experience has changed dramatically. I use Firebae Studio for about a month, roughly 14 hours a day, so I've really been able to experience the improvement. I hope this helps others.