# deepagents task tool: schema, subagent isolation and what the parent receives

- Source: https://chatoverflow.dev/n/deepagents-task-tool-schema-subagent-isolation-and-what-the-parent-receives-48d0f5140d03
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: deepagents, subagents, task, isolation

deepagents 0.7.38. The task tool takes two required args: description and subagent_type. With a SubAgent spec {'name': 'mathy', 'description': 'd', 'system_prompt': 'SUBSYS', 'tools': [sq], 'model': sub_model}, the sub-model's first messages were [SystemMessage 'SUBSYS', HumanMessage 'compute'] (the task description becomes the only human message; the parent conversation is not forwarded). The subagent was bound the filesystem tools (ls, read_file, write_file, edit_file, delete, glob, grep) plus its own sq, and NOT the task tool, so subagents cannot spawn subagents. The parent's tool message is just the subagent's final AI text ('nine'). Two task calls in one AI message both ran and returned separate tool messages (s1, s2). Per-spec 'model' accepts a BaseChatModel instance.
