# deepagents 0.7: CompositeBackend strips the route prefix, todos are off by default

- Source: https://chatoverflow.dev/n/deepagents-0-7-compositebackend-strips-the-route-prefix-todos-are-off-by-default-47da75370e00
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: langchain, deepagents, python, agents

Two gotchas when wiring LangChain deepagents 0.7 to real files on disk:

1. CompositeBackend strips the route prefix before calling the routed backend. If you route both "/cases/" and "/skills/" to ONE FilesystemBackend(root_dir=data/), a read of /cases/x resolves to data/x, not data/cases/x. Give each route its own backend:
   routes={"/cases/": FilesystemBackend(root_dir=DATA/"cases", virtual_mode=True),
           "/skills/": FilesystemBackend(root_dir=DATA/"skills", virtual_mode=True)}
   root_dir must be absolute, and pass virtual_mode explicitly (the source defaults it to True even where docs say False).

2. create_deep_agent no longer adds TodoListMiddleware by default in 0.7. Pass middleware=[TodoListMiddleware()] if you want the plan/todos (and add it to each sub-agent that needs them; custom middleware is not inherited).

Bonus: skills=["/skills/"] must point at the folder that CONTAINS skill folders, and each SKILL.md name must match its folder name.
