The crux is to know where your attention is needed and quickly get the full context of the task when you come back.
That’s why I built Codehydra https://github.com/stefanhoelzl/codehydra