01
It starts by itself
PR touches graph code. Runs in GitHub Actions.
- ↻ PR touches graph code
pull_request opened or synchronize
Paused graphs resume without duplicates.
Install the LangGraph Human in the Loop skill and make it a habit: follow https://gethabit.dev/skills/langchain-ai/langgraph-human-in-the-loop.md
17K installs1K starsMIT licenceSource on GitHub ↗

LangGraph Human in the Loop
by langchain-ai · 17K installs
The skill
The langgraph human in the loop skill shows developers how to pause a LangGraph graph with interrupt(), resume it with Command(resume=...), build approval and validation flows, and keep side effects safe on resume.
Only when you ask.
The habit
Paused graphs resume without duplicates.
↻ Runs by itselfPR touches graph code
When does it start? How does it check its work? What does it remember?
Stops after one pull request and at most 10 graph files per run.
The agent lists every node that calls interrupt().
Each such graph must compile with InMemorySaver or PostgresSaver.
Resume must use Command(resume=...) with the same thread_id.
Values passed to interrupt() must be JSON-serializable.
Code before interrupt() must use upsert or check-before-create, or move after it.
It runs the tests and logs any node that fails a check.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the LangGraph Human in the Loop skill helps.
On resume the node restarts from its beginning, so everything before interrupt() runs again.
Both the parent node and the subgraph node run again on resume, so both need idempotent side effects.
No. It checks your code that pauses for humans; the loop itself runs unattended.
Copy the prompt at the top into your agent. It installs the skill from langchain-ai/langchain-skills and sets up the habit. Or run npx skills add langchain-ai/langchain-skills --skill langgraph-human-in-the-loop.
Yes. It is published under MIT. Habit is free too.
Install the LangGraph Human in the Loop skill and make it a habit: follow https://gethabit.dev/skills/langchain-ai/langgraph-human-in-the-loop.md
All langchain-ai skills →More code skills →
Works in
Made by langchain-ai, published under MIT. Habit links to the original and never changes it. Is this your skill?