Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

LangChain 6 min read Announcement mediumAdept

Organizing Context in a Multi-Agent Harness

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.

Related posts

  • Context Engineering with Deep Agents: How To Remember Without Keeping Everything In Context

    LangChain mediumAdept

    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. FilesystemMiddleware offloads tool results over ~20,000 tokens (and user messages over 50,000) to files and shows only a preview. SummarizationMiddleware condenses older messages at 85% of the context window while keeping recent ones verbatim and writing the originals to recoverable files. SkillsMiddleware uses progressive disclosure to load task instructions only when relevant, subagents isolate noisy work in separate contexts, and MemoryMiddleware persists learned preferences in a plain markdown file that survives switching model providers.

  • Managed Deep Agents v0.10: Browser Use and Async Subagents

    LangChain mediumAdept

    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. The browser runs in a LangSmith sandbox scoped per thread or per user. It exposes snapshot, run, screenshot and handoff tools, and the handoff tool gives a person control of the window for logins so credentials never enter model messages or traces. Async subagents notify the orchestrator instead of being polled: results arrive mid-run, wake an idle agent, or wait behind a pending approval. Other changes include thread-origin records for replying in Slack, a Stop button, Slack event handlers, resolveUser identity mapping, and breaking changes to how MCP connectors are declared.

  • Context Management for Deep Agents

    LangChain mediumAdept

    The Deep Agents SDK manages long-running agent context with three compression techniques triggered at fractions of the model's context window. Tool results over 20,000 tokens are offloaded to a filesystem and replaced with a path plus a 10-line preview. Old write/edit tool inputs are replaced with file pointers once context passes 85%, and summarization runs as a last resort, producing a structured summary while saving the full history to disk for later retrieval. To evaluate these mechanisms, the team forces compression early (10-25% of the window) to generate more events and uses targeted evals such as needle-in-the-haystack recovery to catch goal drift and lost details.

  • What We’ve Learned Building Proactive Agents

    LangChain easyNovice

    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. Making them useful without being annoying hinges on memory (seeded from past context, updated from feedback and outcomes, maintained by a background "dreaming" job that handles salience, expiry and duplication) and on UX that is high-signal, fast to review, and delivered where users already work, such as Slack. Examples come from LangChain's internal GTM Agent and Robin engineering agent, and suggested memory metrics include draft approval time and the share of check-ins users act on.

  • Managed Deep Agents delivers a better user experience for agents in production

    LangChain mediumAdept

    Managed Deep Agents 0.8 adds user-level memory, user-owned credentials, HTTP webhook channels, Slack file transfer and built-in Parallel web search. User memory is mounted at /memories/user/ keyed to the caller's authenticated identity, separate from shared agent memory at /memories/agent/, both backed by LangSmith Context Hub. Default access policies allow user memory only in Slack one-to-one DMs, so personal context does not leak into group threads or HTTP runs. Connections can be scoped per agent (e.g. web search) or per user (e.g. GitHub, Salesforce) so tools act with the caller's own permissions.

The quest for software engineering knowledge.

Look:
Layout: