Works with the AI Agents you already use
LangChain 0.3 to v1 Migration: Scan, Fix, Prove
by Hamza Alayed
Finds every LangChain 0.3 / LangGraph 0.4 line that breaks on 1.x, fixes it, and proves it with a re-scan, import check and agent smoke test.
$1
LangChain 0.3 to v1 Migration: Scan, Fix, Prove
Example session with this skill installed
Our support bot is on langchain 0.3.27 and langgraph 0.4.10. Migrate it to LangChain v1 and prove it still works.
- Read your context and instructions
- Compiled the langchain 0 3
LangChain v1 Migration Report — support-bot
Status: PARTIAL (all checks pass; 1 langchain_classic stopgap left)
Before: langchain 0.3.27, langgraph 0.4.10, Python 3.13 After: langchain 1.5.2, langgraph 1.2.24
Scan summary
| Before | After | |
|---|---|---|
| BLOCKER | 8 | 0 |
| WARN | 2 | 0 |
| REVIEW | 3 | 1 (answered) |
Changes (excerpt)
| # | File:line | Rule | Before | After |
|---|---|---|---|---|
| 1 | app/support_agent.py:1 | LC003 | from langchain.prompts import ChatPromptTemplate | from langchain_core.prompts import ChatPromptTemplate |
| 3 | app/support_agent.py:3 | LC005 | from langchain.text_splitter import … | from langchain_text_splitters import … |
| 7 | app/support_agent.py:23 | LG008 | tools=ToolNode([lookup_order], handle_tool_errors=handle_error) | tools=[lookup_order] + @wrap_tool_call middleware |
| 8 | app/support_agent.py:24 | LG002 | prompt="You are a support agent." | system_prompt="You are a support agent." |
| 12 | app/support_agent.py:34 | LG011 | if "agent" in chunk: | if "model" in chunk: |
Verification
| Check | Result | Evidence |
|---|---|---|
| Unmigrated code on 1.x | FAILS (expected) | ModuleNotFoundError: No module named 'langchain.prompts' |
| Re-scan | PASS | exit 0 |
| Import check | PASS | no errors with -W error::DeprecationWarning |
| Agent smoke test | PASS | nodes: model, tools, model → "Your order A17 has shipped." |
Stopgaps left in place
- app/support_agent.py:4 — langchain_classic.memory; proper fix: LangGraph checkpointer
Open REVIEW items
- app/support_agent.py:36 — config["configurable"] kept: still supported on 1.x; move to context= in a later change.
Connects securely to your tools. The creator never sees your data.
About this skill
LangChain 0.3 and LangGraph 0.4 receive security fixes only until December 2026 (official LangChain release policy). Moving to 1.x is not a version bump: langchain.chains, langchain.prompts, langchain.schema, langchain.memory, langchain.text_splitter and more now raise ModuleNotFoundError, and create_react_agent is replaced by create_agent with middleware.
This skill gives your agent a complete, verified migration path:
- Bundled read-only scanner (
lc_v1_scan.py, Python standard library only): 23 line rules plus a multi-line call check, BLOCKER / WARN / REVIEW severity, file:line, the exact fix, dependency pins, Markdown or JSON output, exit code 1 while blockers remain. - Verified import map: every 0.3 module checked against langchain 1.5.2, langchain-core 1.8.5, langchain-classic 1.1.0 and langgraph 1.2.24 on 2026-12-01, with the final form and the
langchain_classicstopgap for each. - Agent API mapping:
prompt=→system_prompt=,pre_model_hook/post_model_hook→ middleware,ToolNode(handle_tool_errors=…)→@wrap_tool_call, prompted structured output →ToolStrategy,"agent"stream node →"model",configurable→context=,AgentExecutorsettings →create_agentequivalents. - Proof before hand-over: re-scan exit 0, import check with deprecation warnings as errors, the project's tests, and a no-API-key smoke test template that asserts the streamed nodes.
- Report:
LANGCHAIN_V1_MIGRATION.mdwith before/after counts, every change, verification evidence, stopgaps and REVIEW decisions, and a PASS / PARTIAL / BLOCKED status.
Every behaviour claim in the skill was run on the current 1.x packages, not copied from memory.
Python only; LangChain.js / TypeScript is not covered. The scanner is pattern-based: it reports dynamic imports, string module paths in config files and unusual formatting only partly, so the procedure includes a manual search for those. It does not migrate langchain-community integrations to every provider package one by one. Facts and versions were verified on 2026-12-01; later 1.x releases stay semver-compatible but may add new deprecations. Smoke tests use a fake model, so they prove wiring, not answer quality.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Python 3.10+pip
Permissions
Allowed Hosts
File Scopes
The bundled scanner is read-only and uses no network. It reads no API keys; smoke tests use a fake model.
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.