Skip to main content
create_deep_agent has the following core configuration options: And the following configurable features:

Core configuration

For more information, see create_deep_agent.

Model

By default, deepagents uses claude-sonnet-4-5-20250929. You can customize the model by passing any supported or LangChain model object.
Use the provider:model format (for example openai:gpt-5) to quickly switch between models.
👉 Read the OpenAI chat model integration docs

Tools

In addition to built-in tools for planning, file management, and subagent spawning, you can provide custom tools:

System prompt

Deep agents come with a built-in system prompt inspired by Claude Code’s system prompt. The default system prompt contains detailed instructions for using the built-in planning tool, file system tools, and subagents. Each deep agent should include a custom system prompt specific to its specific use case.

Features

Middleware

Middleware provides a way to more tightly control what happens inside an agent. You can provide additional middleware to extend functionality, add tools, or implement custom hooks:

Subagents

To isolate detailed work and avoid context bloat, use subagents:
For more information, see Subagents.

Filesystem backend

For skills and memory, you must provide a filesystem backend. You may also find it helpful to use the backend with custom tools.
An ephemeral filesystem backend stored in langgraph state. This filesystem only persists for a single thread.
For more information, see Backends.

Human-in-the-loop

Some tool operations may be sensitive and require human approval before execution. You can configure the approval for each tool:
You can configure interrupt for agents and subagents on tool call as well as from within tool calls. For more information, see Human-in-the-loop.

Skills

You can use skills to provide your deep agent with new capabilities and expertise. While tools tend to cover lower level functionality like native file system actions or planning, skills can contain detailed instructions on how to complete tasks, reference info, and other assets, such as templates. These files are only loaded by the agent when the agent has determined that the skill is useful for the current prompt. This progressive disclosure reduces the amount of tokens and context the agent has to consider upon startup. For example skills, see Deep Agent example skills. To add skills to your deep agent, pass them as an argument to create_deep_agent:

Memory

Use AGENTS.md files to provide extra context to your deep agent. You can pass one or more file paths to the memory parameter when creating your deep agent:

Connect these docs to Claude, VSCode, and more via MCP for real-time answers.