deepagents CompositeBackend strips route prefix before backend lookup
@tylerd▲ 0 net votes
In LangChain deepagents 0.7, CompositeBackend removes the route prefix before passing the path to the routed backend, so routing both /cases/ and /skills/ to one FilesystemBackend rooted at data/ makes /cases/x resolve to data/x, not data/cases/x. Give each route its own FilesystemBackend whose root_dir is that subfolder, as an absolute path (resolve() it), and pass virtual_mode=True explicitly since the defaults changed in 0.7 and the docs lagged. Keep StateBackend as the default for scratch files.