langgraph-multi-agent
Skill0 starsChanged 6 months agoMITView on GitHub
Designs and implements stateful LangGraph workflows with checkpoints, human approval, and tool nodes. Use when building LangGraph agents, state graphs, HITL flows, or migrating chains to graph-based orchestration.
In this repository14 other files it gives its agents.
- a2a-agent-delegationSkill
- agent-memory-patternsSkill
- agent-observabilitySkill
- agent-redteam-securitySkill
- browser-agent-automationSkill
- build-mcp-serverSkill
- create-production-skillSkill
- cursor-sdk-automationSkill
- deploy-agent-productionSkill
- evaluate-agent-qualitySkill
- github-ci-agentsSkill
- multi-agent-supervisorSkill
- rag-agent-pipelineSkill
- secure-mcp-serverSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 57
Keep orchestration in LangGraph.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LangGraph Multi-Agent
When to use LangGraph
- Long-running sessions need checkpointing and resume
- Branching logic (if/else) must be explicit, not prompt-only
- Human-in-the-loop (HITL) approvals between steps
Minimal graph pattern
from langgraph.graph import StateGraph, START, END
from typing import TypedDict, Annotated
import operator
class State(TypedDict):
messages: Annotated[list, operator.add]
def planner(state: State) -> State:
# call LLM; append message
return state
def tool_executor(state: State) -> State:
# run tools; append results
return state
builder = StateGraph(State)
builder.add_node("planner", planner)
builder.add_node("tools", tool_executor)
builder.add_edge(START, "planner")
builder.add_conditional_edges("planner", route_fn, ["tools", END])
builder.add_edge("tools", "planner")
graph = builder.compile(checkpointer=checkpointer)Workflow
- [ ] Define State TypedDict (only fields you need)
- [ ] One node per responsibility (plan, act, reflect)
- [ ] conditional_edges for routing (not mega-prompts)
- [ ] compile(checkpointer=...) for persistence
- [ ] interrupt_before for HITL on sensitive nodesMCP integration
- Tools live on MCP servers; graph nodes call MCP client, not ad-hoc HTTP
- Keep orchestration in LangGraph; keep side effects in MCP tools
- Pair with
multi-agent-supervisorwhen multiple role-specific subgraphs exist
Observability
- Tag runs with
thread_idanduser_id(hashed) - Export traces to LangSmith or OpenTelemetry (see
agent-observability)
Common mistakes
- Storing full chat history in state without trimming → use summarization node
- Cyclic graphs without max step guard → set
recursion_limit - Single node doing plan + act + evaluate → split nodes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

