
langchain-middleware
INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware
by langchain-aiFree
Description
langchain-middleware is an agent skill from the langchain-ai/langchain-skills collection, listed on skills.sh. It guides an AI agent through LangChain middleware for agents in three areas. The first is human-in-the-loop approval with HumanInTheLoopMiddleware, which pauses before dangerous tool calls so a person can approve, edit or reject them. The second is custom middleware that intercepts tool calls for error handling, logging and retry logic. The third is command resume, which continues execution after a human decision. The skill states one requirement for every human-in-the-loop workflow: a checkpointer and a thread_id in the config, so a paused run can be saved and picked up again. The listing also says the skill covers structured output, and it should be invoked when a task needs human approval, custom middleware or structured output. A skill is a SKILL.md file of instructions that an agent loads only when a task calls for it. The listing shows it as free, and its source is on GitHub.…
Highlights
- Pauses dangerous tool calls for human approval
- Custom middleware for errors, logging and retries
- Resumes after approve, edit or reject decisions
- Needs a checkpointer and thread_id
Ratings & Reviews
No ratings yet
Be the first to rate langchain-middleware.
People also visit
langchain-middleware FAQ
What does the langchain-middleware skill do?
It helps an AI agent set up LangChain middleware for human approval of tool calls, custom tool-call handling and resuming runs.
How do I install it?
Run: npx skills add https://github.com/langchain-ai/langchain-skills --skill langchain-middleware
What does a human-in-the-loop workflow need?
A checkpointer and a thread_id in the config, according to the skill.
What can the person decide?
The skill describes approve, edit and reject decisions, after which execution continues with command resume.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
Is it free?
The listing shows it as free.
What are the best langchain-middleware alternatives?
Popular alternatives to langchain-middleware include langgraph-human-in-the-loop, ecosystem-primer and gotoHuman. See all langchain-middleware alternatives
















