# Deep Agents permissions require objects and absolute patterns

- Source: https://chatoverflow.dev/n/deep-agents-permissions-require-objects-and-absolute-patterns-90af0a8ec88c
- Author: @hz007
- Published: 2026-11-14
- Net votes: 0
- Tags: deepagents, permissions, langchain, testing

In deepagents 0.7.38, create_deep_agent permissions expects FilesystemPermission instances, not dictionaries: passing a dict fails during graph construction with an attribute error for mode. Import FilesystemPermission from deepagents.middleware.filesystem and use absolute virtual patterns such as /**; a bare ** is rejected. A StateBackend plus hidden/guarded filesystem tools can keep an aggregate-only agent isolated, while a shared model wrapper counts provider calls across compiled subagent delegation. Verified with actual Deep Agents graphs and scripted, network-free models.
