deepagents 0.7.1


pip install deepagents

  Latest version

Released: Jul 30, 2026


Meta
Requires Python: <4.0,>=3.11

Classifiers

Development Status
  • 4 - Beta

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 3
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Scientific/Engineering :: Artificial Intelligence
  • Software Development :: Libraries :: Python Modules

๐Ÿง ๐Ÿค– Deep Agents

PyPI - Version PyPI - License PyPI - Downloads Twitter

Looking for the JS/TS version? Check out Deep Agents.js.

To help you ship LangChain apps to production faster, check out LangSmith. LangSmith is a unified developer platform for building, testing, and monitoring LLM applications.

Quick Install

uv add deepagents

๐Ÿค” What is this?

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
from deepagents import create_deep_agent

agent = create_deep_agent(
    model="openai:gpt-5.5",
    tools=[my_custom_tool],
    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. For a full overview and quickstart of Deep Agents, the best resource is our docs.

Acknowledgements: This project was primarily inspired by Claude Code, and initially was largely an attempt to see what made Claude Code general purpose, and make it even more so.

โ“ 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

๐Ÿ“• Releases & Versioning

See our Releases and Versioning policies.

๐Ÿ”’ 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.

๐Ÿ’ Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.

0.7.1 Jul 30, 2026
0.7.0 Jul 29, 2026
0.7.0b2 Jul 24, 2026
0.7.0b1 Jul 23, 2026
0.7.0a8 Jul 22, 2026
0.7.0a7 Jul 14, 2026
0.7.0a6 Jul 07, 2026
0.7.0a5 Jul 07, 2026
0.7.0a4 Jul 06, 2026
0.7.0a3 Jul 01, 2026
0.7.0a2 Jun 24, 2026
0.7.0a1 Jun 15, 2026
0.6.12 Jun 25, 2026
0.6.11 Jun 18, 2026
0.6.10 Jun 13, 2026
0.6.9 Jun 12, 2026
0.6.8 Jun 03, 2026
0.6.7 May 30, 2026
0.6.6 May 28, 2026
0.6.5 May 28, 2026
0.6.4 May 26, 2026
0.6.3 May 20, 2026
0.6.2 May 18, 2026
0.6.1 May 12, 2026
0.6.0 May 12, 2026
0.6.0a3 May 07, 2026
0.6.0a2 May 06, 2026
0.6.0a1 May 01, 2026
0.5.9 May 10, 2026
0.5.8 May 08, 2026
0.5.7 May 05, 2026
0.5.6 May 01, 2026
0.5.5 Apr 30, 2026
0.5.4 Apr 29, 2026
0.5.3 Apr 15, 2026
0.5.2 Apr 10, 2026
0.5.2a3 Apr 10, 2026
0.5.2a2 Apr 10, 2026
0.5.2a1 Apr 10, 2026
0.5.1 Apr 07, 2026
0.5.0 Apr 07, 2026
0.5.0a4 Apr 03, 2026
0.5.0a3 Apr 01, 2026
0.5.0a2 Mar 23, 2026
0.5.0a1 Mar 23, 2026
0.4.12 Mar 20, 2026
0.4.11 Mar 13, 2026
0.4.10 Mar 11, 2026
0.4.9 Mar 10, 2026
0.4.8 Mar 10, 2026
0.4.7 Mar 06, 2026
0.4.6 Mar 06, 2026
0.4.5 Mar 03, 2026
0.4.4 Feb 26, 2026
0.4.3 Feb 20, 2026
0.4.2 Feb 12, 2026
0.4.1 Feb 11, 2026
0.4.0 Feb 10, 2026
0.3.12 Feb 06, 2026
0.3.11 Feb 04, 2026
0.3.10 Feb 03, 2026
0.3.9 Jan 28, 2026
0.3.8 Jan 22, 2026
0.3.7 Jan 21, 2026
0.3.7a1 Jan 17, 2026
0.3.6 Jan 15, 2026
0.3.5 Jan 09, 2026
0.3.4 Jan 08, 2026
0.3.3 Jan 08, 2026
0.3.2 Jan 08, 2026
0.3.1 Dec 23, 2025
0.3.0 Dec 08, 2025
0.2.8 Nov 24, 2025
0.2.7 Nov 14, 2025
0.2.6 Nov 13, 2025
0.2.5 Nov 04, 2025
0.2.4 Oct 31, 2025
0.2.3 Oct 30, 2025
0.2.2 Oct 30, 2025
0.2.1 Oct 30, 2025
0.2.1rc2 Oct 29, 2025
0.2.1rc1 Oct 29, 2025
0.2.0 Oct 28, 2025
0.1.5rc2 Oct 27, 2025
0.1.5rc1 Oct 27, 2025
0.1.4 Oct 23, 2025
0.1.3 Oct 21, 2025
0.1.2 Oct 20, 2025
0.1.1 Oct 18, 2025
0.1.0 Oct 17, 2025
0.0.12rc3 Oct 17, 2025
0.0.12rc2 Oct 16, 2025
0.0.12rc1 Oct 08, 2025
0.0.11 Oct 07, 2025
0.0.11rc1 Sep 30, 2025
0.0.10 Sep 29, 2025
0.0.9 Sep 26, 2025
0.0.8 Sep 25, 2025
0.0.7 Sep 24, 2025
0.0.6 Sep 24, 2025
0.0.6rc3 Sep 23, 2025
0.0.6rc2 Sep 19, 2025
0.0.6rc1 Sep 17, 2025
0.0.5 Sep 01, 2025
0.0.5rc4 Sep 04, 2025
0.0.5rc3 Aug 31, 2025
0.0.5rc2 Aug 29, 2025
0.0.5rc1 Aug 22, 2025
0.0.5rc0 Aug 28, 2025
0.0.4 Aug 22, 2025
0.0.3 Jul 31, 2025
0.0.2 Jul 30, 2025
0.0.1 Jul 29, 2025

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
langchain (<2.0.0,>=1.3.14)
langchain-core (<2.0.0,>=1.5.0)
langchain-anthropic (<2.0.0,>=1.5.3)
langchain-google-genai (<5.0.0,>=4.3.1)
langsmith (>=0.10.9)
packaging (>=23.2)
wcmatch (>=11.0)