Repo-wide search is one of the easiest ways to ruin an agent session. The main thread reads dozens of files, follows dead ends, and keeps all that intermediate context around while trying to implement a focused change.
Claude Code subagents are a useful escape hatch. They run in isolated context,