Skip to content

Deep Agents Middleware

Reference docs

This page contains reference documentation for Middleware. See the docs for conceptual guides, tutorials, and examples.

Middleware components add capabilities to deep agents through a composable architecture. Each middleware can provide tools, modify state, and inject system prompts.

  • FilesystemMiddleware


    File operation tools: ls, read_file, write_file, edit_file, glob, grep.

    Reference

  • SubAgentMiddleware


    Spawn specialized subagents via the task tool for context-isolated work.

    Reference

  • MemoryMiddleware


    Load agent context from AGENTS.md files at startup.

    Reference

  • SkillsMiddleware


    Discover and expose reusable skills from SKILL.md files.

    Reference

  • SummarizationMiddleware


    Offload conversation history to backend storage to preserve context.

    Reference