langchain-ai/deepagents

▲ 60 stars today★ 30,780⑂ 4,329

The batteries-included agent harness.

About langchain-ai/deepagents

langchain-ai/deepagents is an open-source project on GitHub, mainly written in Python. The batteries-included agent harness. It currently holds 30,780 stars and 4,329 forks with 202 open issues, and was last pushed on 2026-10-30 (repository created 2025-07-27).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #77 with 60 new stars today.

GitHub Repository Details

Repository langchain-ai/deepagents · default branch main · size 374295 KB · watchers 139 · source: GitHub REST API and repository README

README

https://github.com/langchain-ai/deepagents/blob/HEAD/Deep Agents Logo

The batteries-included agent harness.

https://github.com/langchain-ai/deepagents/blob/HEAD/PyPI - License https://github.com/langchain-ai/deepagents/blob/HEAD/PyPI - Downloads https://github.com/langchain-ai/deepagents/blob/HEAD/Version https://github.com/langchain-ai/deepagents/blob/HEAD/Twitter / X


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

Principles:

Features include: 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.

GitHub Stars & Activity

30,780Stars
4,329Forks
202Open issues
PythonLanguage

GitHub Popularity

GitHub stars30,780
Forks4,329
Open issues202
Primary languagePython
LicenseMIT
Stars gained today60
Created2025-07-27
Last pushed2026-10-30

Trending History

Daily boardrank #77 · ▲ 60 stars

Related GitHub Projects

1

anthropics / skills

Python★ 184,916⑂ 21,866▲ 287 stars
→
2

MemPalace / mempalace

Python★ 60,123⑂ 7,614▲ 357 stars
→
3

vectorize-io / hindsight

Python★ 56,371⑂ 6,745▲ 1,454 stars
→
4

HKUDS / DeepTutor

Python★ 51,200⑂ 6,284▲ 1,930 stars
→
5

ethanplusai / harvey

Python★ 3,343⑂ 673▲ 248 stars
→
6

openclaw / openclaw

TypeScript★ 393,424⑂ 82,694▲ 149 stars
→
7

obra / superpowers

Shell★ 309,055⑂ 27,483▲ 1,034 stars
→
8

mattpocock / skills

Shell★ 306,969⑂ 25,824▲ 882 stars
→

More Trending Repositories