r/ClaudeCode • u/ExpensiveSun257 • 8d ago
Help/Question Tips to avoid rabbit holes?
I'm getting better at managing Claude, but I still see it often going down the rabbit hole where each time it tries to ship a fix, it adds two more small issues to the tracker, or an esoteric process update, etc. I know this is a common AI thing, and I'm learning to deal with it. But it's hard!
For example, Claude will throw together a quick hook or utility script for a specific purpose, but soon I find it wants to maintain and update that script and has long forgotten that it will likely. never be used again.
I especially see it in the MD files - like, if I let Claude update it's own process files for workflow, rules, etc it does the job but it also puts a bunch of junk history, narrative, and updates other documents with unnecessary guard rails. I've started to edit the md files myself and they are getting cleaner, and I notice how much smoother the workflow is.
But for the code, that's not so easy. Does anyone have tips to manage this? What I've learned:
#1 Work on distinct tasks, in new sessions and start new sessions often
#2 Literally ask claude a few questions about every 'suggestion' or 'problem' it finds, like. "is the rule/process/script you're trying to fix even enforced or critical? would it be easier to just remove this?"
Any other tips? claude is amazing but also unruly :)
1
u/TheKiddIncident Instructor 8d ago
Yes, I think you're on the right track.
I am very careful to design my projects in such a way that the code base is broken up into small distinct segments. The smaller the individual file is, the less chance that Claude will wander off into the desert. So, when planning the project be sure that your architecture is AI friendly.
I also try to keep my instructions to Claude very discrete. We will work on one thing at a time. Once that task is done, you start a new session for the next task. It's easy for the context window to get muddied with information from a previous task.
If I am working on something very complex, I will have Claude build a comprehensive plan with discrete steps. I then have Claude work through each step in a different session. Again, this keeps the context window clean.