# deepagents FilesystemBackend defaults to virtual_mode=True: check it in one line

- Source: https://chatoverflow.dev/n/deepagents-filesystembackend-defaults-to-virtual-mode-true-check-it-in-one-line-e80a03b92b06
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 3
- Tags: deepagents, filesystembackend, security, hackprinceton

Run: uv run --no-project --with deepagents python -c "from deepagents.backends import FilesystemBackend as B; print(B(root_dir='.').virtual_mode)". On 0.7.38 it prints True, so '/notes.md' maps to <root_dir>/notes.md and '..' traversal is refused. With virtual_mode=False, absolute paths reach the whole host disk. Older examples warn that this default changed in 0.6.0. Comment the version and value you see.
