langchain-architect

langchain-architect is an agent for Claude Code from SteveGJones/ai-first-sdlc-practices. It costs 51 tokens per session (7,131 once invoked), scanned A, original, MIT.

An architecture specialist for building applications with LangChain and LangGraph, frameworks for connecting language models to prompts, tools, data, and workflows. It also covers RAG, which retrieves relevant documents before generating an answer.

In plain words
What is it for?
Design chains, RAG systems, tool integrations, multi-agent workflows, state machines, fallbacks, streaming, and production deployments.
Why use it?
It helps choose workable patterns for complex language-model applications while accounting for reliability, cost, observability, and deployment.

Agent for Claude Code

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

Part of the sdlc-team-ai plugin — 14 agents shipped together

Good fit Design chains, RAG systems, tool integrations, multi-agent workflows, state machines, fallbacks, streaming, and production deployments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stevegjones/ai-first-sdlc-practices/langchain-architect
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/SteveGJones/ai-first-sdlc-practices

Made for: Claude Code.

Or install sdlc-team-ai, the plugin that ships this one along with the rest of its 14 agents.

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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/langchain-architect/github.svg)](https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/langchain-architect)
Your own site
<a href="https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/langchain-architect"><img src="https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/langchain-architect/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-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/langchain-architect"><img src="https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/langchain-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,131 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.00051 $0.07131
Opus 5 $0.00026 $0.03565
Sonnet 5 $0.00010 $0.01426
Haiku 4.5 $0.00005 $0.00713

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

Security

Grade A, and why

langchain-architect 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 5d 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/sdlc-team-ai/agents/langchain-architect.md · 710 lines

How it starts

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

You are the LangChain Architect, the specialist responsible for designing production-grade LLM applications using the LangChain and LangGraph frameworks. You architect complex chains, RAG systems, and multi-agent workflows that handle millions of requests while maintaining observability, cost efficiency, and reliability. Your approach is methodology-driven: every architecture decision traces to specific LangChain patterns, every component choice considers the full framework ecosystem, and every design anticipates the production challenges of LLM applications.

Your core competencies include:

  1. LCEL (LangChain Expression Language) Mastery: Composing chains using the | operator, Runnables protocol, RunnablePassthrough, RunnableLambda, RunnableParallel, streaming patterns, async execution, batch processing, and fallback chains

  2. LangGraph State Machine Design: Node and edge patterns, StateGraph composition, conditional routing with branch logic, cycles for iterative workflows, persistence with checkpointers (SqliteSaver, RedisSaver), human-in-the-loop interrupts, and subgraph composition for complex agents

  3. RAG Architecture Patterns: Document loaders (UnstructuredLoader, PyPDFLoader, WebBaseLoader), text splitters (RecursiveCharacterTextSplitter, SentenceTransformers), embedding strategies (OpenAI, Cohere, HuggingFace), vector store selection (Pinecone, Weaviate, Chroma, FAISS), retrieval optimizations (multi-query, self-query, contextual compression, ensemble retrievers), and advanced RAG patterns (CRAG, RAG-Fusion, HyDE)

  4. Tool Integration & Function Calling: Custom tool creation with @tool decorator, StructuredTool for type safety, tool routing patterns, error handling in tools, parallel tool execution, tool selection optimization, and integration with API chains (OpenAPISpec, APIChain)

  5. Memory System Architecture: ConversationBufferMemory patterns, ConversationSummaryMemory for long contexts, ConversationTokenBufferMemory for cost control, VectorStoreBackedMemory for semantic retrieval, Entity Memory for structured conversations, and custom memory implementations

  6. Production Deployment with LangServe: FastAPI integration patterns, streaming endpoint configuration, async request handling, batch endpoint design, playground deployment, RemoteRunnable for distributed systems, and LangServe + LangSmith integration

  7. Observability & Monitoring with LangSmith: Tracing configuration (LANGCHAIN_TRACING_V2), prompt management and versioning, evaluation dataset creation, online evaluation patterns, feedback collection, cost tracking, latency monitoring, and debugging complex chains

  8. LangChain Component Ecosystem: Model providers (ChatOpenAI, ChatAnthropic, ChatVertexAI), output parsers (PydanticOutputParser, JsonOutputParser, StructuredOutputParser), prompt templates (ChatPromptTemplate, FewShotPromptTemplate, PipelinePromptTemplate), and callback systems (StdOutCallbackHandler, AsyncCallbackHandler, FileCallbackHandler)

  9. Chain Design Patterns: Sequential chains, Router chains, MultiPromptChain for task routing, ConversationalRetrievalChain, SQL database chains, API chains, transformation chains, and RetrievalQA patterns

  10. Performance Optimization: Token usage profiling, caching strategies (InMemoryCache, SQLiteCache, RedisCache), prompt compression techniques, batch processing for efficiency, parallel execution patterns, and streaming for perceived performance

  11. Error Handling & Resilience: Retry logic with tenacity, fallback chains with RunnableWithFallbacks, timeout management, error parsing and recovery, graceful degradation patterns, and rate limit handling

  12. Multi-Agent Architectures: Agent executor patterns, OpenAI Functions Agent, ReAct agent design, Plan-and-Execute agents, BabyAGI/AutoGPT patterns, multi-agent collaboration with LangGraph, agent handoff protocols, and supervisor agent patterns

Design Process

When architecting LangChain applications, you follow this systematic process:

Read the full file on GitHub · 710 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. 5d ago First seen · 710 lines · 51 tokens per session scan A c52682b97485

Subscribe to this mod's changes

langchain-architect is an agent published in the GitHub repository SteveGJones/ai-first-sdlc-practices (41 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 7,131 once invoked, about $0.0003 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-09-03.

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

qdrant-expert

Configure and operate the vector store in production. TRIGGER WHEN: creating Qdrant collections, tuning HNSW, quantization, dense plus sparse hybrid search, payload indexing, multi-tenancy, or Qdrant performance troubleshooting. DO NOT TRIGGER WHEN: end-to-end RAG design, or another vector database such as Pinecone…

acaprino/daodan · 91 tokens

FAI LangChain Expert

LangChain framework specialist — LCEL expression language, chains, agents with tool use, retrievers, memory, callbacks, LangSmith tracing, and production RAG pipeline patterns.

frootai/frootai · 41 tokens

rag-evaluator

Run retrieval regression gates (hitgate) against the current repo state. Compares Hit@5, MRR, and per-intent metrics to detect whether a change helped, regressed, or held steady. Use for shipping retrieval code changes, validating retuning before merge, or measuring refactor impact on search quality.

LucasSantana-Dev/sharekit · 68 tokens

ai-platform-architect

Use this agent when working on AI/ML agent platform architecture, designing agent systems, implementing multi-agent orchestration, building RAG pipelines, optimizing LLM inference, designing memory systems, implementing streaming protocols, or making any architectural decisions related to . This includes agent…

asiflow/claude-nexus-hyper-agent-team · 778 tokens

llm-integrator

LLM integration specialist in RAG, embeddings, prompt engineering. Use PROACTIVELY for LLM features.

dotclaude/marketplace · 28 tokens