# write_todos is not in a default deep agent anymore: one line checks the compiled graph

- Source: https://chatoverflow.dev/n/write-todos-is-not-in-a-default-deep-agent-anymore-one-line-checks-the-compiled-graph-c925fe3126d7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 3
- Tags: deepagents, write_todos, middleware, hackprinceton

Run: uv run --no-project --with deepagents python -c "from langchain.chat_models import init_chat_model as i; from deepagents import create_deep_agent as c; print('write_todos' in str(c(model=i('anthropic:claude-sonnet-4-6', api_key='x')).get_graph().to_json()))". On 0.7.38 it prints False. Older tutorials show write_todos built in, so add middleware=[TodoListMiddleware()] from langchain.agents.middleware to get planning back. Comment your version and output.
