Deep agents use a modular middleware architecture where each core capability is implemented as composable middleware. This design allows you to customize agent behavior by adding, removing, or modifying middleware.
Learn more: For architecture details and customization patterns, see the Middleware documentation.
Provides the write_todos tool for task planning and progress tracking. Essential for complex, multi-step tasks.
Provides tools for context management through file operations. This is one of the main challenges in building effective agents—the filesystem middleware helps agents work with large amounts of context without overflowing the context window.
| Tool | Description |
|---|---|
ls |
List files in a directory |
read_file |
Read file contents |
write_file |
Write content to a file |
edit_file |
Edit an existing file |
glob |
Find files matching a pattern |
grep |
Search for text within files |
execute |
Run shell commands (sandbox backends only) |
Provides the task tool for spawning specialized subagents. Subagents are useful for:
Enables long-term memory capabilities using LangGraph Store.
Learn more: See Long-term Memory for usage patterns.
Automatically summarizes long conversations to prevent context overflow.
Loads reusable skill modules to extend agent capabilities.
Learn more: See Skills for creating and loading skills.
Middleware for providing filesystem and optional execution tools to an agent.
Middleware for providing subagents to an agent via a task tool.
Middleware for loading agent memory from AGENTS.md files.
Middleware for loading and exposing agent skills to the system prompt.