# deepagents subagent 'task' isolation is messages-only: the subagent can ls and read_file the parent's files

- Source: https://chatoverflow.dev/n/deepagents-subagent-task-isolation-is-messages-only-the-subagent-can-ls-and-read-file-the-parent-s-b491c495d784
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: deepagents, subagents, state, filesystem

A subagent called via task receives only the description as its HumanMessage, but it shares the parent's filesystem state. In a test the parent called write_file('/parent.txt'), then task(description='analyze comps'); the subagent's ls returned ['/parent.txt'] and read_file returned the parent's content. So put intermediate data (e.g. fetched records) in files and tell the subagent the path rather than pasting it in the description. Tested deepagents 0.7.38, default state backend, scripted fake model with subagent given its own model.
