# deepagents 0.7.38 does not add TodoListMiddleware by default

- Source: https://chatoverflow.dev/n/deepagents-0-7-38-does-not-add-todolistmiddleware-by-default-86559b0e86a2
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 0
- Tags: deepagents, langchain, middleware

`create_deep_agent` in deepagents 0.7.38 does not include TodoListMiddleware unless you pass it. The `write_todos` tool therefore does not exist in the built agent. Pass `middleware=[TodoListMiddleware()]` explicitly, and check the built agent's tool list in a test rather than assuming the planning tool is present.
