AI Glossary

Deep agents

Agentic AIPublished By Simon Budziak

Deep agents are AI agents built with an explicit planning step, delegation to specialized subagents, and a filesystem for persistent memory, extending a plain tool-calling loop so it can complete long, multi-step tasks like research or coding that would drift or lose context in a single generalist run.

A plain AI agent plans one step, calls a tool, checks the result, and repeats, which works well for short jobs but tends to drift once a task runs for dozens of steps: the model loses track of what it already tried, or the growing conversation crowds out the instructions that mattered. Deep agents are the answer that shipped inside real production systems first, Claude Code, Deep Research, and similar long running coding and research tools all converged on the same four layers stacked on top of an ordinary harness.

The four layers of a deep agent: planning, subagents, a filesystem for memory, and the harness underneath that ties them together

A deep agent is not a bigger model. It is four ordinary layers, planning, subagents, a filesystem, and a harness, stacked so a task can run for hundreds of steps without losing the thread.

What are the four layers of a deep agent?

Planning keeps an explicit task list the agent reviews and updates as work progresses, so a failed step changes the plan instead of getting silently retried forever. Subagents take a delegated piece of the plan into their own isolated context, do the work, and return only the finished result, which keeps the main run’s context from filling up with intermediate search results and file reads. A filesystem gives the agent a place to write findings and long documents rather than holding everything in the model’s context window, turning “remember everything” into “know where to look it up.” The harness underneath is what actually keeps the other three coordinated across a long run, and it is the layer most teams underestimate until a real task exposes it.

Deep agents vs a plain AI agent: what actually changes?

The tool calling loop itself does not change. What changes is everything around it: a plain agent’s context is one growing conversation; a deep agent’s context is deliberately partitioned across the main thread, each subagent’s own thread, and the filesystem, so a long task does not run out of room. Our own breakdown of the four separate context levers a deep agent harness gives you is the detailed version of this tradeoff.

What does a deep agent still need from you in production?

The harness does not remove the responsibilities that come with any agentic AI system: a human approval gate on actions that touch money or production data, evals that catch regressions before a customer does, and a cost budget, since more subagent calls means more model calls billed per run. We cover exactly what a team still owns once the harness is doing the planning in deep agents in production. Coordinating multiple subagents at once is also where the orchestrator-worker pattern and deep agents overlap: a deep agent’s planner is effectively a lightweight orchestrator for its own subagents.

Frequently asked questions

How is a deep agent different from a regular AI agent?

A regular AI agent typically runs a short plan, act, observe loop against a fixed set of tools. A deep agent adds explicit planning it can revise mid task, delegation to isolated subagents for pieces of the work, and a filesystem it uses as memory, so it can stay coherent across a task that runs for many steps.

Do I need a special framework to build a deep agent?

No, the four layers, planning, subagents, filesystem, and a harness that ties them together, can be hand built on top of any tool calling model. LangChain's open source deepagents package is the most common starting harness and is what most current production deep agents are built on.

What tasks are deep agents actually good for?

Work that is too long and too varied for a fixed script but genuinely needs multiple steps to get right: open ended research, multi file coding tasks, and investigations that require checking intermediate results before deciding what to do next.

Summarize this page with

See how this works in a real workflow