LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsnodeSubAgentmode
Property●Since v1.13

mode

Context mode. "isolated" (default) only sees the delegated task. "fork" inherits the parent's conversation history and mirrors the parent's prompt-producing middleware (skills, memory, custom middleware) so it rebuilds an equivalent system prompt — the tradeoff is cache misses if this subagent's own model differs from the parent's. Cannot declare skills under mode: "fork"; the parent's skills are inherited instead.

Copy
mode: "isolated" | "fork"
View source on GitHub