| name | langchain-agents-scaffold |
| description | Use when creating a new LangChain / LangGraph / DeepAgents project from scratch. Picks the right scaffolder for graphs vs. DeepAgents vs. LCEL chains. |
Scaffolding LangChain ecosystem projects
There is no single scaffolder that covers all three project shapes. Pick the right path:
| Project shape | Scaffolder |
|---|
| LangGraph agent (explicit StateGraph) | langgraph new (from langgraph-cli) |
| DeepAgents agent (planning + sub-agents + virtual FS) | No scaffolder — write ~15 lines yourself (recipe below) |
| LCEL pipeline (chains, RAG, classification) | No scaffolder — write ~10 lines yourself (recipe below) |
LangGraph: langgraph new
pip install "langgraph-cli>=0.4"
langgraph new my-agent --template react-agent
cd my-agent
pip install -e .
langgraph-cli ships several templates. List them with langgraph new --help. Common picks:
react-agent — single-LLM-with-tools loop. The most common starting point.
retrieval-agent — RAG over a vector store.
memory-agent — long-term memory using the LangGraph store.
data-enrichment-agent — structured data extraction.
Each template ships its own pyproject.toml, langgraph.json, and src/<package>/graph.py — read those after scaffolding to learn the layout. The conventions vary.