Deep Agents bundles file tools, context management and delegation into a harness built on LangChain and LangGraph. Use it if you're building an assistant whose specialists need to leave reports and intermediate work in files. Skip it if your application needs a fixed workflow rather than an agent choosing its next action: the project's own README directs that case to LangGraph.
Our November 28 run installed the repository project in 14 seconds and built it in 1 second, then pytest stopped before running test cases. The checked project was libs/acp, at commit 575b6d9. That outcome belongs beside the recommendation, because a quick setup command and a working application answer different questions.
What people use deepagents for
George Karapetyan reported using Deep Agents for consulting reports, thematic regulatory comparisons and legal impact assessments in financial services. His November 2025 account describes specialists sharing files and producing structured deliverables, which is a better reason to consider the harness than a generic promise of autonomy.
| Who used it | What they built | Reported outcome |
|---|---|---|
| George Karapetyan | A consulting system with process, technology and strategy specialists | Business cases with financial projections, initiative roadmaps and risk registers |
| George Karapetyan | A regulatory comparison system organized by theme | Structured JSON with themes, differences and source-section references |
| George Karapetyan | A legal impact analysis system | Assessments of affected clauses, compliance gaps, amendments and implementation timelines |
| Albert-Gao | A Python backend with custom FastAPI routes and a React streaming interface | Subagent information appeared inconsistently, leading to a JavaScript contribution and a later streaming-stack recommendation |
| allthatido and Jonascsantos-guildaAI | Persistent threads using a PostgreSQL checkpointer | Subagent tool calls appeared during streaming but were absent from reloaded parent messages |
The consulting example explains what the files buy you. Karapetyan gave specialists assigned sections of a report template. They populated those sections, and the orchestrator assembled the final document. You can inspect the resulting artifact instead of trying to recover the whole analysis from a conversation. For regulatory comparison, his specialists divided theme identification, comparison and source attribution, then returned a defined JSON structure.
He also combined semantic retrieval with files: search discovered relevant passages, while files held organized findings for later steps. If your existing retrieval system already finds the right documents, this is a possible addition to it. The decision is whether your task benefits from keeping intermediate analysis and delegating separate parts, rather than simply returning an answer to a question.
What happened when we ran it
Our repository run installed in 14 seconds and built in 1 second, but the test command exited 3 after 15 seconds with an unrecognized pytest configuration option. We cloned commit 575b6d9 on November 28, 2026, and the Python project selected for these checks lived in ./libs/acp.
| Repository check | Recorded result | What it tells you |
|---|---|---|
| Install | Succeeded in 14 seconds | 87 dependencies recorded, 141 MB on disk |
| Build | Succeeded in 1 second | The selected project's build step completed |
| Tests | Failed, exit 3, after 15 seconds | 0 passed, 0 failed, 1 collection/setup error |
| Pytest log tail | Unknown config option: asyncio_mode |
Failure occurred during configuration validation |
| Sandbox configuration | 3 CPUs, 8 GB RAM | Image label: ghcr.io/astral-sh/uv:python3.12-bookworm |
Installation finished. The build finished too. Then pytest reached _validate_config_options, treated the unknown asyncio_mode option as a warning that stopped the command, and ended with 1 error in 8.92s. The outer step's 15 seconds and pytest's 8.92 seconds cover different scopes. Zero failed cases here means no cases reached a pass or fail result, not a clean suite.
The repository scan counted 1,925 files, about 758,069 source lines and a 64.1 MB checkout. It found 58 CI workflow files and a tests directory, and detected no Dockerfile. Those are checkout observations. The image label records the requested environment; actual runtime and operating-system versions need the raw toolchain logs.
A separate quickstart run used the README's Python example without editing it. The example tried to initialize ChatOpenAI and stopped with an ImportError requiring langchain-openai. The error explicitly recommended pip install langchain-openai. That is a concrete first-use obstacle: the model integration was unavailable before the agent could attempt its research task. The recorded teardown completed successfully.
For your own setup, distinguish the library from the provider integration and credentials. The quickstart asks for a tool-calling model and a provider API key. A local model needs its serving endpoint configured instead. Resolve the import error before investigating model responses, and reproduce the package-specific pytest check before interpreting the build as a development green light.
Where people get stuck: tools, streaming and missing history
GitHub reports identify different failures that need different responses: malformed tool arguments, incomplete React state and missing subagent history in parent messages. Treating all of them as a prompt problem sends you toward the wrong fix.
| Report | What the user encountered | Resolution described in the thread |
|---|---|---|
| #119, Gemini tool calls | MALFORMED_FUNCTION_CALL, or JSON strings where a list was expected |
A user patched todo input coercion; maintainers closed the issue in favor of upstream provider normalization |
| #2086, React streaming | Empty subagent maps and incomplete completion state with Albert-Gao's custom backend | An initial JavaScript fix helped partially; a maintainer later recommended the new server/UI streaming stack |
| #177, persisted tool history | Subagent tool calls visible live but missing from reloaded parent messages | Maintainers reported a patch in deepagents >=0.2.1 and described subgraph history retrieval through checkpoint namespaces |
| #2184, repeated delegation | Users reported repeated calls to a compiled subagent instead of a final answer | Maintainers could not reproduce the loop and closed the issue on that basis |
Albert-Gao's streaming report is especially useful if you're building a browser interface. After his contribution was merged, he could obtain the subagent list and total count, but completion information was still incomplete. Later, a maintainer closed the issue with a new streaming API recommendation across server and UI packages. Follow that coordinated package list for the migration; updating just the Python harness repeats only part of the resolution.
The Gemini thread also extends beyond the todo tool named in its title. A maintainer says list- and dictionary-valued arguments can arrive as JSON-encoded strings across custom tools and MCP tools. MCP is the protocol an assistant uses to call outside tools. If a schema expects a list and receives a string, a retry strategy needs to account for that type error. The maintainer placed the correction in the provider integration, before it emits the tool call.
Subagent history, task retries and resumed work are separate
A parent conversation can retain only the subagent's final response while detailed work lives in a separate subgraph history. In #177, maintainer nhuang-lc explains that this separation is intentional: it keeps expensive search output out of the main model's context.
A checkpointer saves execution state. A checkpoint namespace identifies the relevant part of that saved graph. The maintainer's route is to request state with subgraphs included, obtain the subgraph configuration and use its namespace to retrieve history. That is an inspection path. It is a different requirement from putting every subagent tool message into the parent's message list for a UI.
Recovery adds another distinction. In #354, mjrs33 explains that their attempted resume was actually a retry: ToolRetryMiddleware invoked the task tool again with the same arguments, starting the subagent's work over. Leemin0311 wanted independent short-term memory so a product specialist could reuse information across related questions. The discussion converged on a separate subagent checkpointer, rather than demonstrating a released implementation.
For an application trial, deliberately interrupt delegated work after it has produced a useful file. Record whether the next invocation continues from saved state, repeats the delegated task, or simply reads the saved file. Those outcomes have different costs and different implications for tools that change external systems. This is a proposed acceptance check, not a result from our sandbox.
Context offloading targets the model's window, not host RAM
Maintainer eyurtsev says the large-result middleware aims to avoid consuming the model's context window, rather than solve in-memory consumption. That clarification in #1450 matters if you're choosing the harness because a workflow handles large documents.
The same issue reports that replacing a large tool result dropped its artifact, the structured metadata associated with the tool message. Reporter liaowen9527 explained why URLs, identifiers and other references still mattered for downstream state, tracing and replay even when the model no longer needed the full payload. Contributor weiguangli-io reported implementing metadata preservation in PR #1482, with synchronous and asynchronous regression coverage.
Karapetyan separately warns that centralizing too much work in the orchestrator can still cause context explosion. His reported practice was to give specialists defined domains, organize files deliberately and design clear tools. Delegation therefore gives you a way to divide work, but you still choose what the coordinator receives and how much it keeps.
For a representative workload, measure the cost per accepted report, including retries and human corrections. Count a report as accepted only after checking its claims and source references. Track host memory separately from model input size. These are the measurements that would tell you whether file offloading pays for itself in your application.
Security depends on what your tools can do
The README says the agent can do anything its tools allow and tells you to enforce boundaries at the tool or sandbox level. Human approval is an additional control; it cannot replace the README's explicit permission boundary.
That distinction appears in the rejection bug. Issue #2947 reports a denied action prompting another attempt, which triggered another approval interrupt. Maintainer mdrxy says LangChain 1.3.4 changed the default rejection message to tell the model the human denied the action, the tool never ran and the call should not be retried unless requested. The resolution retained the error status and did not add a router-level prohibition.
For the separate terminal app, dcode feature request #4844 asks for argument-aware approval policies. Its author wants to permit writes under a project directory while treating dangerous shell arguments differently, instead of relying only on session-wide approval modes. Maintainers acknowledged the request, and it remains open in that discussion.
The proposed policy also requires explicit project trust, so a cloned repository cannot silently approve itself. Contributor iyuzhang adds that file rules should match the resolved destination: a path that looks like src/link/file may leave the permitted tree through a symbolic link. These are proposals in a dcode discussion, not evidence that the SDK lacks tool-level permission controls. For your deployment, choose the actual tool credentials, filesystem access and execution environment before exposing agent actions to users.
Planning is opt-in, and the SDK has its own version
The quickstart explicitly says to opt in with TodoListMiddleware for structured task planning. That current instruction is more useful than assuming every default agent carries a todo list because an older tutorial showed one.
Deep Agents skills are reusable behaviors loaded on demand. The customization guide shows skills=["./skills/"] alongside tools and memory configuration. Decide which repeated procedure belongs in a skill and which action needs a tool with enforceable permissions. An instruction file can guide an agent without granting it a new security boundary.
GitHub's latest-release endpoint returned deepagents==0.7.42 when checked on November 28, 2026. The release notes include interrupt propagation for glob and replacement of lone surrogates in stored file text. This names the Python SDK release, not the separate Deep Agents Code app's version.
The public repository facts showed a November 28 push, while the issue threads above show maintainers addressing streaming, rejection behavior and user reproductions. Read that as development activity. It gives you concrete migration material to inspect rather than a reason to infer support quality from attention counts.
Deepagents vs LangGraph, LangChain and coding assistants
Choose Deep Agents for its bundled file tools, delegation and context management; choose LangChain's create_agent for a lighter harness or LangGraph when you need to design the workflow itself. The official README makes this architectural distinction.
| Alternative | Choose it when | Relationship to Deep Agents |
|---|---|---|
| LangGraph | Your application needs a custom graph rather than the standard agent loop | It is the underlying runtime; a compiled graph can also be a Deep Agents subagent |
LangChain create_agent |
You want an agent loop with selected capabilities and less bundled middleware | Deep Agents adds its opinionated harness above this layer |
| Claude Code or Cursor | You're comparing terminal or editor coding products rather than embedding a Python library | The README compares these with the separate Deep Agents Code app |
| A simple tool-calling agent | Your task is targeted enough to complete without specialist delegation | Karapetyan recommends standard agents for targeted, single-step work |
| Retrieval plus organized files | Search finds relevant text, but your workflow also needs saved findings | Karapetyan used retrieval and files together rather than treating them as substitutes |
For deepagents vs LangGraph, ask whether the workflow is allowed to choose its own route. A custom graph can express your required sequence directly. For deepagents vs LangChain, ask whether you actually need the bundled file and delegation behavior. The layers compose, so adopting the harness need not exclude a custom graph for a specialist task.
For deepagents vs Claude Code, compare the Code app with the coding product, then compare the SDK separately with your application framework. Mixing the two makes an integration decision look like a coding-quality contest. Pi, OpenCode, Pydantic AI and DeepSeek-related comparisons need a more specific workload definition, addressed in the testing boundary below.
What the other reviews get wrong
Devtoolwatch's version labels and Atmosphere's transport comparison need correction before you use them to choose a package or deployment path. Other older descriptions also need a date attached to their claims about default planning.
Devtoolwatch lists SDK 0.7.29 and Code 0.1.87. Wavect's review covers SDK 0.7.35 and Code 0.2.7, already newer labels, and the release endpoint checked for this review names SDK 0.7.42. A version attached to a review is a historical observation, not an evergreen latest-version answer.
Atmosphere says you write Deep Agents' server and transport yourself. The official AG-UI guide describes serving the graph with LangSmith Agent Server, and the overview includes Managed Deep Agents. You still have integration choices, but writing a transport from scratch is not the only route.
Karapetyan's older account describes a built-in planning tool forcing task decomposition. Today's quickstart instead makes structured todo planning opt-in. His workflow examples remain attributed reports from that period; their descriptions of defaults should not override the current instructions.
The official model-agnostic claim means intended tool-calling compatibility. The Gemini and delegation-loop threads show why it should not become a promise of identical behavior. Finally, LinkedIn's page titled Real-World Use Cases for Deep Agents discusses ChatGPT Agent Mode. Its website-testing examples are not adoption evidence for langchain-ai/deepagents.
Questions people ask
Deep Agents is an extensible harness built on LangChain and LangGraph that bundles files, delegation and context management for multi-step agent work. The README explains those layers.
What is Deep Agents, and what does its harness add to a normal agent?
It adds file access, subagents with isolated context, context management and reusable skills above LangChain's agent loop. You supply the model and application tools. The README lists those capabilities, including approval of tool calls before execution.
When should I use Deep Agents instead of LangChain or LangGraph?
Use Deep Agents when its bundled behavior matches the job. Use create_agent for a lighter harness and LangGraph for a custom graph when the agent loop has the wrong shape, as the README recommends.
How does Deep Agents compare with Claude Code?
The separate Deep Agents Code terminal app is the relevant product comparison, rather than the Python SDK. The README describes Code as similar to Claude Code or Cursor and emphasizes model choice.
How does Deep Agents compare with Pi?
Pi appears in the recorded Deep Agents comparison searches. This review offers an architectural decision about Deep Agents; the comparative testing boundary below explains why it awards no Pi winner.
How does Deep Agents compare with OpenCode?
OpenCode also appears in the comparison searches. Define whether you're choosing a coding application or embedding an agent library before comparing it with Deep Agents Code or the SDK.
How does Deep Agents compare with Pydantic AI?
Pydantic AI is another named comparison search. For your evaluation, hold the model, tools and acceptance task constant, then compare the amount of application code and operational control each approach requires.
How does Deep Agents compare with a DeepSeek harness?
DeepSeek is mentioned in a user-reported delegation loop in #2184, alongside reports of model-dependent differences. That is a specific compatibility investigation, rather than a comparison proving which harness produces better work.
What is the latest Deep Agents version, and which package should I install?
The GitHub latest-release endpoint returned SDK deepagents==0.7.42 on November 28, 2026. The README's Python library command is uv add deepagents; Deep Agents Code is a separate terminal application with its own release track.
Where can I find the official Deep Agents repository, documentation and PyPI package?
Deepagents GitHub is langchain-ai/deepagents, Deepagents docs start at the official overview, and Deepagents PyPI is the deepagents package. The README links the project resources and package badge.
How do I add skills to Deep Agents?
Pass your skill directory through the skills argument: the customization examples use skills=["./skills/"]. Skills supply reusable instructions, while tools provide the actions those instructions can request.
How do I coordinate subagents and asynchronous work without losing control of the workflow?
Keep progress streaming, saved subgraph history and parent responses as separate application concerns. #2086 describes the coordinated streaming upgrade, and #177 explains the intentionally isolated history. A UI that reads only parent messages will miss detail retained elsewhere.
Can I use Deep Agents with local or open-weight models?
Yes: the README lists tool-calling models served through Ollama, vLLM and llama.cpp, alongside hosted providers. Treat compatibility and reliable task completion as separate acceptance checks for your selected model.
What we have not tested yet
Our repository checks cover libs/acp at 575b6d9, and the separate README example stopped at a missing provider import. Neither run completed an agent workload. We have not established answer accuracy, coding quality, cost per accepted task, production throughput, host-memory savings or local-model reliability. The pytest tail does not identify why asyncio_mode was unrecognized, so it cannot justify blaming a particular missing package.
Karapetyan's reported financial-services deliverables lack independent measurements of correctness, review burden or productivity savings. The video entries available for this review contain no transcripts, and the Bilibili entry is a search listing rather than a watched demonstration. Those entries cannot support claims about what a creator ran or achieved. There are no screenshot records from our runs to illustrate a functioning application.
The issue discussions give different kinds of resolution. #1450 includes a contributor's fix report but no confirmed release containing it. #119 points upstream without a confirmed shipped provider fix here. #354 closes with a checkpointer approach rather than a demonstrated recovery release, and #2184 closes after maintainers failed to reproduce the loop. We have not reproduced those fixes, the React migration, rejection handling, dcode policy enforcement or permission isolation.
No controlled comparison here establishes a winner against Pi, OpenCode, Pydantic AI, a DeepSeek harness or Claude Code. GitHub's latest-release response is a dated SDK lookup, not a complete inventory of every package's current version or runtime requirements. Our next useful result would be a bounded report task with checked source references, a failed subagent resumed deliberately, a denied tool action and a full record of cost and human corrections.


