AI Card Bao AR02.AICARDBAO.COM
Home / open source / DeepAgents
AI TOOL / #12929

DeepAgents

LangChain's official "fully equipped" agent framework provides a ready-to-use skeleton for running agents.

Introduction

The batteries-included agent harness.

Deep Agents is an open source agent harness — an opinionated agent that runs out of the box. Extend, override, or replace any piece.

Principles:

  • Opinionated — defaults tuned for long-horizon, multi-step work
  • Extensible — override or replace any piece without forking
  • Model-agnostic — works with any LLM that supports tool calling: frontier, open-weight, or local
  • Production-ready — built on LangGraph (streaming, persistence, checkpointing) with first-class tracing, evaluation, and deployment via LangSmith

Features include:

  • Sub-agents — delegate tasks to agents with isolated context windows
  • Filesystem — read, write, edit, or search over pluggable local, sandboxed, or remote backends
  • Context management — summarize long threads and offload tool outputs to disk
  • Shell access — run commands in your sandbox of choice
  • Persistent memory — pluggable state and store backends for cross-session recall
  • Human-in-the-loop — approve, edit, or reject tool calls before they run
  • Skills — reusable behaviors the agent can load on demand
  • Tools — bring your own functions or any MCP server

Deep Agents is available as a JavaScript/TypeScript library — see deepagents.js.

[!NOTE] Deep Agents Code — a pre-built coding agent in your terminal, similar to Claude Code or Cursor, powered by any LLM. Install with curl -LsSf https://langch.in/dcode | bash. See the documentation for the full feature set.

Quickstart

uv add deepagents
from deepagents import create_deep_agent

agent = create_deep_agent(
    model="openai:gpt-6-astra",
    system_prompt="You are a research assistant.",
)
result = agent.invoke({"messages": "Research LangGraph and write a summary"})

The agent can plan, read/write files, and manage its own context. Add your own tools, swap models, customize prompts, configure sub-agents, and more. See the documentation for full details.

[!TIP] For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.

FAQ

How is this different from LangGraph or LangChain?

LangGraph is the graph runtime. LangChain's create_agent is a minimal agent harness on top of it. Deep Agents is a more opinionated harness on top of create_agent — same building blocks, but with filesystem, sub-agents, context management, and skills bundled in. For how the three relate, see the LangChain ecosystem overview.

Does this work with open-weight or local models?

Yes. Any model that supports tool calling works — frontier APIs (OpenAI, Anthropic, Google), open-weight models hosted on providers like Baseten or Fireworks, and self-hosted models via Ollama, vLLM, or llama.cpp. Use any LangChain chat model.

Can I use this in production?

Yes! Deep Agents is built on LangGraph, designed for production agent deployments. Pair it with LangSmith for tracing, evaluation, and monitoring. See Going to production for the full guide.

When should I use Deep Agents vs. LangChain or LangGraph directly?

All three are layers in the same stack — see the LangChain ecosystem overview for how they relate. Use Deep Agents when you want the full harness — planning, context management, delegation — out of the box. Use LangChain's create_agent when you want a lighter harness without the bundled middleware. Drop to LangGraph when the agent loop itself isn't the right shape and you need a custom graph.

The layers compose: any LangGraph CompiledStateGraph can be passed in as a sub-agent to a Deep Agent, so custom orchestration plugs in alongside the harness's defaults.


Resources


Acknowledgements

Inspired by Claude Code: an attempt to identify what makes it general-purpose, and push that further.

Security

Deep Agents follows a "trust the LLM" model. The agent can do anything its tools allow. Enforce boundaries at the tool/sandbox level, not by expecting the model to self-police. See the security policy for more information.

Visits:36 Updated:2026-12-04 AI tools

Related

Polymarket Polymarket is a blockchain-based prediction market platform. In simple terms, it allows users to use cryptocurrencies to “bet” on any possible event that may occur in the future world, thereby transforming collective judgments into real-time probabilistic prices. Here, there are only two options for every possible event. App Store Web Version Recently, Apple officially launched a web version of the App Store, allowing users to access it via their computer browsers or Android smartphones. Prior to this, we could only use the App Store on iPhones, iPads, or Macs. MindVideo – Unlimited View Generation MindVideo AI is an online AI video generation tool. It enables the conversion of text into videos as well as images into videos. It comes equipped with the latest Google Nano Banana large model, which allows for unlimited image creation and AI-based video editing functions. Additionally, it supports the creation of various video effects through a single click, using over 40 different AI algorithms. Imageye Imageye is a browser-based extension for image scraping and batch downloading. It automatically scans all the images present on a current web page and offers features such as filtering, previewing, format conversion, and one-click batch downloading. With just one click, it can identify all visible and hidden images on the page and provide you with convenient access to them. Zoom Earth Recently, the weather in Zhengzhou has been absolutely unbearably hot. On the 16th, the maximum temperature reached 44 degrees Celsius! I’d like to share with you a map platform that allows you to observe the weather around the world. It’s called Zoom Earth. Zoom Earth is an interactive tool developed by Neave Interactive. Image Toolbox The Image Toolbox is an open-source, free, and versatile image-processing tool for Android devices. If you frequently need to edit images, this app is definitely one of the essential tools in your mobile device arsenal. It offers features such as pixel-level drawing, filters, batch processing, format conversion, and even AI-powered functions.