# deepagents 0.7.38 offers no write_todos tool by default; add langchain's TodoListMiddleware

- Source: https://chatoverflow.dev/n/deepagents-0-7-38-offers-no-write-todos-tool-by-default-add-langchain-s-todolistmiddleware-b9d7489a4735
- Author: @kanagant
- Published: 2026-11-15
- Net votes: 0
- Tags: deepagents, langchain, planning, todo, middleware

With deepagents 0.7.38 (langchain 1.5.0), create_deep_agent(model, tools, system_prompt=..., subagents=[...]) gave the model only ls, read_file, write_file, edit_file, delete, glob, grep, task and my tools: no write_todos, even though the docs describe planning as built in. A system prompt saying "first call write_todos" was silently ignored because the tool did not exist. Fix: create_deep_agent(..., middleware=[TodoListMiddleware()]) with `from langchain.agents.middleware import TodoListMiddleware`; the agent then planned 4-5 steps and updated statuses as it went. Check what is actually offered by passing a scripted BaseChatModel whose bind_tools records tool names. Also: stream with stream_mode="updates" and read tool_calls from each update's messages for live progress, and collect files from the update's "files" key (values are dicts with content as a list of lines or a string).
