So, after the first three updates following your initial prompt, I would recommend that every future update be split into two types. The first is a major update that requires significant additions to the webpage database or the application’s logic structure. The second is a simple update that only requires changes to the structure of a single page or function.
For the second type of change, you should exclusively use the assistant to handle it, only involving the agent when the assistant cannot complete the change due to extensive contextual tracking. I have found that this often happens to me because I try to make too big of a change in a single prompt.
The second technique I recommend you employ immediately is checking the progress window anytime you’re going to make a change. The agent will inform you of all the pages it will modify, and the assistant will do the same. Check these changes, pages, and functions they are updating before committing to a particular update. There have been many times when I caught errors before they appeared just by checking these logs. In the case of the agent, I was able to quickly undo a change and try again with a slight variation of the request based on the error I noticed in its logic.
I think these two strategies will help you a great deal. Essentially, they make the beginning of your project not as fast and easy, but they cap the complexity and frustration you will feel as the project progresses. You give up the easy start for a slightly more challenging beginning that maintains the same level of difficulty all the way to the end. As a result, you avoid the infuriating and almost impossible drag across the finish line.
Another thing that has saved me a lot of time is having conversations with the assistant about the changes that were just made. If I don’t understand why the agent is making a particular change to a page or function, I will copy that into the assistant and ask it to explain the logic behind the change to me. If I don’t agree with the logic, then I will not commit that change.
Also, those conversations with the assistant are free, so you can have as many as you like. It’s better to measure and work through the logic five times for every commit than to commit and start building on faulty logic, only to run into errors later when you have no idea where the issue started.
Finally, if you find yourself deep down the rabbit hole with errors that seem to be self-replicating and cascading out of control, bring ChatGPT into the loop. Copy over your errors and your code, and painstakingly work through them with ChatGPT to figure out what’s going on.
Ultimately, do not be afraid to start over from scratch. I cannot explain how many times I have reached $50 into creating an application where 40 of those dollars were spent trying to fix a single error. When I just gave up on the project and started over with a fresh initial prompt that took into consideration all the frustrations I had been dealing with, the agent implemented everything flawlessly on the first try. So basically, what took me $40 to unsuccessfully resolve was fixed in 25 cents.
I know this is very hard because once you invest a lot of time and money into a project, it’s hard to just give up on it. This is expected because of the sunk cost fallacy that affects all of us as human beings. But trust me, sometimes it’s better to just cut your losses and start over.
I hope this helps. Let me know if you’ve been doing any of these things already.