I have been working on a very big app with a lot of files, and a growing cache, logs and attached_assets folders.
As time progresses, I find the agent lasts for shorter and shorter periods before it is TTR (time to replace).
It dawned on me last night that the reason for this is the growing number of files. I tried asking the agent and it pretty much admitted that yes, when it needs to do a search for something, it is basically looking through everything.
So the bigger your app gets, the faster the agent’s context (memory) will fill up and it starts down its road of hallucinating and going round in bonkers circles.
Two ideas:
-
I recommend people ask agent now and then to analyse all the folders and give you candidates for which can potentially be purged. And then get it to do it
-
Replit need to create the concept of a replit.ignore file. Like gitignore, this will tell the agent to ignore certain folders/files when it is working. As a way to keep its memory/context as clean as possible.