framework-selection

Selects the appropriate LangChain, LangGraph, or Deep Agents framework layer for agent projects.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/orezek/monorepo_template --skill framework-selection-orezek
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: framework-selection
Source: https://github.com/orezek/monorepo_template/tree/main/.agents/skills/framework-selection
Command: npx skills add https://github.com/orezek/monorepo_template --skill framework-selection-orezek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing between LangChain, LangGraph, and Deep Agents is confusing because they are layered frameworks rather than competing options, and picking the wrong layer leads to over-engineered or under-powered agent implementations. ## Core Features & Use Cases - Decision Table: Answers four ordered questions to route a task to Deep Agents, LangGraph, or LangChain based on planning, control flow, and state requirements. - Framework Profiles: Documents the best-fit scenarios, anti-patterns, and follow-up skills for each of the three framework layers. - Layer Mixing Guidance: Explains how to combine layers, such as registering a LangGraph compiled graph as a subagent inside a Deep Agents orchestrator. - Use Case: At the start of a new agent project, consult this skill to determine whether a simple LangChain agent suffices or whether the task requires LangGraph control flow or Deep Agents middleware like planning and file management. ## Quick Start Ask the agent to invoke the framework-selection skill to determine which LangChain, LangGraph, or Deep Agents layer fits your project before writing any agent code.

Frequently Asked Questions about framework-selection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between LangChain, LangGraph, and Deep Agents?▼

Choose based on task complexity: LangChain for single-purpose agents and chains, LangGraph for custom control flow with loops and branching, and Deep Agents for open-ended tasks needing planning, file management, and subagent delegation.

When should I use LangGraph instead of LangChain?▼

Use LangGraph when the agent needs branching logic, loops, parallel fan-out, human-in-the-loop approval, or persistent state across invocations. LangChain suits fixed tool loops, RAG pipelines, and simple model calls.

What is Deep Agents used for in LangChain projects?▼

Deep Agents handles long-running, multi-dimensional tasks with built-in middleware for todo lists, filesystem tools, subagent delegation, on-demand skills, and persistent memory across sessions.

Can I combine LangGraph and Deep Agents in one project?▼

Yes, a LangGraph compiled graph can be registered as a subagent inside Deep Agents. The Deep Agents orchestrator delegates to it via the task tool without needing to know its internal graph structure.

Does LangGraph support middleware like Deep Agents?▼

No, LangGraph has no middleware layer; behavior is wired directly into nodes and edges. Explicit configurable middleware such as TodoListMiddleware and FilesystemMiddleware is specific to Deep Agents.

When is Deep Agents not the right choice?▼

Avoid Deep Agents when the task is simple enough for a single-purpose LangChain agent, or when you need precise hand-crafted control over every graph edge, in which case LangGraph is the better fit.