A save-game.
Every step of the agent is checkpointed per conversation thread. Crash, stop for a human, come back tomorrow: it picks up from the last save. Great for long, branching quests.
Both run AI agents that call tools. LangGraph draws your agent as a flowchart and saves every step, so it can pause and pick up later. theloop takes one request, runs the loop and forgets. Your system keeps the memory.
Every step of the agent is checkpointed per conversation thread. Crash, stop for a human, come back tomorrow: it picks up from the last save. Great for long, branching quests.
One coin, one run, then a clean slate. Your system keeps the high score, which is the conversation history, and feeds it back in with the next coin.
| Question | LangGraph | theloop |
|---|---|---|
| What is it? | A framework for agents as graphs, in Python and JavaScript. Plus Agent Server, the server in LangSmith Deployment | A stateless HTTP service. Run it with Docker or Node |
| You describe the agent as… | Nodes and edges, in code | A JSON request: model, prompt, history, tools, limits |
| Where state lives | Checkpoints per thread. Agent Server keeps assistants, threads and runs in Postgres, plus Redis | In your database. The engine has no DB, no threads, no configs |
| Waiting for a human | interrupt() pauses the graph, and you resume it on the same thread |
A write tool answers deferred. You approve in your system, and the next run carries on |
| Server dies mid-run | Resumes from the last checkpoint LangGraph wins | The run is lost, and you're told so. Retry with the same history: no double writes |
| Many customers | Their threads and assistants live in its storage | Nothing to set up per customer: each request brings its own prompt, tools and key |
| Calling it | Python or JS SDK, or Agent Server's HTTP API | One POST /runs from anything that speaks HTTP |
| Best at | Long, branching, multi-agent workflows | One assistant loop inside your product, done carefully |
The honest trade-off. theloop deliberately skips step-by-step durable execution. If a run dies, you start a new one with the same history. If that sounds scary for your workflow, LangGraph is the right tool.