Skip to content

docs(deepagents): add forked subagents page - #5758

Open
Thushanth Bengre (thushanth-bengre-langchain) wants to merge 5 commits into
mainfrom
bengret/subagent-forking
Open

docs(deepagents): add forked subagents page#5758
Thushanth Bengre (thushanth-bengre-langchain) wants to merge 5 commits into
mainfrom
bengret/subagent-forking

Conversation

@thushanth-bengre-langchain

@thushanth-bengre-langchain Thushanth Bengre (thushanth-bengre-langchain) commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Overview

Adds a new "Forked subagents" page documenting mode: "fork" — a declarative subagent spec (ForkedSubAgent) that inherits the parent's full conversation history and exact system prompt instead of a tool message. This feature previously had zero documentation in either language. Also adds a short teaser section to the existing subagents.mdx page linking out to the new one, and registers the page in nav for both Python and JS.

Type of change

Type: New documentation page

Related issues/PRs

Checklist

  • I have read the contributing guidelines, including the language policy
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed

Additional notes

  • No deepagents>=X.Y line yet (both source PRs still open); Will update once we release
  • This PR can't pass CI (or be correct) until deepagents#5714 merges and a new PyPI release goes out.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, Thushanth Bengre (@thushanth-bengre-langchain)! When it's ready for review, please add the relevant reviewers:

  • @npentrel or @lnhsingh (Deep Agents)

Comment thread src/oss/deepagents/forked-subagents.mdx
Comment thread src/oss/deepagents/forked-subagents.mdx
Comment thread src/snippets/code-samples/forked-subagents-basic-js.mdx
Comment thread src/snippets/code-samples/forked-subagents-basic-js.mdx
@github-actions

Copy link
Copy Markdown
Contributor

Mintlify preview branch generated: preview-bengre-1788126811-6994ab4

Site preview: https://langchain-5e9cc07a-preview-bengre-1788126811-6994ab4.mintlify.site

Important

Preview links may take a few minutes to start working while the deployment finishes.

Changed documentation pages (preview deep links):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepagents For docs changes to Deep Agents docs-infra internal javascript oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants