deepagents

Agent harness built with LangChain and LangGraph. Equipped with a planning tool, a filesystem backend, and the ability to spawn subagents - well-equipped to handle complex agentic tasks.

22 articles 13.5k View on GitHub ↗
22 articles
How to Add Custom Middleware to the Deep Agent Execution Stack

Learn to add custom middleware to the Deep Agent execution stack by subclassing AgentMiddleware and overriding hooks. Enhance your agent's functionality today.

how-to-guide
Mar 17, 2026
Security Model and Isolation Strategy for Execute Command Sandboxing in DeepAgents

Explore the three-layer security model for DeepAgents execute command sandboxing, featuring container isolation, secure payloads, and configurable timeouts. Learn how it prevents command injection.

security-model
Mar 17, 2026
How the Harbor Framework Facilitates Evaluation and Benchmarking of Agent Performance

Discover how the Harbor framework simplifies agent evaluation and benchmarking. It runs Deep Agents in isolated sandboxes, executes benchmarks, and records traces for deterministic scoring and analysis.

deep-dive
Mar 17, 2026
How to Migrate Agent Logic from the DeepAgents SDK to the CLI for Interactive Development

Migrate agent logic from DeepAgents SDK to CLI using create_cli_agent for interactive development. Enjoy automatic middleware setup, interactive prompts, and Textual UI configuration.

migration-guide
Mar 17, 2026
TodoListMiddleware vs Other Planning Tools in DeepAgents: Key Functional Differences

Discover the functional differences between TodoListMiddleware and other planning tools in DeepAgents. Learn how TodoListMiddleware's dedicated checklist API contrasts with auxiliary workflows in SubAgentMiddleware and HumanInT...

comparison
Mar 17, 2026
DeepAgents Prompt Caching for Anthropic: Reducing LLM Latency with Automatic Middleware

Reduce Anthropic LLM latency with DeepAgents prompt caching. Automatically cache Claude API responses to eliminate redundant calls and speed up your agents without manual setup.

how-to-guide
Mar 17, 2026
How to Configure the interrupt_on Parameter in DeepAgents for Human-in-the-Loop Workflows

Learn to configure the interrupt_on parameter in DeepAgents for custom human approval workflows. This guide explains how to set up middleware for efficient human-in-the-loop processes.

how-to-guide
Mar 17, 2026
Deep Agents CLI Configuration Options for Remote Sandboxing Environments Like Daytona

Explore Deep Agents CLI configuration options for remote sandboxing with Daytona. Learn to use --sandbox --sandbox-id and --sandbox-setup flags for seamless integration.

how-to-guide
Mar 17, 2026
How the DeepAgents CLI Manages Persistent Agent Sessions and Stateful Memory

Discover how the DeepAgents CLI manages persistent agent sessions and stateful memory by saving LangGraph checkpoints to SQLite and injecting user defined memory files into system prompts.

how-to-guide
Mar 17, 2026
PatchToolCallsMiddleware: Ensuring Tool Call Consistency in DeepAgents

Discover PatchToolCallsMiddleware in DeepAgents to ensure tool call consistency and message history integrity in your agent pipelines automatically. Learn how it handles missing tool responses.

internals
Mar 17, 2026
How to Integrate a Custom Backend Implementation Using the BackendProtocol in DeepAgents

Learn to integrate a custom backend with BackendProtocol in DeepAgents. Implement the interface, override file operations, and pass it to DeepAgent for seamless integration.

how-to-guide
Mar 17, 2026
How DeepAgents Implements Tool Retries and Error Recovery During Agent Execution

DeepAgents uses a tiered detect classify recover strategy with middleware for robust tool retries and error recovery without breaking agent execution. Learn how.

internals
Mar 17, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →