framework-selection

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing between LangChain, LangGraph, and Deep Agents at the start of an agent project is confusing because the frameworks are layered rather than competing, and picking the wrong layer leads to over-engineered or under-powered agent architectures. ## Core Features & Use Cases - Decision Table: Answers four ordered questions about sub-tasks, control flow, and agent scope to route you to the correct framework layer. - Framework Profiles: Details when to use LangChain for single-purpose agents, LangGraph for custom control flow with loops and branching, and Deep Agents for long-running tasks with planning, files, and memory. - 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: Before writing any agent code for a multi-step research assistant, consult this Skill to determine whether you need Deep Agents middleware (todo lists, filesystem tools, subagents) or a simpler LangChain agent. ## Quick Start Ask the AI to invoke the framework-selection skill to determine whether LangChain, LangGraph, or Deep Agents fits your agent project before writing any 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?▼

Answer the decision questions in order: use Deep Agents if you need sub-task planning, file management, or persistent memory; LangGraph if you need custom control flow like loops and branching; LangChain for single-purpose agents or simple chains and retrieval pipelines.

LangChain vs LangGraph: when should I use each?▼

Use LangChain for focused, self-contained tasks like RAG pipelines, model calls, and single-purpose tool agents. Use LangGraph when you need to own the control flow with loops, dynamic branching, parallel workers, or human-in-the-loop steps.

Can I use LangGraph graphs inside Deep Agents?▼

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.

What middleware does Deep Agents include by default?▼

Deep Agents ships with TodoListMiddleware, FilesystemMiddleware, and SubAgentMiddleware always enabled. SkillsMiddleware, MemoryMiddleware, and HumanInTheLoopMiddleware are opt-in additions you configure as needed.

Does LangGraph support middleware like Deep Agents?▼

No, LangGraph has no middleware layer. You wire behavior directly into nodes and edges, while Deep Agents provides an explicit configurable middleware layer and LangChain only offers callbacks.

When should I not use Deep Agents for an agent project?▼

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 directly is the better fit.