langchain-expert

langchain-expert is an agent for Claude Code from andisab/swe-marketplace. It costs 400 tokens per session (4,567 once invoked), scanned A, original, MIT.

A LangChain development specialist for building applications that use language models, including retrieval systems and workflows with multiple agents.

In plain words
What is it for?
Use it to build LangChain chains, LangGraph workflows, RAG systems that search documents before answering, vector-database integrations, and deployed model APIs.
Why use it?
It helps organize model calls, document retrieval, memory, tools, and stateful workflows into working Python or TypeScript applications.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the genai plugin — 1 agent shipped together

Good fit Use it to build LangChain chains, LangGraph workflows, RAG systems that search documents before answering, vector-database integrations, and deployed model APIs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andisab/swe-marketplace/genai-langchain-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/andisab/swe-marketplace

Made for: Claude Code.

Or install genai, the plugin that ships this one along with the rest of its 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langchain-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/andisab/swe-marketplace/genai-langchain-expert/github.svg)](https://agentmods.dev/agents/andisab/swe-marketplace/genai-langchain-expert)
Your own site
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/genai-langchain-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/genai-langchain-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for langchain-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/genai-langchain-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/genai-langchain-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 400 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00400 $0.04567
Opus 5 $0.00200 $0.02284
Sonnet 5 $0.00080 $0.00913
Haiku 4.5 $0.00040 $0.00457

Measured 11d ago against content hash 63cc160b7f8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

langchain-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/genai/agents/genai-langchain-expert.md · 739 lines

How it starts

The opening of the file, as written. The whole thing — 739 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LangChain Development Expert

You are an elite LangChain developer with deep expertise in building production-ready LLM applications, RAG systems, and multi-agent architectures. Your knowledge spans the entire LangChain ecosystem from basic chains to advanced LangGraph workflows.

Core Expertise

You possess mastery-level understanding of:

  • LangChain Expression Language (LCEL) for declarative chain composition
  • LangGraph for stateful, graph-based agent workflows
  • RAG (Retrieval-Augmented Generation) architecture patterns
  • Vector databases (Chroma, Pinecone, Weaviate, FAISS, Qdrant)
  • Document loaders and text splitters for various formats
  • Embedding models (OpenAI, Cohere, HuggingFace) and optimization
  • Prompt engineering and template management
  • Multi-agent systems with LangGraph
  • Memory management (buffer, summary, vector memory)
  • Tool/function calling and agent executors
  • LangSmith for observability and debugging
  • LangServe for deployment and API creation
  • Streaming and async patterns
  • Cost optimization and token management

LCEL vs LangGraph (2025 Guidance)

Use LCEL When:

  • Simple linear chains (prompt → LLM → parser)
  • Basic retrieval setups without complex logic
  • Straightforward data transformations
  • No branching or cycles needed

Use LangGraph When:

  • Complex state management required
  • Branching logic or conditional flows
  • Cycles or iterative refinement
  • Multiple agents collaborating
  • Human-in-the-loop patterns
  • Production-grade reliability needed
# ❌ LCEL struggles with complex branching
chain = (
    prompt
    | llm
    | output_parser
    | RunnableBranch(...)  # Gets messy
)

# ✅ LangGraph excels at complex flows
from langgraph.graph import StateGraph

workflow = StateGraph(AgentState)
workflow.add_node("analyze", analyze_node)
workflow.add_node("retrieve", retrieve_node)
workflow.add_node("generate", generate_node)

workflow.add_conditional_edges(
    "analyze",
    should_retrieve,
    {
        "retrieve": "retrieve",
        "generate": "generate"
    }
)

app = workflow.compile()

Read the full file on GitHub · 739 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 739 lines · 400 tokens per session scan A 63cc160b7f8b

Subscribe to this mod's changes

langchain-expert is an agent published in the GitHub repository andisab/swe-marketplace (21 stars, last pushed 23d ago), licensed MIT. It adds 400 tokens to every session and 4,567 once invoked, about $0.0020 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

wiki-qa-probe

A single retrieval probe — explores ONE facet of a question deep through the knowledge graph, embeddings, and source files, and returns grounded findings with exact citations for the hypervisor to fuse.

bearlike/Assistant · 43 tokens

rag-reviewer

Use this agent to review RAG (Retrieval-Augmented Generation) code for common mistakes and best practice violations. Triggers proactively after writing RAG pipelines or when explicitly asked to review. Examples.

Codeblockz/langchain-community-plugin · 44 tokens

rag-pipeline-reviewer

Reviews RAG (Retrieval-Augmented Generation) pipelines for retrieval quality, chunking strategy, embedding choices, and evaluation coverage. Invoke when the user builds, modifies, or debugs a RAG system, vector store integration, or asks about retrieval accuracy.

affaan-m/ECC · 58 tokens

scg-mapper

Maps a set of connectors into the Source Capability Graph (SCG) via a deterministic state machine — introspect, parse structure, link entities, finalize. Indexes reachability only, never the data behind it.

bearlike/Assistant · 48 tokens

wiki-enricher

Extracts abstract entities (person/project/product/organization/concept/team) and typed relationships from AST symbols + source prose for one source unit, grounding each against the deterministic code graph. Runs in the post-AST enrich phase, before planning.

bearlike/Assistant · 53 tokens

data-analyst

Senior data analyst for data exploration, statistical analysis, pipeline design, and insight extraction. Produces structured insights with visualization specs and…

KevinZai/commander · 31 tokens