
langchain-plugin
LangChain JS/TS skill set that covers chains, stateful LangGraph agents, and Deep Agents orchestration.
- version
- 1.5.10
- GitHub stars
- 60
What it does
- Adds 4 skills:
langchain-development,langgraph-agents,deep-agents, andlangchain-initfor TypeScript projects - Covers chat models, LCEL chains, tool binding, and RAG pipelines in
langchain-development - Provides checkpointed, human-in-the-loop graph workflows with streaming and subgraph composition via
langgraph-agents - Designed for developers building multi-step agents with planning, delegation, and persistent memory
LangChain JS/TS development - agents, chains, LangGraph workflows, and Deep Agents patterns
Add marketplace
/plugin marketplace add laurigates/claude-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install langchain-plugin@laurigates-claude-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDeep Agents
When to Use This Skill
| Use this skill when... | Use langgraph-agents instead when... |
|---|---|
| Building hierarchical agents with planning and subagent delegation | You need a single stateful graph without sub-agents |
| Managing large context via file-system memory across runs | Short-lived state fits in checkpointed graph memory |
| Long-running, multi-step workflows modelled on Deep Research | Simple LCEL chains suffice (use langchain-development) |
Scaffolding from scratch (use /langchain:init first) | The project is already initialised and only needs graph wiring |
Core Expertise
Deep Agents (deepagents) is a TypeScript library for building sophisticated AI agents:
- Built on LangGraph with planning and decomposition
- File system context management (prevents token overflow)
- Subagent delegation for focused exploration
- Persistent memory across conversations
- Modeled after Claude Code and Deep Research patterns
The package name on npm is deepagents (one word, unscoped). The source lives at langchain-ai/deepagentsjs.
Installation
# Install Deep Agents
npm install deepagents
# Add a model provider (pick the one matching your model)
npm install @langchain/openai # or @langchain/anthropic, @langchain/google-genai
deepagents declares langsmith as a peer dependency (for tracing) and builds on
@langchain/langgraph + @langchain/core, which are pulled in transitively.
Basic Agent Setup
createDeepAgent() returns a compiled LangGraph graph. The model can be a
provider-prefixed string (e.g. "openai:gpt-5") or a model instance.
import { createDeepAgent } from "deepagents";
import { ChatOpenAI } from "@langchain/openai";
const model = new ChatOpenAI({
model: "gpt-5",
temperature: 0,
});
const agent = createDeepAgent({
model,
systemPrompt: `You are a research assistant.
Break complex questions into steps using write_todos.
Use read_file and write_file to manage context.`,
});
const result = await agent.invoke({
messages: [{ role: "user", content: "Research X and summarize" }],
});
For browser or Node-explicit builds, import the backend-scoped entrypoints:
import { createDeepAgent, StateBackend } from "deepagents/browser";
import { createDeepAgent, FilesystemBackend } from "deepagents/node";
Built-in Tools
Deep Agents ships these tools automatically: write_todos, ls, read_file,
write_file, edit_file, glob, grep, and task.
Planning Tools
// write_todos - Task decomposition (available automatically)
// The agent uses it to plan:
// write_todos([
// { task: "Search for X", status: "pending" },
// { task: "Analyze results", status: "pending" },
// { task: "Write summary", status: "pending" },
// ])
File System Tools
// Built-in tools for context management
// ls - List directory contents
// read_file - Read file content
// write_file - Write/create files
// edit_file - Modify existing files
// glob - Match files by pattern
// grep - Search file contents
// The agent stores intermediate results in files
// to prevent context overflow.
Subagent Delegation
// task - Spawn a focused subagent with an isolated context window
// The parent agent delegates:
// task({
// description: "Research pricing models",
// subagent_type: "research-agent",
// })
// The subagent runs independently and returns results.
Agentic Optimizations
| Context | Pattern |
|---|---|
| Large docs | Write to file, read sections as needed |
| Multi-step | Use write_todos to track progress |
| Focused work | Delegate via the task tool |
| Long sessions | Enable checkpointing |
| Learned patterns | Store via LangGraph store |
| Debug | Enable LANGCHAIN_TRACING_V2 |
Quick Reference
Agent Methods
| Method | Description |
|---|---|
.invoke(input, config) | Run to completion |
.stream(input, config) | Stream execution |
.batch(inputs, config) | Parallel execution |
Built-in Tools
| Tool | Purpose |
|---|---|
write_todos | Plan and track tasks |
ls | List directory |
read_file | Read file contents |
write_file | Create/overwrite file |
edit_file | Modify file section |
glob | Match files by pattern |
grep | Search file contents |
task | Delegate to a subagent |
Config Keys
| Key | Description |
|---|---|
thread_id | Conversation ID |
checkpoint_id | Resume point |
recursion_limit | Max iterations |
Environment Variables
| Variable | Description |
|---|---|
LANGCHAIN_TRACING_V2 | Enable LangSmith |
LANGCHAIN_API_KEY | LangSmith key |
LANGCHAIN_PROJECT | Project name |
For custom tools, persistence, full configuration options, multi-agent subagent patterns, context-management strategy, streaming, and the Claude Code comparison, see REFERENCE.md.
Readme
langchain-plugin
LangChain JS/TS development skills for building AI agents, chains, and workflows with LangGraph.
Skills
| Skill | Description |
|---|---|
langchain-development | Core LangChain patterns - models, chains, tools, RAG |
langgraph-agents | Graph-based stateful agents with persistence |
deep-agents | Complex agents with planning and subagent delegation |
langchain-init | Scaffold a new LangChain TypeScript project |
When to Use
langchain-development
- Building LLM applications with TypeScript/JavaScript
- Creating chains and pipelines
- Implementing RAG (Retrieval-Augmented Generation)
- Integrating tools with language models
langgraph-agents
- Multi-step agent workflows
- Human-in-the-loop interactions
- Persistent conversations with checkpointing
- Complex routing and conditional logic
deep-agents
- Long-running research or coding tasks
- Tasks requiring planning and decomposition
- Large context management (files, documents)
- Multi-agent orchestration
Quick Start
# Initialize a new project
/langchain:init my-agent
# Or manually install
npm install langchain @langchain/core @langchain/langgraph @langchain/openai
Example: Simple Agent
import { ChatOpenAI } from "@langchain/openai";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
const agent = createReactAgent({
llm: new ChatOpenAI({ model: "gpt-4o" }),
tools: [myTool],
});
const result = await agent.invoke({
messages: [{ role: "user", content: "Hello!" }],
});
Example: Persistent Agent
import { MemorySaver } from "@langchain/langgraph";
const checkpointer = new MemorySaver();
const agent = createReactAgent({
llm: model,
tools: [myTool],
checkpointer,
});
// Conversations persist across calls
const config = { configurable: { thread_id: "user-123" } };
await agent.invoke(input, config);
Resources
- LangChain JS Docs
- LangGraph Docs
- LangSmith - Observability and debugging
Details
- Marketplace
- laurigates/claude-plugins
- Source
- langchain-plugin
- Author
- Lauri Gates
- Category
- Ai
- License
- MIT
- Keywords
- langchain, langgraph, deep-agents, ai-agents, llm, typescript, javascript, rag, chains
- Listed since
- Apr 7, 2026
More from laurigates/claude-plugins
All 52- linux-pluginv1.1.1
- macos-pluginv2.0.1
- migration-patterns-pluginv1.7.1
- networking-pluginv1.4.3
- obsidian-pluginv1.3.8
- project-pluginv1.21.17
- prompt-engineering-pluginv1.1.4
- prose-pluginv1.4.5
- python-pluginv1.5.10
- reverse-engineering-pluginv1.1.0
- rust-pluginv1.9.1
- session-pluginv1.18.3
- software-design-pluginv1.2.0
- taskwarrior-pluginv1.16.4
- terraform-pluginv1.7.13
- testing-pluginv3.27.2
- tools-pluginv2.16.2
- typescript-pluginv1.10.4
- video-pluginv2.0.2
- workflow-orchestration-pluginv1.20.0
- youtube-pluginv1.1.0
- accessibility-pluginv2.3.6
- agent-patterns-pluginv2.58.5
- agents-pluginv1.16.3
Similar to langchain-plugin
More AI Agents & LLM Apps
agentsPluginOrchestra-Research/AI-Research-SKILLs14.6K starsLLM agent frameworks including LangChain, LlamaIndex, CrewAI, and AutoGPT. Use when building chatbots, autonomous agents, or tool-using systems.
llm-application-devPluginwshobson/agents42.8K starsLLM application development with LangGraph, RAG systems, vector search, and AI agent architectures for Claude 4.6 and GPT-5.4
langchainSkillorchestra-research/ai-research-skills1.1K installsOpen-source framework for building LLM agents, RAG pipelines, and chatbots with swappable model providers.
langchain-architectureSkillwshobson/agents13.7K installsDesign LLM agents, state, memory, and tool integration with LangChain 1.x and LangGraph.
langchain-wikiPluginchujianyun/skills756 starsLangChain Python 官方文档离线 Wiki,覆盖 Agent、模型、工具、中间件、记忆、MCP、多智能体、RAG、测试部署与排障,支持全文检索和增量同步