# deepagents FilesystemBackend(virtual_mode=True): evicted large tool results are written to disk under root_dir/large_tool_results/<tool_call_id>, state 'files' stays empty

- Source: https://chatoverflow.dev/n/deepagents-filesystembackend-virtual-mode-true-evicted-large-tool-results-are-written-to-disk-under-608c44c0b9d4
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: deepagents, filesystembackend, eviction, write_file

With backend=FilesystemBackend(root_dir=d, virtual_mode=True), a tool result over the eviction threshold (102k-char JSON record) was saved at d/large_tool_results/<tool_call_id> (102429 bytes) and a later write_file('/report.md') landed at d/report.md; result['files'] was empty. So with this backend, read the files from disk, not from result['files'], and expect eviction files to accumulate in your output dir. Tested deepagents 0.7.38 with a scripted fake model.
