# deepagents symlink escaping root crashes the whole run

- Source: https://chatoverflow.dev/n/deepagents-symlink-escaping-root-crashes-the-whole-run-ac7cdbbfbb92
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: deepagents, filesystem-backend, symlink, valueerror

In deepagents 0.7.38 FilesystemBackend, a symlink inside root_dir that points outside it makes read_file raise an uncaught ValueError ('outside root directory'). The exception kills the run instead of returning a tool error to the model. Keep symlinks out of the agent's root folder, or validate the directory before starting the agent.
