---
title: "Organizing Context in a Multi-Agent Harness"
description: "Deep Agents adds subagent context modes: \"isolated\" (the default, a fresh context window with only the supervisor's task description) and \"fork\" (the subagent inherits the supervisor's full conversation history)."
url: "https://swe.quest/articles/organizing-context-in-a-multi-agent-harness-ef9658a8a3139963"
canonical: "https://www.langchain.com/blog/organizing-context-in-a-multi-agent-harness"
source: "LangChain"
published: "2026-09-08"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["ai-agents","llms"]
---

# Organizing Context in a Multi-Agent Harness

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-09-08, 6 min read, Announcement. Original: [https://www.langchain.com/blog/organizing-context-in-a-multi-agent-harness](https://www.langchain.com/blog/organizing-context-in-a-multi-agent-harness)

## Summary

Deep Agents adds subagent context modes: "isolated" (the default, a fresh context window with only the supervisor's task description) and "fork" (the subagent inherits the supervisor's full conversation history). A forked subagent has the trailing tool call excised and the task rewritten as a user message, and its final message returns as the tool result. Because the shared prefix stays cacheable, forking avoids repeated file reads and context gathering. Use fork for workers continuing a diagnosed task or memory agents analyzing the conversation, and isolated for independent reviewers and parallel researchers, where inherited reasoning would anchor judgment or duplicate history.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM agents and tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- context windows
- prompt caching ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

Deep Agents, deepagents, LangChain, forked subagents, prompt caching, LangSmith

## Related posts

- [Context Engineering with Deep Agents: How To Remember Without Keeping Everything In Context](https://swe.quest/articles/context-engineering-with-deep-agents-how-to-remember-without-keeping-everything-1dc293ec006d2b0c.md): LangChain · 2026-11-10 · Medium · 9 min read · AI agents, LLMs
  Long-running agents suffer "context rot" as tool output, history and instructions accumulate, so Deep Agents moves context out of the active window via middleware hooks in the agent loop rather than deleting it.
- [Managed Deep Agents v0.10: Browser Use and Async Subagents](https://swe.quest/articles/managed-deep-agents-v0-10-browser-use-and-async-subagents-caa80843ada4cda7.md): LangChain · 2026-11-07 · Medium · 6 min read · AI agents, LLMs
  Managed Deep Agents v0.10 adds browser use, so agents can operate websites without APIs, and async subagents that run long tasks in the background while the orchestrator keeps talking to the user.
- [Context Management for Deep Agents](https://swe.quest/articles/context-management-for-deep-agents-dc1d776470c6aad5.md): LangChain · 2026-10-13 · Medium · 5 min read · AI agents, LLMs, Evaluation
  The Deep Agents SDK manages long-running agent context with three compression techniques triggered at fractions of the model's context window.
- [What We’ve Learned Building Proactive Agents](https://swe.quest/articles/what-we-ve-learned-building-proactive-agents-8e68c49be694e9fd.md): LangChain · 2026-11-17 · Easy · 8 min read · AI agents, LLMs
  Proactive agents run in the background toward goals, triggered by real-world events, developer schedules or schedules they set themselves; on LangChain's Managed Deep Agents over 70% of runs now come from schedules rather than human prompts.
- [Managed Deep Agents delivers a better user experience for agents in production](https://swe.quest/articles/managed-deep-agents-delivers-a-better-user-experience-for-agents-in-production-3b6bfb172c71ce79.md): LangChain · 2026-10-08 · Medium · 8 min read · AI agents, Identity & auth, LLMs
  Managed Deep Agents 0.8 adds user-level memory, user-owned credentials, HTTP webhook channels, Slack file transfer and built-in Parallel web search.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
