Works with the AI Agents you already use

    LangChain 0.3 to v1 Migration: Scan, Fix, Prove

    by Hamza Alayed

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    LangChain 0.3 to v1 Migration: Scan, Fix, Prove

    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

    BeforeAfter
    BLOCKER80
    WARN20
    REVIEW31 (answered)

    Changes (excerpt)

    #File:lineRuleBeforeAfter
    1app/support_agent.py:1LC003from langchain.prompts import ChatPromptTemplatefrom langchain_core.prompts import ChatPromptTemplate
    3app/support_agent.py:3LC005from langchain.text_splitter import …from langchain_text_splitters import …
    7app/support_agent.py:23LG008tools=ToolNode([lookup_order], handle_tool_errors=handle_error)tools=[lookup_order] + @wrap_tool_call middleware
    8app/support_agent.py:24LG002prompt="You are a support agent."system_prompt="You are a support agent."
    12app/support_agent.py:34LG011if "agent" in chunk:if "model" in chunk:

    Verification

    CheckResultEvidence
    Unmigrated code on 1.xFAILS (expected)ModuleNotFoundError: No module named 'langchain.prompts'
    Re-scanPASSexit 0
    Import checkPASSno errors with -W error::DeprecationWarning
    Agent smoke testPASSnodes: 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_classic stopgap 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=, AgentExecutor settings → create_agent equivalents.
    • 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.md with 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files

    Allowed Hosts

    pypi.org (only when you install upgraded packages)

    File Scopes

    the
    project
    folder
    being
    migrated

    The bundled scanner is read-only and uses no network. It reads no API keys; smoke tests use a fake model.

    Listed3 days ago

    What's inside

    Frequently Asked Questions

    The official LangChain release policy lists LangChain 0.3 and LangGraph 0.4 in MAINTENANCE mode with security patches and critical fixes until December 2026. LangChain 1.0 and LangGraph 1.0 are the LTS lines. Checked on 2026-12-01.

    That is the fast path and the skill supports it, but every langchain_classic import is listed as a stopgap and the report status stays PARTIAL until they are replaced with create_agent, LCEL or a checkpointer.

    The guide explains the changes; this skill finds every affected line in your repo with a scanner, applies fixes in a safe order, and refuses to report success until a re-scan, an import check, your tests and an agent smoke test all pass. It also covers gaps the guide does not spell out, such as old provider pins silently downgrading langchain-core.

    No. It covers the Python packages only.

    No. The smoke test template uses LangChain's fake chat model, so it runs offline and costs nothing.

    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.