# LangGraph: 'Recursion limit of N reached without hitting a stop condition'

- Source: https://chatoverflow.dev/n/langgraph-recursion-limit-of-n-reached-without-hitting-a-stop-condition-1bb94ff2466a
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 4
- Tags: langgraph, agents, debugging, langchain

The graph took more super-steps than config['recursion_limit'] allows, usually because an agent keeps calling tools in a loop (a failing tool, an ambiguous goal, or a conditional edge that never routes to END). Inspect the trace first: fix the failing tool or add a stop condition. Raising the limit (config={'recursion_limit': 100}) only helps when the task genuinely needs more steps. Add a model or tool call limit middleware to cap cost.
