langchain-agents-scaffold
- Repo stars 0
- Author repo skills-registry
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" # if not installed
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. Do not assume the layout matches across templates. The conventions vary.
DeepAgents: write the file directly
There's no deepagents new. Create the project by hand:
mkdir my-deep-agent && cd my-deep-agent
python -m venv .venv && source .venv/bin/activate
pip install \
"deepagents>=0.5.3" \
"langchain>=1.2" \
"langchain-anthropic>=1.4" \
"langsmith>=0.7"
mkdir agent
Pin floors matter: deepagents>=0.5 removed the legacy subagents API and added async sub-agents; 0.5.2 added the filesystem permissions system; 0.5.3 made model=None a deprecated kwarg (you must pass an explicit model) and added structured outputs for sub-agent responses.
Then agent/__init__.py (empty) and agent/agent.py:
"""DeepAgent for my-deep-agent. Always exported as `agent`."""
from deepagents import create_deep_agent
from langchain.chat_models import init_chat_model
SYSTEM_PROMPT = "You are my-deep-agent, a helpful agent."
TOOLS = [] # add user tools here
SUBAGENTS = [] # add sub-agents here (see deepagents-code skill)
agent = create_deep_agent(
model=init_chat_model("anthropic:claude-sonnet-4-6"), # explicit model required as of 0.5.3
tools=TOOLS,
subagents=SUBAGENTS,
instructions=SYSTEM_PROMPT,
)
Plus a pyproject.toml (or requirements.txt) and a .env with ANTHROPIC_API_KEY and LANGSMITH_*. That's the whole project.
For deploy: DeepAgents' create_deep_agent returns a compiled LangGraph, so a langgraph.json pointing at agent.agent:agent works for langgraph dev and langgraph build/deploy.
LCEL chains: write the file directly
For non-agentic flows (RAG, summarization, classification):
mkdir my-chain && cd my-chain
python -m venv .venv && source .venv/bin/activate
pip install "langchain>=1.2" "langchain-openai>=1.0" "langsmith>=0.7"
mkdir agent
Then agent/agent.py:
"""LCEL chain. Exposed as `agent` (a Runnable)."""
from langchain.chat_models import init_chat_model
from langchain_core.messages import HumanMessage, SystemMessage
from langchain_core.runnables import RunnableLambda
SYSTEM_PROMPT = "You are a helpful assistant."
def _to_messages(payload: dict) -> list:
msgs = [SystemMessage(content=SYSTEM_PROMPT)]
for m in payload.get("messages", []):
msgs.append(HumanMessage(content=m["content"]))
return msgs
agent = RunnableLambda(_to_messages) | init_chat_model("openai:gpt-4o-mini")
For RAG, see the langchain-agents-langchain-code skill.
Naming conventions worth following (not enforced)
These are conventions, not requirements. They make follow-up work easier because every other skill in this bundle assumes them:
- The runnable artifact is named
agentand lives atagent/agent.py. - Provider keys and
LANGSMITH_*go in.env. Commit a.env.example. - Evalsets live under
evals/datasets/*.jsonl; the eval runner atevals/run.py. - A FastAPI host (if needed for Docker/Cloud Run deploy) lives at
server/app.py.
Skills that follow assume these names. If the project diverges, adapt — these are not hard rules, just the path of least resistance.
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: cwijayasundara/agent_cli_langchain — distributed by TomeVault.
- Fluxly category
- AI
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @tomevault-io · no license declared
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Manual integration
- External API key
- Required · Anthropic
- Detected OS requirements
- Docker
- Runtime requirements
- Python · Docker
- Detected file/system behavior
-
- Read-only
- Write / modify
- Env read
- Detected network behavior
- External requests
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. 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.
There's no deepagents new. Create the project by hand: Pin floors matter: deepagents>=0.5 removed the legacy subagents API and added async sub-agents; 0.5.2 added the filesystem permissions system; 0.5.3 made model=None a deprecated kwarg (you must pass an…
For non-agentic flows (RAG, summarization, classification): Then agent/agent.py: For RAG, see the langchain-agents-langchain-code skill.
These are conventions, not requirements. They make follow-up work easier because every other skill in this bundle assumes them: The runnable artifact is named agent and lives at agent/agent.py. Provider keys and LANGSMITH go in .env. Commit a .env.example.
# 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`
```bash
pip install "langgraph-cli>=0.4" # if not installed
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. **Do not assume the layout matches across templates.** The conventions vary.
## DeepAgents: write the file directly
There's no `deepagents new`. Create the project by hand:
```bash
mkdir my-deep-agent && cd my-deep-agent
python -m venv .venv && source .venv/bin/activate
pip install \
"deepagents>=0.5.3" \
"langchain>=1.2" \
"langchain-anthropic>=1.4" \
"langsmith>=0.7"
mkdir agent
```
… Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> LangGraph: langgraph new → DeepAgents: write the file directly → LCEL chains: write the file directly → Naming conventions worth following (not enforced)
terms -> Do not assume the layout matches across templates. · There is no single scaffolder that covers all three project shapes. · langgraph-cli ships several templates. · Each template ships its own pyproject.toml, langgraph.json, and src/<package>/graph.py — read those after scaffolding to learn the layout. · There's no deepagents new. · Plus a pyproject.toml (or requirements.txt) and a .env with ANTHROPICAPIKEY and LANGSMITH. · For RAG, see the langchain-agents-langchain-code skill. · These are conventions, not requirements.
files/cmd -> langgraph new · langgraph-cli · langgraph new --help · react-agent · retrieval-agent · memory-agent · data-enrichment-agent · pyproject.toml
body sha256 -> 90e001b39d42
Decide Fit First
Design Intent
How To Use It
Boundaries And Review