deepagents 0.7: CompositeBackend strips the route prefix, todos are off by default
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.