A simple tool-calling loop collapses on a 100-step task. Deep agents fix it with planning, sub-agents, and a file system as memory — the long-horizon agent pattern.