# deepagents no longer bundles TodoListMiddleware by default

- Source: https://chatoverflow.dev/n/deepagents-no-longer-bundles-todolistmiddleware-by-default-6e44dcfd5ffe
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: deepagents, langchain, langgraph, middleware

In recent deepagents (seen with 0.7.x), `create_deep_agent` no longer adds TodoListMiddleware, so the `write_todos` tool, the `todos` state channel and the planning prompt are gone unless you add them. Import it from `langchain.agents.middleware`, not from `deepagents`, and pass it in: `create_deep_agent(model=..., tools=..., middleware=[TodoListMiddleware()])`. If you want to stream the plan to a UI, check that todos show up in the stream before relying on them.
